IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9a0979b
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"model_kwargs": {}, | |
"processor_kwargs": {}, | |
"hub_kwargs": {}, | |
"no_weights": true, | |
"device_map": null, | |
"torch_dtype": null, | |
"eval_mode": true, | |
"to_bettertransformer": false, | |
"low_cpu_mem_usage": null, | |
"attn_implementation": null, | |
"cache_implementation": null, | |
"autocast_enabled": false, | |
"autocast_dtype": null, | |
"torch_compile": false, | |
"torch_compile_target": "forward", | |
"torch_compile_config": {}, | |
"quantization_scheme": null, | |
"quantization_config": {}, | |
"deepspeed_inference": false, | |
"deepspeed_inference_config": {}, | |
"peft_type": null, | |
"peft_config": {} | |
}, | |
"scenario": { | |
"name": "inference", | |
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", | |
"iterations": 1, | |
"duration": 1, | |
"warmup_runs": 1, | |
"input_shapes": { | |
"batch_size": 1, | |
"num_choices": 2, | |
"sequence_length": 2 | |
}, | |
"new_tokens": null, | |
"latency": true, | |
"memory": true, | |
"energy": false, | |
"forward_kwargs": {}, | |
"generate_kwargs": { | |
"max_new_tokens": 2, | |
"min_new_tokens": 2 | |
}, | |
"call_kwargs": { | |
"num_inference_steps": 2 | |
} | |
}, | |
"launcher": { | |
"name": "process", | |
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", | |
"device_isolation": true, | |
"device_isolation_action": "error", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.236096, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "0b24af9d7b7751f74b160dfade73ef78e10964d6", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.219072, | |
"max_global_vram": 3317.379072, | |
"max_process_vram": 263653.351424, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.832512 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5072467308044433, | |
"mean": 0.008181398883942636, | |
"stdev": 0.0010517272517832099, | |
"p50": 0.007920221090316773, | |
"p90": 0.008324315452575682, | |
"p95": 0.008592274808883665, | |
"p99": 0.012893202638626101, | |
"values": [ | |
0.015650199890136718, | |
0.008049420356750488, | |
0.008035499572753907, | |
0.0079931001663208, | |
0.008023180007934571, | |
0.008030699729919434, | |
0.007991660118103027, | |
0.008022700309753418, | |
0.008073259353637695, | |
0.008032139778137206, | |
0.008082380294799804, | |
0.008060938835144043, | |
0.008084779739379882, | |
0.008301419258117676, | |
0.00811326026916504, | |
0.008051980018615722, | |
0.008059020042419434, | |
0.008102700233459473, | |
0.011130532264709473, | |
0.00798829984664917, | |
0.007842380046844483, | |
0.00784398078918457, | |
0.007895659923553467, | |
0.00787805986404419, | |
0.007881579875946045, | |
0.007891660213470458, | |
0.00788558006286621, | |
0.0078850998878479, | |
0.007933579921722412, | |
0.00794398021697998, | |
0.007903660774230957, | |
0.007919021129608154, | |
0.00792142105102539, | |
0.007886219978332519, | |
0.007908140182495117, | |
0.007905419826507568, | |
0.007895020008087159, | |
0.00789822006225586, | |
0.007907821178436279, | |
0.00789086103439331, | |
0.007876460075378417, | |
0.007887340068817139, | |
0.007895659923553467, | |
0.007888780117034913, | |
0.007897260189056397, | |
0.007996620178222657, | |
0.008604458808898926, | |
0.00894621753692627, | |
0.008326859474182128, | |
0.00836077880859375, | |
0.008358538627624512, | |
0.008279818534851074, | |
0.008165900230407714, | |
0.007877420902252198, | |
0.007859499931335449, | |
0.007893260002136231, | |
0.00787790012359619, | |
0.007898859977722168, | |
0.007906060218811035, | |
0.007910380840301514, | |
0.007888780117034913, | |
0.007855340003967285 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 244.45697225756035 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.219072, | |
"max_global_vram": 3317.379072, | |
"max_process_vram": 267573.846016, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.056256 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5045372958183288, | |
"mean": 0.008137698319650466, | |
"stdev": 0.00024552995681314686, | |
"p50": 0.00803734016418457, | |
"p90": 0.00842066717147827, | |
"p95": 0.00862484211921692, | |
"p99": 0.008987092208862305, | |
"values": [ | |
0.009023497581481934, | |
0.008114699363708497, | |
0.008127019882202149, | |
0.008128779411315918, | |
0.00807565975189209, | |
0.008267338752746583, | |
0.008119659423828125, | |
0.008166379928588867, | |
0.00819182014465332, | |
0.008137739181518555, | |
0.008161580085754395, | |
0.00815213966369629, | |
0.008300619125366211, | |
0.00818701934814453, | |
0.008183339118957519, | |
0.008144140243530273, | |
0.00819917869567871, | |
0.008626378059387207, | |
0.0082073392868042, | |
0.008030380249023437, | |
0.007997580051422119, | |
0.007973740100860596, | |
0.008000619888305664, | |
0.007996300220489501, | |
0.008008139610290527, | |
0.00801278018951416, | |
0.008595659255981445, | |
0.007983019828796387, | |
0.008243019104003907, | |
0.007998700141906739, | |
0.007966700077056885, | |
0.008022700309753418, | |
0.008000940322875976, | |
0.007994699954986572, | |
0.008007019996643066, | |
0.007970699787139893, | |
0.007954380035400391, | |
0.007960780143737793, | |
0.007967979907989501, | |
0.007929259777069092, | |
0.008044300079345703, | |
0.007967659950256348, | |
0.007966060161590576, | |
0.007928300857543945, | |
0.007954060077667236, | |
0.008171978950500489, | |
0.00896381664276123, | |
0.008903017044067383, | |
0.008421419143676757, | |
0.008452939033508302, | |
0.008413899421691894, | |
0.008386698722839356, | |
0.008052940368652345, | |
0.007967979907989501, | |
0.008071980476379394, | |
0.00796861982345581, | |
0.007986700057983399, | |
0.007997900009155274, | |
0.00797454023361206, | |
0.007955819129943848, | |
0.007947179794311523, | |
0.007910059928894044 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 122.88486998654828 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.9890464782714845, | |
"mean": 0.01621387669297515, | |
"stdev": 0.0006131372310191369, | |
"p50": 0.015967639923095703, | |
"p90": 0.016705078125, | |
"p95": 0.0168348388671875, | |
"p99": 0.01870177764892578, | |
"values": [ | |
0.016203958511352538, | |
0.016188919067382814, | |
0.01615019989013672, | |
0.016144119262695312, | |
0.01632379913330078, | |
0.016148918151855467, | |
0.016210519790649414, | |
0.016299959182739257, | |
0.01620667839050293, | |
0.016268760681152343, | |
0.01624715805053711, | |
0.016417238235473634, | |
0.016525718688964845, | |
0.016326358795166016, | |
0.016246679306030274, | |
0.016282678604125977, | |
0.016282039642333983, | |
0.019866830825805665, | |
0.016102359771728515, | |
0.015871800422668458, | |
0.015854841232299806, | |
0.01592572021484375, | |
0.015897239685058594, | |
0.015921079635620117, | |
0.015933239936828613, | |
0.016506519317626953, | |
0.015896599769592287, | |
0.016205078125, | |
0.015969559669494628, | |
0.015902840614318847, | |
0.015958680152893066, | |
0.015967639923095703, | |
0.01592236042022705, | |
0.01593723964691162, | |
0.01591211986541748, | |
0.015878680229187012, | |
0.015882200241088867, | |
0.015904919624328613, | |
0.01585020065307617, | |
0.015946999549865722, | |
0.01588700008392334, | |
0.01588875961303711, | |
0.01584860134124756, | |
0.015875, | |
0.01615131950378418, | |
0.01760987663269043, | |
0.01792507553100586, | |
0.016775638580322265, | |
0.0168348388671875, | |
0.01675211715698242, | |
0.016705078125, | |
0.016295318603515626, | |
0.01587804126739502, | |
0.01595755958557129, | |
0.01589564037322998, | |
0.015886199951171874, | |
0.015923800468444823, | |
0.015910679817199708, | |
0.01589035987854004, | |
0.015869560241699218, | |
0.01579755973815918 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 61.67556463737395 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |