IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9df1b14
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_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": {}, | |
"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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"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.3.1", | |
"optimum_benchmark_commit": "402644384abc46743e46dac65be6512bc68c9d92", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1183.227904, | |
"max_global_vram": 1096.019968, | |
"max_process_vram": 180052.672512, | |
"max_reserved": 713.03168, | |
"max_allocated": 500.44672 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.49989761114120473, | |
"mean": 0.008618924330020773, | |
"stdev": 0.0005745790797132161, | |
"p50": 0.0086279034614563, | |
"p90": 0.008981390762329101, | |
"p95": 0.009029350566864013, | |
"p99": 0.010810823411941528, | |
"values": [ | |
0.010960300445556641, | |
0.009007662773132323, | |
0.008847502708435059, | |
0.008541263580322266, | |
0.008546703338623047, | |
0.008602224349975585, | |
0.008479984283447265, | |
0.008517904281616211, | |
0.008653582572937012, | |
0.008415023803710937, | |
0.008483023643493652, | |
0.007959024906158447, | |
0.008043185234069824, | |
0.008052305221557617, | |
0.009096941947937011, | |
0.008244625091552734, | |
0.008857583045959473, | |
0.010698060035705566, | |
0.008942063331604005, | |
0.008893102645874023, | |
0.008891022682189942, | |
0.008881583213806152, | |
0.008191023826599121, | |
0.007906545162200927, | |
0.007899664878845214, | |
0.0079179048538208, | |
0.00790478515625, | |
0.007914225101470947, | |
0.007875824928283691, | |
0.007871825218200684, | |
0.007950544834136963, | |
0.007895184993743896, | |
0.008905583381652833, | |
0.008545104026794434, | |
0.008474224090576172, | |
0.008446224212646484, | |
0.00848526382446289, | |
0.008498064041137695, | |
0.008332943916320801, | |
0.007948305130004883, | |
0.008038864135742188, | |
0.00897678279876709, | |
0.008992142677307129, | |
0.008879022598266601, | |
0.008901423454284667, | |
0.009017422676086425, | |
0.008872303009033203, | |
0.0088515043258667, | |
0.008825263023376466, | |
0.00886958408355713, | |
0.008920303344726562, | |
0.008879343032836913, | |
0.008844623565673828, | |
0.008883182525634765, | |
0.008888142585754395, | |
0.008913103103637696, | |
0.008871982574462891, | |
0.008894702911376954 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 232.04751816114154 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1183.227904, | |
"max_global_vram": 1096.015872, | |
"max_process_vram": 182925.856768, | |
"max_reserved": 713.03168, | |
"max_allocated": 500.670464 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5014396800994873, | |
"mean": 0.00864551172585323, | |
"stdev": 0.0005577496866400949, | |
"p50": 0.008701183319091798, | |
"p90": 0.008974270725250243, | |
"p95": 0.009060862922668457, | |
"p99": 0.010761453256607056, | |
"values": [ | |
0.00871518325805664, | |
0.008748943328857423, | |
0.008562383651733398, | |
0.00839838409423828, | |
0.008546064376831055, | |
0.00850990390777588, | |
0.008526063919067383, | |
0.008775663375854493, | |
0.008584943771362305, | |
0.011668618202209474, | |
0.008026864051818848, | |
0.007947824954986572, | |
0.008121264457702638, | |
0.01007710075378418, | |
0.008383824348449706, | |
0.008898862838745117, | |
0.008696943283081056, | |
0.009181901931762696, | |
0.008935982704162598, | |
0.008976622581481934, | |
0.00887358283996582, | |
0.008633423805236816, | |
0.0080708646774292, | |
0.007883985042572022, | |
0.008031345367431641, | |
0.008280783653259278, | |
0.008075345039367675, | |
0.008098223686218261, | |
0.008121424674987793, | |
0.008043503761291504, | |
0.00807294464111328, | |
0.008186384201049805, | |
0.008401583671569825, | |
0.008735182762145997, | |
0.008415504455566407, | |
0.00839678382873535, | |
0.008539982795715332, | |
0.00860542392730713, | |
0.008207023620605469, | |
0.008084304809570312, | |
0.00892606258392334, | |
0.00897774314880371, | |
0.008761102676391602, | |
0.008728143692016601, | |
0.008760943412780761, | |
0.008806222915649415, | |
0.008761584281921387, | |
0.00870542335510254, | |
0.008735664367675781, | |
0.00889166259765625, | |
0.008973262786865234, | |
0.00903950309753418, | |
0.008864462852478027, | |
0.008931662559509277, | |
0.008800301551818848, | |
0.008846543312072753, | |
0.008915983200073242, | |
0.008972462654113769 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 115.66695317868064 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.45365817785263063, | |
"mean": 0.00782169272159708, | |
"stdev": 0.0005454293718873966, | |
"p50": 0.007903344869613648, | |
"p90": 0.008109168910980225, | |
"p95": 0.008207168102264404, | |
"p99": 0.009748138122558593, | |
"values": [ | |
0.007982223987579347, | |
0.00796494483947754, | |
0.007734385967254639, | |
0.007623344898223877, | |
0.007698066234588623, | |
0.007633745193481445, | |
0.007622546195983887, | |
0.007779504776000977, | |
0.007646066188812256, | |
0.010895978927612305, | |
0.007256946086883545, | |
0.007170385837554931, | |
0.007299026012420654, | |
0.00888222312927246, | |
0.007517265796661377, | |
0.008169584274291992, | |
0.007933424949645997, | |
0.008229743957519532, | |
0.008092465400695801, | |
0.008089585304260254, | |
0.008078865051269531, | |
0.0078732647895813, | |
0.007214546203613281, | |
0.007232306003570557, | |
0.007227827072143555, | |
0.007376465797424316, | |
0.007200786113739014, | |
0.007240945816040039, | |
0.007267665863037109, | |
0.00718846607208252, | |
0.007224145889282226, | |
0.007433105945587158, | |
0.007625586032867432, | |
0.008001745223999024, | |
0.0077081451416015625, | |
0.00759182596206665, | |
0.007653425216674805, | |
0.007741105079650879, | |
0.00740622615814209, | |
0.007270386219024658, | |
0.00800190544128418, | |
0.008102544784545898, | |
0.008055344581604004, | |
0.008029584884643554, | |
0.008023824691772461, | |
0.008009425163269043, | |
0.007990065097808838, | |
0.007965583801269532, | |
0.007968625068664551, | |
0.00805726432800293, | |
0.00809006404876709, | |
0.008203184127807617, | |
0.008047823905944823, | |
0.008066225051879882, | |
0.008026384353637695, | |
0.008054224967956543, | |
0.008063184738159179, | |
0.008124625205993653 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 127.84956346326706 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |