IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2fbdfdd
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": {}, | |
"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": 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 7643 48-Core Processor", | |
"cpu_count": 96, | |
"cpu_ram_mb": 1082028.982272, | |
"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.4.0", | |
"optimum_benchmark_commit": "2680e6fb8019f9b6eb6fcaa00b283acdac4d3d3d", | |
"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": 901.992448, | |
"max_global_vram": 1011.740672, | |
"max_process_vram": 42736.06656, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 6.732580078125, | |
"mean": 6.732580078125, | |
"stdev": 0.0, | |
"p50": 6.732580078125, | |
"p90": 6.732580078125, | |
"p95": 6.732580078125, | |
"p99": 6.732580078125, | |
"values": [ | |
6.732580078125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.37888, | |
"max_global_vram": 1106.137088, | |
"max_process_vram": 263983.087616, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 65, | |
"total": 0.5109176683425904, | |
"mean": 0.007860271820655237, | |
"stdev": 0.00042685307115098174, | |
"p50": 0.007779526233673096, | |
"p90": 0.007984613800048827, | |
"p95": 0.008168710327148438, | |
"p99": 0.009271091651916504, | |
"values": [ | |
0.008222886085510254, | |
0.008304965972900391, | |
0.008119686126708985, | |
0.00792832612991333, | |
0.0077888059616088865, | |
0.007779526233673096, | |
0.00788144588470459, | |
0.0077691259384155276, | |
0.007693126201629639, | |
0.0077313661575317385, | |
0.007659046173095703, | |
0.0076934461593627925, | |
0.010988648414611817, | |
0.00791856622695923, | |
0.007631364822387695, | |
0.007860486030578612, | |
0.007966725826263428, | |
0.007934726238250733, | |
0.007939526081085205, | |
0.007771845817565918, | |
0.007689606189727783, | |
0.007884006023406982, | |
0.007990245819091796, | |
0.007952486038208008, | |
0.007976165771484375, | |
0.007965606212615967, | |
0.0081809663772583, | |
0.007704646110534668, | |
0.007635685920715332, | |
0.007637285232543946, | |
0.007621446132659912, | |
0.007622245788574219, | |
0.007702246189117432, | |
0.007628645896911621, | |
0.00761552619934082, | |
0.007602564811706543, | |
0.007619525909423828, | |
0.007634726047515869, | |
0.007618566036224365, | |
0.007618405818939209, | |
0.007632646083831787, | |
0.007620965957641602, | |
0.007643525123596191, | |
0.007596005916595459, | |
0.007611526012420654, | |
0.007708004951477051, | |
0.008067365646362304, | |
0.007911046028137208, | |
0.007912645816802979, | |
0.0075678458213806156, | |
0.0077289662361145015, | |
0.00767456579208374, | |
0.007775846004486084, | |
0.00772528600692749, | |
0.007916965961456298, | |
0.00796992588043213, | |
0.007926566123962402, | |
0.007959526062011718, | |
0.0079299259185791, | |
0.007931046009063721, | |
0.007908485889434814, | |
0.007951045989990234, | |
0.007945926189422607, | |
0.007895845890045166, | |
0.007921926021575928 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 254.44412682324756 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.50176, | |
"max_global_vram": 1107.529728, | |
"max_process_vram": 269445.554176, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 65, | |
"total": 0.49015668916702276, | |
"mean": 0.007540872141031119, | |
"stdev": 0.0012375305438079146, | |
"p50": 0.007339206218719483, | |
"p90": 0.007628613185882568, | |
"p95": 0.007711589908599854, | |
"p99": 0.011249288177490229, | |
"values": [ | |
0.007729765892028809, | |
0.0078120059967041015, | |
0.0074707260131835936, | |
0.007369925022125244, | |
0.007296165943145752, | |
0.007271365165710449, | |
0.007268805980682373, | |
0.007268165111541748, | |
0.007293126106262207, | |
0.007271844863891602, | |
0.007240964889526367, | |
0.007239205837249756, | |
0.007749765872955322, | |
0.007266565799713135, | |
0.007339206218719483, | |
0.007624005794525147, | |
0.007600646018981933, | |
0.007294244766235351, | |
0.007343366146087647, | |
0.0074091248512268065, | |
0.007391526222229004, | |
0.007471205234527588, | |
0.007568165779113769, | |
0.007573606014251709, | |
0.007633925914764405, | |
0.01736001205444336, | |
0.007268325805664062, | |
0.007260805130004883, | |
0.007242886066436768, | |
0.007179845809936523, | |
0.0072620849609375, | |
0.0072451248168945315, | |
0.007261606216430664, | |
0.007307684898376464, | |
0.00727552604675293, | |
0.007252806186676025, | |
0.0072520051002502445, | |
0.007215205192565918, | |
0.007277925968170166, | |
0.007221284866333008, | |
0.007258084774017334, | |
0.007211205959320069, | |
0.007381765842437744, | |
0.0071792049407958984, | |
0.0072596859931945805, | |
0.007209445953369141, | |
0.007484965801239014, | |
0.007580326080322265, | |
0.0072832050323486325, | |
0.007216165065765381, | |
0.0074120059013366695, | |
0.007397924900054932, | |
0.0072921662330627446, | |
0.0076316847801208496, | |
0.007575526237487793, | |
0.007583685874938965, | |
0.007489285945892334, | |
0.007506724834442139, | |
0.007572004795074463, | |
0.007564005851745606, | |
0.0076388859748840335, | |
0.007496325016021729, | |
0.007414084911346435, | |
0.007406405925750733, | |
0.007431365966796875 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.6106558098017 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 65, | |
"total": 0.4558608222007751, | |
"mean": 0.007013243418473463, | |
"stdev": 0.0012505175779430459, | |
"p50": 0.006811365127563477, | |
"p90": 0.007064197063446045, | |
"p95": 0.007162373161315918, | |
"p99": 0.010741230010986324, | |
"values": [ | |
0.007177605152130127, | |
0.007255044937133789, | |
0.006951045036315918, | |
0.006854245185852051, | |
0.006746564865112305, | |
0.006777764797210694, | |
0.006751365184783935, | |
0.006742724895477295, | |
0.006733765125274658, | |
0.0067400050163269045, | |
0.006708964824676513, | |
0.006710404872894287, | |
0.0072033658027648925, | |
0.006702404975891113, | |
0.006795364856719971, | |
0.00709504508972168, | |
0.0070606451034545895, | |
0.006811365127563477, | |
0.006835205078125, | |
0.006856645107269287, | |
0.006932485103607178, | |
0.006959845066070556, | |
0.0069998459815979, | |
0.007035686016082764, | |
0.007101445198059082, | |
0.016938892364501953, | |
0.006726564884185791, | |
0.006711685180664063, | |
0.006706725120544434, | |
0.006687685012817383, | |
0.006675364971160888, | |
0.006697444915771484, | |
0.006726725101470947, | |
0.006794085025787353, | |
0.00667424488067627, | |
0.006742084980010986, | |
0.006679844856262207, | |
0.006692005157470703, | |
0.00674784517288208, | |
0.006707684993743896, | |
0.006720324993133545, | |
0.006667524814605713, | |
0.006877925872802735, | |
0.006674405097961426, | |
0.006698404788970947, | |
0.006689926147460937, | |
0.007034564971923828, | |
0.007036485195159912, | |
0.006721445083618164, | |
0.006755364894866943, | |
0.006954885005950927, | |
0.00683472490310669, | |
0.0067456049919128415, | |
0.007042405128479004, | |
0.007044166088104248, | |
0.007036005973815918, | |
0.006961605072021484, | |
0.0069945650100708, | |
0.0069979248046875, | |
0.006993125915527343, | |
0.007066565036773682, | |
0.006972165107727051, | |
0.006952805042266846, | |
0.0069489660263061526, | |
0.006991205215454102 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 142.58737938083218 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |