IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ab0d7a7
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": "2a33a472f309c43b5bd16946ef9cec843d02f70a", | |
"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": 1053.45024, | |
"max_global_vram": 1107.51744, | |
"max_process_vram": 285921.193984, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.5041200919151306, | |
"mean": 0.008264263801887389, | |
"stdev": 0.0005497381854447319, | |
"p50": 0.007954551219940185, | |
"p90": 0.008884949684143066, | |
"p95": 0.009240150451660156, | |
"p99": 0.0100907413482666, | |
"values": [ | |
0.010873908042907715, | |
0.008828949928283692, | |
0.009450228691101074, | |
0.009568630218505859, | |
0.008884949684143066, | |
0.008631191253662109, | |
0.008472149848937988, | |
0.008341751098632812, | |
0.008421270370483399, | |
0.008396470069885253, | |
0.008349270820617675, | |
0.008733110427856445, | |
0.008998069763183594, | |
0.009240150451660156, | |
0.008806230545043946, | |
0.00834639072418213, | |
0.007842071056365967, | |
0.007804951190948486, | |
0.007812311172485351, | |
0.007816471099853516, | |
0.007828951835632324, | |
0.007841432094573974, | |
0.008070712089538573, | |
0.00789135217666626, | |
0.007856311798095704, | |
0.00789407205581665, | |
0.007898870944976807, | |
0.007876951217651368, | |
0.007885111808776855, | |
0.007857592105865478, | |
0.007839831829071045, | |
0.007912950992584229, | |
0.007899510860443115, | |
0.00794319200515747, | |
0.00792143201828003, | |
0.00792047119140625, | |
0.007943350791931153, | |
0.007910071849822998, | |
0.007926391124725343, | |
0.007957430839538574, | |
0.00789903211593628, | |
0.00790959119796753, | |
0.007908151149749756, | |
0.007928311824798584, | |
0.007917110919952392, | |
0.008063990592956543, | |
0.00838079071044922, | |
0.008180630683898927, | |
0.008266071319580078, | |
0.008682870864868164, | |
0.008603191375732422, | |
0.00826815128326416, | |
0.008263991355895997, | |
0.008355670928955079, | |
0.008378231048583984, | |
0.007948471069335937, | |
0.007954551219940185, | |
0.00793423080444336, | |
0.007889750957489014, | |
0.008786551475524903, | |
0.008906230926513672 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 242.00582749345935 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.45024, | |
"max_global_vram": 1107.521536, | |
"max_process_vram": 265567.47776, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.4978692183494568, | |
"mean": 0.008161790464745192, | |
"stdev": 0.0005922057119031283, | |
"p50": 0.008037111282348634, | |
"p90": 0.008706230163574219, | |
"p95": 0.008984630584716796, | |
"p99": 0.010228244781494136, | |
"values": [ | |
0.008959030151367188, | |
0.008984630584716796, | |
0.009122550010681152, | |
0.009274709701538085, | |
0.00835615062713623, | |
0.008181270599365234, | |
0.008109911918640137, | |
0.008081591606140137, | |
0.008097592353820801, | |
0.007997111797332764, | |
0.00813999080657959, | |
0.008370870590209962, | |
0.00859343147277832, | |
0.008706230163574219, | |
0.011658547401428222, | |
0.007691991806030273, | |
0.007651832103729248, | |
0.007657432079315186, | |
0.007682392120361328, | |
0.007630712032318116, | |
0.0076615910530090335, | |
0.007658871173858642, | |
0.007680790901184082, | |
0.007765591144561768, | |
0.0077631912231445315, | |
0.00782063102722168, | |
0.00769599199295044, | |
0.007636631965637207, | |
0.007663031101226806, | |
0.007658071041107177, | |
0.00788559103012085, | |
0.007909751892089844, | |
0.008053751945495605, | |
0.007989430904388427, | |
0.00791663122177124, | |
0.007864312171936035, | |
0.007936470985412598, | |
0.008037111282348634, | |
0.008035191535949707, | |
0.007986711025238038, | |
0.008009751319885254, | |
0.007981112003326416, | |
0.007922070980072022, | |
0.008005910873413086, | |
0.00804847240447998, | |
0.008660630226135254, | |
0.008354551315307617, | |
0.008143671035766601, | |
0.008094072341918945, | |
0.008719189643859863, | |
0.008165910720825195, | |
0.008310710906982422, | |
0.008295830726623534, | |
0.008248630523681641, | |
0.00834575080871582, | |
0.007865272045135497, | |
0.008066390991210938, | |
0.008035032272338868, | |
0.00804271125793457, | |
0.008657428741455078, | |
0.008328790664672852 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 122.52213583765649 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.4527663869857791, | |
"mean": 0.007422399786652113, | |
"stdev": 0.0005738641356232504, | |
"p50": 0.007179831981658936, | |
"p90": 0.007956151008605958, | |
"p95": 0.008228151321411133, | |
"p99": 0.009417973709106443, | |
"values": [ | |
0.008228151321411133, | |
0.008158231735229492, | |
0.008277271270751953, | |
0.00843263053894043, | |
0.007707032203674316, | |
0.00751823091506958, | |
0.007454391956329346, | |
0.007471672058105469, | |
0.007417431831359863, | |
0.007385591983795166, | |
0.007486230850219726, | |
0.007666232109069825, | |
0.007842711925506592, | |
0.007956151008605958, | |
0.01089598846435547, | |
0.007054711818695068, | |
0.0070014319419860836, | |
0.007018232822418213, | |
0.007066553115844727, | |
0.007010232925415039, | |
0.007061272144317627, | |
0.007041592121124268, | |
0.007038072109222412, | |
0.007086872100830078, | |
0.007058231830596924, | |
0.007145112037658692, | |
0.00708271312713623, | |
0.00699919319152832, | |
0.007050871849060059, | |
0.007028632164001465, | |
0.007087512016296387, | |
0.007150232791900635, | |
0.00721503210067749, | |
0.0071556720733642575, | |
0.007111032009124756, | |
0.007128791809082031, | |
0.0071628718376159665, | |
0.007165112018585205, | |
0.007280471801757812, | |
0.007113592147827148, | |
0.007158872127532959, | |
0.007098233222961426, | |
0.007125271797180176, | |
0.00714191198348999, | |
0.007177913188934326, | |
0.007936790943145752, | |
0.0076148719787597656, | |
0.007441271781921386, | |
0.0073476719856262205, | |
0.00798223114013672, | |
0.007447991847991943, | |
0.007551352024078369, | |
0.007495992183685303, | |
0.007431191921234131, | |
0.007476791858673095, | |
0.007102551937103271, | |
0.007179831981658936, | |
0.007164953231811523, | |
0.00718783187866211, | |
0.00795007085800171, | |
0.007540791034698486 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 134.72731579324588 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |