IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7178bf4
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 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": "2c28e6003745fe7e05d2d15f59cde0588e3c32a2", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 901.472256, | |
"max_global_vram": 3298.36544, | |
"max_process_vram": 42754.08896, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.5744208984375, | |
"mean": 7.5744208984375, | |
"stdev": 0.0, | |
"p50": 7.5744208984375, | |
"p90": 7.5744208984375, | |
"p95": 7.5744208984375, | |
"p99": 7.5744208984375, | |
"values": [ | |
7.5744208984375 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1055.920128, | |
"max_global_vram": 3392.753664, | |
"max_process_vram": 304494.927872, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.5234061136245728, | |
"mean": 0.008871290061433437, | |
"stdev": 0.0001981740822222945, | |
"p50": 0.008811970710754395, | |
"p90": 0.009156386184692384, | |
"p95": 0.009303888893127442, | |
"p99": 0.009396321029663085, | |
"values": [ | |
0.009111969947814942, | |
0.009401888847351074, | |
0.00930284881591797, | |
0.009012290000915527, | |
0.008784770965576172, | |
0.008764451026916503, | |
0.008775330543518067, | |
0.008733410835266114, | |
0.008747491836547851, | |
0.008804130554199218, | |
0.00939228916168213, | |
0.00901548957824707, | |
0.008779810905456544, | |
0.008965729713439941, | |
0.008820931434631347, | |
0.008811970710754395, | |
0.008742530822753907, | |
0.0087351713180542, | |
0.008724291801452637, | |
0.008684931755065918, | |
0.008644771575927735, | |
0.008620450973510742, | |
0.008690370559692382, | |
0.00903612995147705, | |
0.008817891120910644, | |
0.008814210891723634, | |
0.008866050720214843, | |
0.00885581111907959, | |
0.008928130149841309, | |
0.008817730903625488, | |
0.008714530944824219, | |
0.008707012176513672, | |
0.008708612442016601, | |
0.009148770332336426, | |
0.008980609893798829, | |
0.009000129699707031, | |
0.009263010025024413, | |
0.009085889816284179, | |
0.008858530998229981, | |
0.008878690719604492, | |
0.008725411415100097, | |
0.008650691986083984, | |
0.008673571586608886, | |
0.008714852333068847, | |
0.008733091354370117, | |
0.008755970954895019, | |
0.008812610626220702, | |
0.009133569717407227, | |
0.009028290748596192, | |
0.008789891242980958, | |
0.008664131164550781, | |
0.008663331031799316, | |
0.008760610580444335, | |
0.008956451416015625, | |
0.008890050888061524, | |
0.008694050788879394, | |
0.008710371017456055, | |
0.009186849594116211, | |
0.009313249588012695 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 225.44635404209035 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1055.920128, | |
"max_global_vram": 3394.134016, | |
"max_process_vram": 298521.100288, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.4821817665100096, | |
"mean": 0.008172572313728978, | |
"stdev": 0.00028127383857071516, | |
"p50": 0.008073412895202636, | |
"p90": 0.008567043495178223, | |
"p95": 0.008775378513336181, | |
"p99": 0.009065688800811768, | |
"values": [ | |
0.008939970016479492, | |
0.008944931030273438, | |
0.008697091102600097, | |
0.008104933738708495, | |
0.007979173183441162, | |
0.007965253829956056, | |
0.008030533790588379, | |
0.007984453201293946, | |
0.008021733283996583, | |
0.008534531593322753, | |
0.008451011657714844, | |
0.008145893096923828, | |
0.008020934104919433, | |
0.008073412895202636, | |
0.008139653205871582, | |
0.008007014274597168, | |
0.007975493907928467, | |
0.007983654022216798, | |
0.007972773075103759, | |
0.007967493057250977, | |
0.007893733978271485, | |
0.007931334018707275, | |
0.008325733184814454, | |
0.008203493118286134, | |
0.008029253005981445, | |
0.008130213737487794, | |
0.00810045337677002, | |
0.00801021385192871, | |
0.008168292999267577, | |
0.008045893669128418, | |
0.007957573890686034, | |
0.007956933975219727, | |
0.008184453010559083, | |
0.008297251701354981, | |
0.008099014282226563, | |
0.008734210968017578, | |
0.00830925178527832, | |
0.008181093215942382, | |
0.008193252563476562, | |
0.008155973434448242, | |
0.008037893295288086, | |
0.007995812892913819, | |
0.007956774234771728, | |
0.007997733116149902, | |
0.007968934059143066, | |
0.007895333766937256, | |
0.008276773452758788, | |
0.008213253021240234, | |
0.00836877155303955, | |
0.008022693634033204, | |
0.008003334045410156, | |
0.007983173847198486, | |
0.0083682918548584, | |
0.008082372665405273, | |
0.008099332809448242, | |
0.008009893417358398, | |
0.008064292907714843, | |
0.009232449531555175, | |
0.00875709056854248 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 122.36049576705678 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.45429338264465335, | |
"mean": 0.007699887841434803, | |
"stdev": 0.0002160762439576929, | |
"p50": 0.007617414951324463, | |
"p90": 0.008025157737731934, | |
"p95": 0.008213333129882813, | |
"p99": 0.00831355344772339, | |
"values": [ | |
0.008272293090820313, | |
0.00825725269317627, | |
0.008208453178405762, | |
0.007660134792327881, | |
0.007542534828186035, | |
0.007520455837249756, | |
0.007593094825744629, | |
0.0075486149787902836, | |
0.007579174995422364, | |
0.008015813827514649, | |
0.007937414169311523, | |
0.007679174900054932, | |
0.007579655170440674, | |
0.007617414951324463, | |
0.0076703748703002925, | |
0.007564614772796631, | |
0.007545255184173584, | |
0.007545575141906739, | |
0.00752317476272583, | |
0.0075370950698852536, | |
0.0074668550491333, | |
0.0075103759765625, | |
0.007840614795684814, | |
0.0077364549636840824, | |
0.0075890951156616215, | |
0.007658535003662109, | |
0.00763453483581543, | |
0.007578535079956055, | |
0.007701895236968994, | |
0.007616934776306153, | |
0.007516455173492431, | |
0.007503815174102783, | |
0.007682054042816162, | |
0.00780173397064209, | |
0.007632615089416504, | |
0.008193093299865723, | |
0.007800454139709472, | |
0.00773869514465332, | |
0.007763174057006836, | |
0.007724614143371582, | |
0.007603495121002197, | |
0.007500295162200928, | |
0.007539175033569336, | |
0.007569735050201416, | |
0.0075172557830810545, | |
0.007464935779571533, | |
0.007819334030151366, | |
0.007784133911132813, | |
0.007945414066314698, | |
0.0075700550079345705, | |
0.0075774149894714355, | |
0.00753133487701416, | |
0.00784157419204712, | |
0.00765165376663208, | |
0.007668293952941894, | |
0.00758173418045044, | |
0.007606375217437744, | |
0.008370532035827636, | |
0.008062533378601074 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 129.872021592156 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |