IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1fa7e0f
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.0", | |
"optimum_benchmark_commit": "a84403909b6e036e6ac3ccba23f1df81c197a364", | |
"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.16992, | |
"max_global_vram": 2098.782208, | |
"max_process_vram": 274434.670592, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.832512 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5050202569961548, | |
"mean": 0.008145488016067015, | |
"stdev": 0.000507233384217408, | |
"p50": 0.007945451974868775, | |
"p90": 0.008446971988677979, | |
"p95": 0.008867148971557617, | |
"p99": 0.010311562452316285, | |
"values": [ | |
0.011141456604003907, | |
0.008695692062377929, | |
0.008427532196044921, | |
0.008293771743774414, | |
0.00815089225769043, | |
0.008016971588134766, | |
0.007991850852966309, | |
0.00797457218170166, | |
0.008024971961975097, | |
0.00801761245727539, | |
0.00801761245727539, | |
0.008037772178649902, | |
0.00806257152557373, | |
0.009780974388122558, | |
0.008197451591491699, | |
0.008137131690979004, | |
0.007881290912628174, | |
0.007904652118682862, | |
0.008136012077331544, | |
0.008090251922607422, | |
0.008082732200622559, | |
0.007901772022247315, | |
0.008401131629943848, | |
0.008242252349853516, | |
0.0079180908203125, | |
0.007927690982818604, | |
0.008104011535644532, | |
0.00790273094177246, | |
0.007907211780548096, | |
0.007913772106170655, | |
0.007932491779327392, | |
0.007938891887664794, | |
0.007907210826873779, | |
0.007952012062072755, | |
0.007930251121520996, | |
0.007924012184143066, | |
0.007937611103057862, | |
0.0079168119430542, | |
0.007895051002502441, | |
0.00790481185913086, | |
0.007861452102661133, | |
0.00789281177520752, | |
0.00790801191329956, | |
0.007872651100158692, | |
0.007895051956176758, | |
0.009041133880615235, | |
0.008413291931152344, | |
0.008449131965637208, | |
0.00862689208984375, | |
0.00887617301940918, | |
0.0081408109664917, | |
0.008206571578979492, | |
0.008345131874084472, | |
0.00787089204788208, | |
0.007891211032867431, | |
0.007922572135925293, | |
0.007889131069183349, | |
0.007893611907958984, | |
0.007914571762084962, | |
0.00786129093170166, | |
0.007867372035980225, | |
0.007858891010284424 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 245.5347053552826 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.16992, | |
"max_global_vram": 2098.786304, | |
"max_process_vram": 292076.937216, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.056256 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5069097127914426, | |
"mean": 0.0081759631095394, | |
"stdev": 0.0002797172888389081, | |
"p50": 0.008053212165832518, | |
"p90": 0.008533548927307129, | |
"p95": 0.008678660488128662, | |
"p99": 0.009144481554031372, | |
"values": [ | |
0.009381454467773437, | |
0.008378413200378418, | |
0.008425453186035155, | |
0.008260332107543945, | |
0.008095372200012206, | |
0.008048492431640625, | |
0.0080478515625, | |
0.008079212188720703, | |
0.008098252296447754, | |
0.008080330848693848, | |
0.008110732078552245, | |
0.00807185173034668, | |
0.0082190523147583, | |
0.008478253364562989, | |
0.008057931900024413, | |
0.008011052131652832, | |
0.00823777198791504, | |
0.008019211769104004, | |
0.008380011558532715, | |
0.008013132095336915, | |
0.008178892135620118, | |
0.00828513240814209, | |
0.008509933471679687, | |
0.008042092323303223, | |
0.008223853111267089, | |
0.007971211910247803, | |
0.008589133262634278, | |
0.007961452007293701, | |
0.008021930694580078, | |
0.008010091781616211, | |
0.007985930919647216, | |
0.007998251914978027, | |
0.007986732006072998, | |
0.008020812034606934, | |
0.007979531764984131, | |
0.00800833225250244, | |
0.007984652042388915, | |
0.007988011837005616, | |
0.007999852180480957, | |
0.007965130805969238, | |
0.008088492393493652, | |
0.007980171203613282, | |
0.007971372127532959, | |
0.007988011837005616, | |
0.008508651733398438, | |
0.008745772361755371, | |
0.008616493225097657, | |
0.008536172866821288, | |
0.008992974281311034, | |
0.00868193244934082, | |
0.008302892684936523, | |
0.008295211791992187, | |
0.008148812294006347, | |
0.007983211994171142, | |
0.00807713222503662, | |
0.007960651874542236, | |
0.007971692085266113, | |
0.00797969102859497, | |
0.007971531867980957, | |
0.007952331066131592, | |
0.00797153091430664, | |
0.007979852199554443 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 122.30974951846815 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.9933905830383299, | |
"mean": 0.016285091525218523, | |
"stdev": 0.0005268251605097261, | |
"p50": 0.01611218452453613, | |
"p90": 0.01701522445678711, | |
"p95": 0.01759122657775879, | |
"p99": 0.018024762725830076, | |
"values": [ | |
0.01709266471862793, | |
0.016900983810424805, | |
0.016624183654785157, | |
0.016325944900512694, | |
0.01611218452453613, | |
0.016083703994750977, | |
0.016075063705444335, | |
0.016157943725585936, | |
0.01614018440246582, | |
0.016140024185180665, | |
0.016152982711791993, | |
0.016329784393310547, | |
0.018273788452148436, | |
0.01631474494934082, | |
0.01618114471435547, | |
0.016158424377441406, | |
0.015944823265075684, | |
0.01655922508239746, | |
0.01612994384765625, | |
0.016298904418945312, | |
0.01621890449523926, | |
0.016898103713989258, | |
0.016360183715820313, | |
0.016170103073120116, | |
0.015928503036499023, | |
0.01671810531616211, | |
0.015894742965698243, | |
0.01595698356628418, | |
0.01595154285430908, | |
0.015949624061584473, | |
0.015959062576293946, | |
0.01593282413482666, | |
0.016000022888183595, | |
0.01594162368774414, | |
0.015960662841796876, | |
0.01595026397705078, | |
0.015931862831115723, | |
0.01592514419555664, | |
0.015894422531127928, | |
0.015977943420410156, | |
0.01590050411224365, | |
0.015910423278808594, | |
0.015887864112854005, | |
0.016394264221191408, | |
0.017858745574951172, | |
0.01701522445678711, | |
0.017060983657836915, | |
0.017602266311645506, | |
0.01759122657775879, | |
0.016485464096069335, | |
0.016563703536987304, | |
0.01651954460144043, | |
0.015885143280029296, | |
0.01599618434906006, | |
0.01591874313354492, | |
0.01588434314727783, | |
0.01590290355682373, | |
0.015915383338928224, | |
0.015845943450927734, | |
0.015865463256835938, | |
0.015868983268737792 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 61.40585691222152 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |