
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f24edcf
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"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": {}, | |
"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, | |
"memory": true, | |
"latency": true, | |
"energy": true, | |
"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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 720.879616, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.28901806640625, | |
"mean": 7.28901806640625, | |
"stdev": 0.0, | |
"p50": 7.28901806640625, | |
"p90": 7.28901806640625, | |
"p95": 7.28901806640625, | |
"p99": 7.28901806640625, | |
"values": [ | |
7.28901806640625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.006968484984504e-06, | |
"ram": 5.202257171484348e-07, | |
"gpu": 1.7633347440017266e-06, | |
"total": 3.2905289461346654e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1025.318912, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.4903927683830259, | |
"mean": 0.006717709155931865, | |
"stdev": 0.00035687799392284736, | |
"p50": 0.0068158721923828125, | |
"p90": 0.0071522368431091304, | |
"p95": 0.007206508731842041, | |
"p99": 0.007432134304046631, | |
"values": [ | |
0.007535583972930908, | |
0.007181280136108399, | |
0.0071123518943786625, | |
0.006971871852874756, | |
0.007046720027923584, | |
0.006875360012054443, | |
0.0068674559593200684, | |
0.007223328113555908, | |
0.007024384021759033, | |
0.0067885761260986326, | |
0.006987872123718261, | |
0.006994239807128906, | |
0.0072873921394348146, | |
0.007097504138946533, | |
0.007195295810699463, | |
0.007162208080291748, | |
0.006731647968292237, | |
0.0068393278121948245, | |
0.0067933440208435055, | |
0.0068158721923828125, | |
0.007036255836486816, | |
0.007391903877258301, | |
0.006901247978210449, | |
0.007192863941192627, | |
0.0069036478996276854, | |
0.006851295948028565, | |
0.006736063957214355, | |
0.0067890558242797855, | |
0.0070629119873046875, | |
0.006824160099029541, | |
0.006975264072418213, | |
0.006923168182373047, | |
0.007005792140960693, | |
0.007093920230865479, | |
0.007019743919372558, | |
0.006932127952575684, | |
0.006821856021881103, | |
0.007053055763244629, | |
0.006697440147399902, | |
0.006592864036560058, | |
0.006624959945678711, | |
0.006299456119537353, | |
0.0066715521812438965, | |
0.006833087921142578, | |
0.006923327922821045, | |
0.006909887790679931, | |
0.006444447994232177, | |
0.006409696102142334, | |
0.006862751960754395, | |
0.006635744094848633, | |
0.006428192138671875, | |
0.006419392108917237, | |
0.006336095809936523, | |
0.006268832206726074, | |
0.006246272087097168, | |
0.006207007884979248, | |
0.006206975936889648, | |
0.006244095802307129, | |
0.006389440059661865, | |
0.006222591876983642, | |
0.006364511966705322, | |
0.006231296062469483, | |
0.006257215976715088, | |
0.006226912021636963, | |
0.006213503837585449, | |
0.006224224090576172, | |
0.0062616000175476074, | |
0.006256224155426026, | |
0.00622982406616211, | |
0.006232831954956055, | |
0.006260992050170899, | |
0.0063987522125244145, | |
0.006314815998077393 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 297.7205403770662 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.976507802759863e-08, | |
"ram": 4.361202077767103e-08, | |
"gpu": 1.631507643758479e-07, | |
"total": 2.8652786318111755e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6980123.949536374 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1040.6912, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.5108855676651001, | |
"mean": 0.006998432433768496, | |
"stdev": 0.00037551106384020876, | |
"p50": 0.007055967807769775, | |
"p90": 0.007435187244415283, | |
"p95": 0.007559283065795897, | |
"p99": 0.0077905895423889164, | |
"values": [ | |
0.007435328006744385, | |
0.007642303943634033, | |
0.007287456035614014, | |
0.00724560022354126, | |
0.0070899839401245114, | |
0.0071051521301269535, | |
0.007402527809143067, | |
0.007472320079803467, | |
0.00725875186920166, | |
0.007269567966461181, | |
0.007315264225006103, | |
0.007312032222747802, | |
0.007678463935852051, | |
0.007469791889190674, | |
0.007840447902679444, | |
0.007216864109039307, | |
0.007055967807769775, | |
0.007037983894348144, | |
0.007208992004394532, | |
0.007248095989227295, | |
0.007278463840484619, | |
0.007266079902648926, | |
0.007387392044067383, | |
0.007434624195098877, | |
0.007238048076629639, | |
0.007155839920043945, | |
0.007024415969848633, | |
0.007209887981414795, | |
0.007036831855773926, | |
0.007172800064086914, | |
0.007207263946533203, | |
0.007245183944702149, | |
0.007771200180053711, | |
0.007330656051635742, | |
0.007287744045257568, | |
0.007305823802947998, | |
0.007109024047851562, | |
0.0070200319290161135, | |
0.0067246718406677244, | |
0.007360320091247558, | |
0.006690624237060547, | |
0.006658271789550781, | |
0.006968128204345703, | |
0.00710595178604126, | |
0.007503935813903809, | |
0.006760672092437744, | |
0.006747744083404541, | |
0.006720191955566406, | |
0.006726719856262207, | |
0.006707647800445557, | |
0.006989696025848389, | |
0.0067619199752807614, | |
0.006503615856170654, | |
0.006536992073059082, | |
0.006498720169067383, | |
0.006490015983581543, | |
0.0064991040229797365, | |
0.0064815678596496585, | |
0.006627488136291504, | |
0.0067523841857910155, | |
0.006481728076934814, | |
0.006480447769165039, | |
0.006485568046569824, | |
0.006472383975982666, | |
0.006509312152862549, | |
0.006507199764251709, | |
0.006716832160949707, | |
0.006502655982971192, | |
0.006620704174041748, | |
0.00654636812210083, | |
0.006530687808990478, | |
0.006580639839172364, | |
0.006560448169708252 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 142.8891411703639 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.482532223884231e-08, | |
"ram": 4.091670917472542e-08, | |
"gpu": 1.4971023627350402e-07, | |
"total": 2.6545226768707184e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3767155.612243061 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.47691046285629274, | |
"mean": 0.006533020039127297, | |
"stdev": 0.00031119126753512973, | |
"p50": 0.006561823844909668, | |
"p90": 0.006902988910675048, | |
"p95": 0.007008684730529784, | |
"p99": 0.007229872550964356, | |
"values": [ | |
0.006875135898590088, | |
0.0071147198677062986, | |
0.00676966381072998, | |
0.006732800006866455, | |
0.006599775791168213, | |
0.0066007041931152345, | |
0.006809599876403808, | |
0.006952960014343262, | |
0.006744063854217529, | |
0.006723584175109864, | |
0.006755328178405762, | |
0.006706175804138184, | |
0.0070891518592834475, | |
0.006949888229370117, | |
0.007325695991516113, | |
0.0067420477867126466, | |
0.006561823844909668, | |
0.006556511878967285, | |
0.006696959972381592, | |
0.0067276802062988285, | |
0.006763519763946534, | |
0.006746208190917969, | |
0.006834239959716797, | |
0.006909952163696289, | |
0.0067041277885437015, | |
0.006657023906707763, | |
0.0065146880149841305, | |
0.006689663887023926, | |
0.006560768127441406, | |
0.006663167953491211, | |
0.006681600093841553, | |
0.006730751991271973, | |
0.007192607879638672, | |
0.006792191982269287, | |
0.00677785587310791, | |
0.006767615795135498, | |
0.006561759948730469, | |
0.006534143924713135, | |
0.006315008163452148, | |
0.0068618240356445315, | |
0.006304768085479737, | |
0.006249407768249512, | |
0.006521759986877441, | |
0.006642591953277588, | |
0.006955039978027344, | |
0.006366176128387451, | |
0.0063201279640197755, | |
0.00633241605758667, | |
0.00633241605758667, | |
0.006313983917236328, | |
0.0065853757858276366, | |
0.00637337589263916, | |
0.006120448112487793, | |
0.00616156816482544, | |
0.006122560024261475, | |
0.006114304065704346, | |
0.006120448112487793, | |
0.006106112003326416, | |
0.006244351863861084, | |
0.0063569917678833006, | |
0.006105088233947754, | |
0.006103040218353272, | |
0.00608358383178711, | |
0.006097856044769287, | |
0.006121471881866455, | |
0.006129568099975586, | |
0.006338560104370118, | |
0.006088736057281494, | |
0.006227968215942382, | |
0.006155263900756836, | |
0.006153215885162353, | |
0.006187007904052734, | |
0.006181888103485108 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 153.06856461649295 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |