
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3a27131
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"gpu": [ | |
"NVIDIA A10G" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 24146608128, | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": null, | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1051.81184, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.49518617343902593, | |
"mean": 0.008537692645500448, | |
"stdev": 0.00035161210722824403, | |
"p50": 0.008584367752075196, | |
"p90": 0.009011151981353759, | |
"p95": 0.009035446739196778, | |
"p99": 0.009352468814849853, | |
"values": [ | |
0.009236031532287598, | |
0.009035360336303712, | |
0.008908927917480469, | |
0.008721280097961425, | |
0.008996447563171387, | |
0.009506815910339356, | |
0.008906144142150879, | |
0.009013728141784668, | |
0.008969087600708008, | |
0.009023615837097168, | |
0.00903593635559082, | |
0.00868233585357666, | |
0.008703935623168945, | |
0.008557120323181152, | |
0.008653152465820312, | |
0.008603072166442871, | |
0.009010047912597656, | |
0.00882697582244873, | |
0.008657024383544923, | |
0.008716256141662597, | |
0.008622976303100586, | |
0.008640512466430664, | |
0.008829824447631836, | |
0.008581439971923828, | |
0.008579936027526856, | |
0.008596960067749024, | |
0.008882207870483399, | |
0.008845824241638184, | |
0.008708064079284667, | |
0.008642016410827636, | |
0.008426015853881835, | |
0.008516032218933106, | |
0.008383487701416016, | |
0.008587295532226563, | |
0.008687999725341797, | |
0.008353759765625, | |
0.008266079902648925, | |
0.008149439811706544, | |
0.008186304092407226, | |
0.008171520233154296, | |
0.008210911750793456, | |
0.008164704322814942, | |
0.008153087615966797, | |
0.008149215698242188, | |
0.008158399581909179, | |
0.008155263900756837, | |
0.00812451171875, | |
0.008154047966003417, | |
0.008073184013366699, | |
0.00805123233795166, | |
0.008079903602600098, | |
0.008140928268432617, | |
0.008134143829345703, | |
0.0081693115234375, | |
0.008338815689086914, | |
0.008206879615783692, | |
0.008137503623962402, | |
0.008163135528564453 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 234.2553290500618 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.002469233104161e-07, | |
"ram": 5.481077824857921e-08, | |
"gpu": 1.7393571337815047e-07, | |
"total": 3.289934149371458e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6079149.032153425 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1051.81184, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.513134048461914, | |
"mean": 0.008847138766584724, | |
"stdev": 0.00038989913860166116, | |
"p50": 0.008894239902496336, | |
"p90": 0.009335363101959229, | |
"p95": 0.009424015712738038, | |
"p99": 0.009709842901229858, | |
"values": [ | |
0.00925107192993164, | |
0.009345376014709472, | |
0.009187711715698241, | |
0.009072319984436035, | |
0.00942204761505127, | |
0.010036576271057128, | |
0.009435168266296387, | |
0.009331071853637695, | |
0.009255264282226562, | |
0.009323040008544921, | |
0.009370016098022462, | |
0.009133855819702148, | |
0.009024991989135742, | |
0.008926431655883789, | |
0.008876192092895507, | |
0.009258720397949219, | |
0.009463359832763672, | |
0.008970656394958497, | |
0.009108927726745606, | |
0.00904576015472412, | |
0.00898748779296875, | |
0.008967488288879395, | |
0.008909791946411132, | |
0.008935775756835938, | |
0.00894883155822754, | |
0.00919753646850586, | |
0.00911177635192871, | |
0.009001791954040527, | |
0.009014271736145019, | |
0.008878687858581542, | |
0.008859871864318847, | |
0.008576288223266601, | |
0.008840000152587891, | |
0.008854016304016114, | |
0.008777567863464356, | |
0.008539551734924317, | |
0.008478848457336426, | |
0.008399200439453126, | |
0.008435168266296388, | |
0.008531295776367187, | |
0.008432319641113281, | |
0.008425503730773927, | |
0.008435199737548828, | |
0.008400863647460937, | |
0.008434592247009277, | |
0.00840227222442627, | |
0.008413632392883301, | |
0.008348416328430176, | |
0.008363327980041503, | |
0.008345664024353027, | |
0.008439200401306152, | |
0.008398847579956055, | |
0.008419391632080078, | |
0.009120415687561036, | |
0.008426976203918458, | |
0.00841859245300293, | |
0.008387231826782226, | |
0.00843779182434082 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 113.0308935332809 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.664383765592137e-08, | |
"ram": 5.284070862116189e-08, | |
"gpu": 1.6599169881857366e-07, | |
"total": 3.154762450956568e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3169810.771954592 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.9916139545440674, | |
"mean": 0.017396736044632762, | |
"stdev": 0.000719627216691, | |
"p50": 0.017541120529174805, | |
"p90": 0.01838165740966797, | |
"p95": 0.01844142074584961, | |
"p99": 0.018967839050292968, | |
"values": [ | |
0.018378751754760742, | |
0.01816985511779785, | |
0.01781862449645996, | |
0.01846681594848633, | |
0.019562496185302734, | |
0.018382848739624022, | |
0.018380863189697266, | |
0.01823744010925293, | |
0.0183940486907959, | |
0.01843507194519043, | |
0.017838079452514647, | |
0.01779199981689453, | |
0.017511423110961915, | |
0.01756159973144531, | |
0.01786777687072754, | |
0.01850060844421387, | |
0.017854463577270507, | |
0.017779712677001954, | |
0.017786880493164063, | |
0.01763737678527832, | |
0.01764659118652344, | |
0.01779814338684082, | |
0.017541120529174805, | |
0.01756159973144531, | |
0.017794048309326172, | |
0.018033664703369142, | |
0.01789030456542969, | |
0.017726463317871095, | |
0.01759539222717285, | |
0.017312768936157227, | |
0.01719910430908203, | |
0.017185792922973633, | |
0.017458175659179686, | |
0.017557504653930665, | |
0.016951295852661134, | |
0.01676595115661621, | |
0.01660416030883789, | |
0.01664620780944824, | |
0.01671673583984375, | |
0.016670719146728515, | |
0.01662156867980957, | |
0.016590848922729492, | |
0.01659903907775879, | |
0.01661747169494629, | |
0.01657548713684082, | |
0.016558080673217773, | |
0.01653555107116699, | |
0.016462848663330077, | |
0.01642291259765625, | |
0.016532480239868166, | |
0.01656729507446289, | |
0.01657344055175781, | |
0.01723391914367676, | |
0.016882688522338866, | |
0.016627712249755858, | |
0.01657244873046875, | |
0.0166276798248291 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 57.482047059541365 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |