IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f5fb220
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+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": "4", | |
"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.2", | |
"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": 1033.842688, | |
"max_global_vram": 1013.08416, | |
"max_process_vram": 42421.321728, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.435150390625, | |
"mean": 7.435150390625, | |
"stdev": 0.0, | |
"p50": 7.435150390625, | |
"p90": 7.435150390625, | |
"p95": 7.435150390625, | |
"p99": 7.435150390625, | |
"values": [ | |
7.435150390625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1203.478528, | |
"max_global_vram": 1125.101568, | |
"max_process_vram": 285222.907904, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.5165020403861998, | |
"mean": 0.008070344381034374, | |
"stdev": 0.0009219661782258188, | |
"p50": 0.00783693504333496, | |
"p90": 0.008640084648132325, | |
"p95": 0.008891763734817504, | |
"p99": 0.011501919288635245, | |
"values": [ | |
0.008549253463745117, | |
0.00877149200439453, | |
0.008455013275146485, | |
0.008201253890991212, | |
0.00803037452697754, | |
0.007951014995574952, | |
0.009859647750854492, | |
0.008894211769104004, | |
0.008679012298583984, | |
0.008043495178222657, | |
0.010228768348693847, | |
0.008537412643432617, | |
0.008473732948303222, | |
0.008877891540527344, | |
0.00850013256072998, | |
0.008450532913208008, | |
0.008486373901367188, | |
0.008442532539367676, | |
0.008460453987121582, | |
0.0076402959823608394, | |
0.007460775852203369, | |
0.007452776908874512, | |
0.008184293746948242, | |
0.007460455894470214, | |
0.007468296051025391, | |
0.007475815773010254, | |
0.007453735828399658, | |
0.007746534824371338, | |
0.007830854892730712, | |
0.007940774917602538, | |
0.007753894805908203, | |
0.007459015846252442, | |
0.007427977085113525, | |
0.007455336093902588, | |
0.007454856872558594, | |
0.007483816146850586, | |
0.007490856170654297, | |
0.007470696926116943, | |
0.007467016220092774, | |
0.007491655826568603, | |
0.007464296817779541, | |
0.0074721360206604, | |
0.007450857162475586, | |
0.0074574160575866695, | |
0.013669716835021972, | |
0.007821895122528077, | |
0.007445736885070801, | |
0.008201253890991212, | |
0.008452452659606934, | |
0.008531972885131836, | |
0.00787901496887207, | |
0.00828797435760498, | |
0.008485253334045411, | |
0.008440133094787597, | |
0.008418374061584473, | |
0.007865735054016113, | |
0.007843015193939208, | |
0.007708295822143555, | |
0.007437736988067627, | |
0.00745197582244873, | |
0.00744157600402832, | |
0.007442376136779785, | |
0.007438216209411621, | |
0.007432295799255371 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 247.82089903128278 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1203.478528, | |
"max_global_vram": 1125.163008, | |
"max_process_vram": 278132.81792, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.48157910490036027, | |
"mean": 0.007524673514068126, | |
"stdev": 0.0016825367101843706, | |
"p50": 0.00721597695350647, | |
"p90": 0.007910790872573853, | |
"p95": 0.00823348560333252, | |
"p99": 0.013047457981109588, | |
"values": [ | |
0.008155014038085938, | |
0.008247333526611328, | |
0.007870214939117432, | |
0.007712454795837403, | |
0.007670054912567139, | |
0.007560455799102783, | |
0.008776132583618163, | |
0.008261734008789063, | |
0.00765069580078125, | |
0.007981733798980713, | |
0.007890854835510254, | |
0.0077839760780334475, | |
0.007777094841003418, | |
0.00779597520828247, | |
0.0077938947677612305, | |
0.007813735961914063, | |
0.007763014793395996, | |
0.007743014812469483, | |
0.007419015884399414, | |
0.00686525821685791, | |
0.006863018035888672, | |
0.020320255279541014, | |
0.007084938049316406, | |
0.0068849377632141115, | |
0.006914058208465576, | |
0.006893098831176758, | |
0.006879978179931641, | |
0.007036297798156738, | |
0.007256776809692383, | |
0.00727437686920166, | |
0.006881577968597412, | |
0.006892458915710449, | |
0.006892298221588135, | |
0.006888137817382812, | |
0.00686093807220459, | |
0.006979497909545898, | |
0.006880938053131103, | |
0.00688765811920166, | |
0.006863977909088135, | |
0.006911178112030029, | |
0.006852938175201416, | |
0.006850217819213867, | |
0.006871178150177002, | |
0.0068298978805542, | |
0.0068660578727722165, | |
0.00681981897354126, | |
0.006869738101959229, | |
0.00778893518447876, | |
0.007919334888458252, | |
0.007314537048339844, | |
0.007195336818695068, | |
0.007809094905853272, | |
0.0077817349433898925, | |
0.007796935081481934, | |
0.007732934951782226, | |
0.007187817096710205, | |
0.007236617088317871, | |
0.0073838157653808596, | |
0.006835817813873291, | |
0.0068266987800598145, | |
0.006852777957916259, | |
0.00738573694229126, | |
0.00683853816986084, | |
0.006854537963867187 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.89613139100328 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.45567071390151986, | |
"mean": 0.007119854904711246, | |
"stdev": 0.0016786218225724103, | |
"p50": 0.006830458402633667, | |
"p90": 0.007461496114730835, | |
"p95": 0.0076045599937438965, | |
"p99": 0.012555800571441619, | |
"values": [ | |
0.007565256118774414, | |
0.0076114959716796875, | |
0.007292296886444092, | |
0.007161577224731445, | |
0.007110537052154541, | |
0.007015498161315918, | |
0.00818093490600586, | |
0.007722536087036133, | |
0.007107498168945313, | |
0.007443016052246094, | |
0.00746941614151001, | |
0.007378696918487549, | |
0.007378376007080078, | |
0.007398375988006592, | |
0.00737421703338623, | |
0.007406056880950928, | |
0.007364295959472657, | |
0.007346857070922852, | |
0.007055656909942627, | |
0.006514059066772461, | |
0.006509259223937989, | |
0.02000489616394043, | |
0.0067100591659545895, | |
0.0065202989578247075, | |
0.006544619083404541, | |
0.006536300182342529, | |
0.006528938770294189, | |
0.0066578989028930665, | |
0.006905258178710938, | |
0.006922858238220215, | |
0.006524138927459717, | |
0.006527979850769043, | |
0.006533099174499512, | |
0.006531980037689209, | |
0.006510058879852295, | |
0.006613899230957032, | |
0.006516619205474854, | |
0.006531659126281738, | |
0.0065086188316345215, | |
0.006549418926239014, | |
0.0065012588500976565, | |
0.006496298789978028, | |
0.006518379211425781, | |
0.006464779853820801, | |
0.006481898784637451, | |
0.006467020034790039, | |
0.006506538867950439, | |
0.007378376960754394, | |
0.007492297172546387, | |
0.006923657894134521, | |
0.006786538124084473, | |
0.00740445613861084, | |
0.007369736194610596, | |
0.007386376857757568, | |
0.00732093620300293, | |
0.006788458824157715, | |
0.006872457981109619, | |
0.007007338047027588, | |
0.006472299098968506, | |
0.006464300155639649, | |
0.00648413896560669, | |
0.007019338130950928, | |
0.006478219985961914, | |
0.006501099109649658 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.45230041672545 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |