IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5c2270d
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": "5", | |
"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 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 907.771904, | |
"max_global_vram": 1011.744768, | |
"max_process_vram": 45440.679936, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.9293203125, | |
"mean": 7.9293203125, | |
"stdev": 0.0, | |
"p50": 7.9293203125, | |
"p90": 7.9293203125, | |
"p95": 7.9293203125, | |
"p99": 7.9293203125, | |
"values": [ | |
7.9293203125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1063.26016, | |
"max_global_vram": 1106.20672, | |
"max_process_vram": 272973.283328, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.5255575284957886, | |
"mean": 0.008759292141596476, | |
"stdev": 0.00024423789635899453, | |
"p50": 0.008681575298309326, | |
"p90": 0.008905509471893312, | |
"p95": 0.00941276502609253, | |
"p99": 0.009644199657440185, | |
"values": [ | |
0.009476133346557617, | |
0.009467332839965821, | |
0.009409893035888671, | |
0.009298853874206543, | |
0.009178532600402831, | |
0.009886051177978515, | |
0.00873261547088623, | |
0.008685894966125488, | |
0.008704455375671386, | |
0.008668455123901367, | |
0.008704455375671386, | |
0.008700775146484376, | |
0.00873869514465332, | |
0.008875173568725586, | |
0.008732134819030762, | |
0.00866189479827881, | |
0.008692774772644043, | |
0.008682854652404785, | |
0.008646695137023926, | |
0.008695335388183593, | |
0.0086578950881958, | |
0.008651335716247559, | |
0.0086612548828125, | |
0.008670854568481445, | |
0.008673416137695313, | |
0.008681575775146484, | |
0.008658855438232423, | |
0.008657255172729493, | |
0.00867149543762207, | |
0.008643335342407226, | |
0.008643815040588379, | |
0.00866557502746582, | |
0.008658214569091797, | |
0.008668134689331055, | |
0.008711654663085938, | |
0.008693414688110352, | |
0.008699014663696289, | |
0.008704614639282227, | |
0.008667015075683593, | |
0.00869133472442627, | |
0.008686855316162109, | |
0.008664295196533204, | |
0.008640774726867676, | |
0.00868701457977295, | |
0.008639015197753907, | |
0.008711814880371094, | |
0.008639495849609375, | |
0.008624935150146484, | |
0.008628934860229491, | |
0.008771334648132324, | |
0.00866557502746582, | |
0.008694695472717286, | |
0.008700614929199218, | |
0.008681574821472167, | |
0.008675495147705077, | |
0.008722214698791505, | |
0.008680774688720702, | |
0.008651974678039551, | |
0.008663335800170898, | |
0.008657734870910644 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 228.32895257623846 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1063.26016, | |
"max_global_vram": 1107.59936, | |
"max_process_vram": 283014.725632, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.48269717216491687, | |
"mean": 0.008044952869415282, | |
"stdev": 0.00021879985370803652, | |
"p50": 0.007973896980285645, | |
"p90": 0.008170951652526855, | |
"p95": 0.008667166852951049, | |
"p99": 0.008867033977508544, | |
"values": [ | |
0.008888934135437012, | |
0.008851815223693847, | |
0.008712614059448242, | |
0.008664774894714355, | |
0.008513895988464356, | |
0.008310055732727051, | |
0.008010856628417969, | |
0.008079337120056153, | |
0.007999016761779785, | |
0.008155495643615722, | |
0.007979496955871582, | |
0.007988457202911376, | |
0.008006056785583497, | |
0.007976616859436035, | |
0.008002376556396485, | |
0.008006217002868653, | |
0.007953096866607666, | |
0.00798941707611084, | |
0.007986856937408447, | |
0.007970857143402099, | |
0.007978057861328125, | |
0.00795069694519043, | |
0.008125896453857423, | |
0.007952938079833985, | |
0.007983656883239746, | |
0.007927816867828369, | |
0.007956616878509522, | |
0.008029417037963867, | |
0.00792877721786499, | |
0.007964937210083008, | |
0.007942856788635254, | |
0.007934378147125245, | |
0.007974856853485108, | |
0.007954057216644286, | |
0.007972937107086181, | |
0.008084136962890625, | |
0.007936617851257325, | |
0.007979977130889892, | |
0.007945577144622802, | |
0.007918537139892578, | |
0.008008936882019042, | |
0.007915337085723877, | |
0.008019817352294923, | |
0.007936137199401855, | |
0.007937257766723632, | |
0.007988458156585693, | |
0.007957897186279296, | |
0.007941256999969483, | |
0.0080919771194458, | |
0.007961417198181152, | |
0.007963497161865235, | |
0.007952776908874512, | |
0.007926056861877442, | |
0.007933736801147461, | |
0.007957097053527831, | |
0.007975337028503417, | |
0.007944937229156495, | |
0.007943017959594727, | |
0.00790157699584961, | |
0.007951655864715575 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 124.30153615961225 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.4567852435111999, | |
"mean": 0.007613087391853333, | |
"stdev": 0.00017337942100724223, | |
"p50": 0.007555657863616944, | |
"p90": 0.007760744905471802, | |
"p95": 0.008096872186660766, | |
"p99": 0.008255937547683716, | |
"values": [ | |
0.008268775939941407, | |
0.008247015953063964, | |
0.008123016357421875, | |
0.00809549617767334, | |
0.007967176914215088, | |
0.00787565803527832, | |
0.007581898212432861, | |
0.0076575779914855955, | |
0.007572298049926758, | |
0.007747976779937744, | |
0.0075650978088378906, | |
0.0075577378273010256, | |
0.0075791778564453125, | |
0.007563979148864746, | |
0.007580298900604248, | |
0.0075729389190673825, | |
0.007544619083404541, | |
0.007558059215545654, | |
0.007573578834533691, | |
0.00754093885421753, | |
0.007566699028015137, | |
0.0075418977737426755, | |
0.007683978080749511, | |
0.0075398187637329105, | |
0.0075718178749084476, | |
0.0075130977630615235, | |
0.007547177791595459, | |
0.00761917781829834, | |
0.007508458137512207, | |
0.007553577899932861, | |
0.0075295791625976565, | |
0.007513739109039306, | |
0.007561098098754883, | |
0.007542218208312988, | |
0.007548937797546387, | |
0.007670378208160401, | |
0.007523979187011719, | |
0.007566378116607666, | |
0.007525897979736328, | |
0.0075057377815246585, | |
0.00758637809753418, | |
0.007502377986907959, | |
0.007608458042144776, | |
0.007527657985687256, | |
0.0075246191024780276, | |
0.007565258979797363, | |
0.0075364580154418945, | |
0.007514698028564453, | |
0.007665418148040772, | |
0.00754653787612915, | |
0.007549417972564697, | |
0.007539817810058594, | |
0.007507977962493896, | |
0.007518377780914307, | |
0.007538218021392823, | |
0.007563658237457275, | |
0.007531177997589111, | |
0.0075282988548278805, | |
0.007485258102416992, | |
0.007538217067718506 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 131.35275460913363 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |