IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1b22f88
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.0.dev20231010+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": "6", | |
"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": "warn", | |
"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.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 955.604992, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 45728.497664, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.107091796875, | |
"mean": 8.107091796875, | |
"stdev": 0.0, | |
"p50": 8.107091796875, | |
"p90": 8.107091796875, | |
"p95": 8.107091796875, | |
"p99": 8.107091796875, | |
"values": [ | |
8.107091796875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1129.938944, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 283445.436416, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.497672924041748, | |
"mean": 0.008294548734029133, | |
"stdev": 0.0004310947193689784, | |
"p50": 0.008118098258972167, | |
"p90": 0.008943683528900145, | |
"p95": 0.009010210943222045, | |
"p99": 0.00943183054924011, | |
"values": [ | |
0.008454897880554198, | |
0.00843585777282715, | |
0.008847539901733398, | |
0.008460497856140137, | |
0.008327378273010253, | |
0.008091537475585938, | |
0.00813937759399414, | |
0.008251697540283202, | |
0.00871889877319336, | |
0.008100337028503417, | |
0.008260658264160156, | |
0.008113778114318848, | |
0.008006576538085938, | |
0.008203858375549317, | |
0.007989617824554443, | |
0.008030097961425781, | |
0.00796737813949585, | |
0.00795233678817749, | |
0.007993297100067139, | |
0.008210577964782716, | |
0.007980817794799805, | |
0.007951218128204346, | |
0.009794422149658203, | |
0.007925296783447265, | |
0.007953776836395263, | |
0.007948337078094482, | |
0.008131056785583497, | |
0.007886577129364013, | |
0.008064976692199707, | |
0.008132818222045899, | |
0.007903217792510986, | |
0.008206578254699707, | |
0.007929777145385742, | |
0.008059057235717773, | |
0.008073938369750977, | |
0.0079417781829834, | |
0.008000657081604004, | |
0.007939857006072998, | |
0.007893456935882568, | |
0.007957457065582275, | |
0.007941136837005616, | |
0.007890417098999023, | |
0.00812561798095703, | |
0.007920337200164796, | |
0.007920496940612793, | |
0.00917986011505127, | |
0.008918580055236816, | |
0.00898386001586914, | |
0.009073140144348145, | |
0.00893921947479248, | |
0.009006898880004882, | |
0.008994739532470703, | |
0.008937939643859864, | |
0.008815218925476074, | |
0.00807105827331543, | |
0.008383858680725097, | |
0.008448818206787109, | |
0.008122418403625488, | |
0.00889617919921875, | |
0.008871858596801757 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 241.12221943971707 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1130.151936, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 308512.366592, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.5148145594596863, | |
"mean": 0.008580242657661438, | |
"stdev": 0.0046149479557032365, | |
"p50": 0.007668097019195557, | |
"p90": 0.00842654676437378, | |
"p95": 0.008517378473281859, | |
"p99": 0.02757448169708243, | |
"values": [ | |
0.008113617897033692, | |
0.00778145694732666, | |
0.008135376930236816, | |
0.007659057140350342, | |
0.007660817146301269, | |
0.007675376892089844, | |
0.007784017086029053, | |
0.00805137825012207, | |
0.0077014570236206056, | |
0.007977938175201416, | |
0.007991217136383056, | |
0.007968017101287842, | |
0.007611536979675293, | |
0.007640495777130127, | |
0.00795121717453003, | |
0.007616015911102295, | |
0.007648655891418457, | |
0.008096338272094727, | |
0.0076208171844482425, | |
0.007627376079559326, | |
0.0076209759712219235, | |
0.042774330139160155, | |
0.008280657768249511, | |
0.007588976860046386, | |
0.007604977130889892, | |
0.0075664172172546385, | |
0.007612977027893066, | |
0.007563056945800781, | |
0.007596817016601563, | |
0.007555856227874756, | |
0.007596496105194092, | |
0.0075993771553039555, | |
0.007589457035064698, | |
0.007634576797485352, | |
0.00759825611114502, | |
0.007745616912841797, | |
0.007574896812438964, | |
0.007575376987457276, | |
0.007612977027893066, | |
0.007561777114868164, | |
0.007555215835571289, | |
0.007564335823059082, | |
0.007572657108306885, | |
0.00756385612487793, | |
0.007707857131958008, | |
0.008415858268737792, | |
0.008415377616882325, | |
0.01701187515258789, | |
0.008616179466247558, | |
0.008509618759155273, | |
0.008475218772888184, | |
0.00840689754486084, | |
0.008512178421020507, | |
0.00765585708618164, | |
0.007951537132263183, | |
0.007753136157989502, | |
0.007760497093200683, | |
0.008358736991882325, | |
0.008421138763427734, | |
0.008420498847961425 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 116.54682039873124 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.4829244151115419, | |
"mean": 0.008048740251859029, | |
"stdev": 0.004574674345626011, | |
"p50": 0.0071504955291748044, | |
"p90": 0.007903072929382325, | |
"p95": 0.007989585781097411, | |
"p99": 0.02690364006042472, | |
"values": [ | |
0.007550736904144287, | |
0.0072008161544799805, | |
0.007598415851593017, | |
0.007148655891418457, | |
0.007139376163482666, | |
0.0071897759437561035, | |
0.007232656002044677, | |
0.007525937080383301, | |
0.007179534912109375, | |
0.007433456897735596, | |
0.007444816112518311, | |
0.007456175804138184, | |
0.007093935012817383, | |
0.007147375106811523, | |
0.007440815925598145, | |
0.00712353515625, | |
0.007126735210418701, | |
0.0075923361778259275, | |
0.007099055767059327, | |
0.007132975101470948, | |
0.0071080150604248046, | |
0.041933853149414065, | |
0.00765169620513916, | |
0.007076655864715576, | |
0.007055375099182129, | |
0.007037294864654541, | |
0.007109776020050049, | |
0.0070472159385681155, | |
0.007081776142120361, | |
0.0070542550086975095, | |
0.007063694953918457, | |
0.0070784158706665035, | |
0.007060175895690918, | |
0.007093935966491699, | |
0.007066094875335693, | |
0.007211056232452393, | |
0.007064176082611084, | |
0.007056816101074219, | |
0.007097935199737549, | |
0.007047375202178955, | |
0.007045294761657715, | |
0.007037455081939697, | |
0.007076816082000732, | |
0.007028494834899902, | |
0.007152335166931152, | |
0.007899056911468506, | |
0.00788465690612793, | |
0.016458915710449218, | |
0.0080892972946167, | |
0.00798433780670166, | |
0.0079515380859375, | |
0.00786881685256958, | |
0.007939217090606689, | |
0.007127056121826172, | |
0.007421296119689941, | |
0.007247694969177246, | |
0.007283696174621582, | |
0.007808657169342041, | |
0.007888658046722412, | |
0.007878417015075684 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 124.24304533483095 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |