IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
88501b0
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": "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", | |
"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.2.0", | |
"optimum_benchmark_commit": "4ec62071e1c9b9c89fb7e3c044340b391a0c4120", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1048.956928, | |
"max_global_vram": 2098.76992, | |
"max_process_vram": 296970.108928, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.832512 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.5044673919677735, | |
"mean": 0.008407789866129558, | |
"stdev": 0.0006794862572330723, | |
"p50": 0.008201694011688233, | |
"p90": 0.008985150718688965, | |
"p95": 0.0090519109249115, | |
"p99": 0.01154798274040222, | |
"values": [ | |
0.011305459022521972, | |
0.008786253929138184, | |
0.008667054176330567, | |
0.0085419340133667, | |
0.008382574081420898, | |
0.008269453048706054, | |
0.008165453910827637, | |
0.0083192138671875, | |
0.00814913272857666, | |
0.008135692596435547, | |
0.008195213317871094, | |
0.00819697380065918, | |
0.011896980285644532, | |
0.008312973976135254, | |
0.008009933471679687, | |
0.007961133003234862, | |
0.00796785306930542, | |
0.007987692832946777, | |
0.007992332935333251, | |
0.007962893962860108, | |
0.007981452941894531, | |
0.007954893112182617, | |
0.007974573135375976, | |
0.007969772815704346, | |
0.007962253093719483, | |
0.007977453231811524, | |
0.007988492965698242, | |
0.008487214088439941, | |
0.00872529411315918, | |
0.008546733856201172, | |
0.008191054344177245, | |
0.007984814167022704, | |
0.007956653118133546, | |
0.008206414222717286, | |
0.008539053916931152, | |
0.008648653984069825, | |
0.00796737289428711, | |
0.008003533363342285, | |
0.007982253074645996, | |
0.008015052795410156, | |
0.008189614295959474, | |
0.00798737382888794, | |
0.008177292823791505, | |
0.007977613925933838, | |
0.0079635329246521, | |
0.009095535278320313, | |
0.008421133995056153, | |
0.008351694107055664, | |
0.008382094383239747, | |
0.008984174728393555, | |
0.008403373718261718, | |
0.00836993408203125, | |
0.008457774162292481, | |
0.008993934631347657, | |
0.009011533737182617, | |
0.009049614906311036, | |
0.008683053970336915, | |
0.008520813941955566, | |
0.008446093559265136, | |
0.008732013702392578 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 237.87464147467807 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1048.956928, | |
"max_global_vram": 2098.761728, | |
"max_process_vram": 291089.477632, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.056256 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.5064446754455567, | |
"mean": 0.008440744590759277, | |
"stdev": 0.00033879874824960064, | |
"p50": 0.008314733505249023, | |
"p90": 0.008973582363128663, | |
"p95": 0.009151374578475953, | |
"p99": 0.009247938718795775, | |
"values": [ | |
0.009181775093078614, | |
0.008886895179748534, | |
0.008801454544067383, | |
0.008560653686523437, | |
0.008455213546752929, | |
0.008302413940429687, | |
0.008287372589111329, | |
0.008286893844604492, | |
0.00825041389465332, | |
0.00823665428161621, | |
0.008313294410705566, | |
0.00831617259979248, | |
0.00905921459197998, | |
0.00813169288635254, | |
0.008139373779296875, | |
0.008101133346557618, | |
0.008330094337463378, | |
0.008117774009704589, | |
0.008141133308410644, | |
0.008122893333435058, | |
0.008142733573913574, | |
0.008108013153076172, | |
0.008111054420471192, | |
0.00809729290008545, | |
0.008105454444885253, | |
0.008114253044128418, | |
0.00880865478515625, | |
0.008463053703308106, | |
0.008447214126586914, | |
0.008472333908081055, | |
0.008103532791137695, | |
0.008109772682189941, | |
0.008098572731018066, | |
0.008537613868713378, | |
0.008236494064331055, | |
0.008268814086914062, | |
0.008136173248291016, | |
0.008132973670959472, | |
0.008210413932800293, | |
0.008217613220214843, | |
0.008179693222045899, | |
0.00842833423614502, | |
0.008104653358459472, | |
0.008084973335266114, | |
0.008722734451293946, | |
0.008965614318847657, | |
0.008526893615722656, | |
0.008517293930053712, | |
0.009045294761657715, | |
0.008844654083251953, | |
0.008537934303283692, | |
0.008594573974609375, | |
0.008726414680480956, | |
0.009149774551391602, | |
0.009330256462097168, | |
0.00919073486328125, | |
0.008637615203857422, | |
0.008624653816223144, | |
0.00861105442047119, | |
0.008676974296569825 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 118.47296044175722 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.9924334793090823, | |
"mean": 0.01682090642896749, | |
"stdev": 0.0008209126699511148, | |
"p50": 0.0166451473236084, | |
"p90": 0.017730139541625976, | |
"p95": 0.01819604663848877, | |
"p99": 0.0194745634841919, | |
"values": [ | |
0.017688507080078124, | |
0.017499868392944335, | |
0.0172017879486084, | |
0.0169144287109375, | |
0.016646427154541017, | |
0.01648434829711914, | |
0.0166451473236084, | |
0.01644114685058594, | |
0.016414587020874023, | |
0.016524986267089845, | |
0.01654642868041992, | |
0.020989154815673827, | |
0.016531387329101564, | |
0.016163225173950194, | |
0.01610530662536621, | |
0.016325307846069337, | |
0.01613554573059082, | |
0.016153627395629883, | |
0.01613202667236328, | |
0.016149307250976564, | |
0.016095066070556642, | |
0.01612066650390625, | |
0.01609986686706543, | |
0.01609266662597656, | |
0.016124027252197266, | |
0.016821147918701172, | |
0.01696002769470215, | |
0.017225627899169923, | |
0.017009788513183594, | |
0.016370426177978514, | |
0.016113466262817382, | |
0.016092506408691407, | |
0.016777788162231445, | |
0.016759227752685547, | |
0.01698562812805176, | |
0.01613282775878906, | |
0.01617442512512207, | |
0.01618290710449219, | |
0.01630498695373535, | |
0.016400827407836913, | |
0.016444507598876952, | |
0.01631250762939453, | |
0.016094106674194336, | |
0.016672828674316405, | |
0.018080989837646486, | |
0.01699458885192871, | |
0.016940988540649415, | |
0.01739506721496582, | |
0.017896669387817383, | |
0.016996828079223633, | |
0.01697730827331543, | |
0.017179868698120118, | |
0.01818979072570801, | |
0.018377790451049803, | |
0.018252349853515624, | |
0.017374748229980468, | |
0.017199388504028322, | |
0.017110748291015623, | |
0.017405948638916015 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 59.4498283563297 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |