IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
069eb02
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": "5", | |
"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": 1078.730752, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 48814.563328, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.2401591796875, | |
"mean": 8.2401591796875, | |
"stdev": 0.0, | |
"p50": 8.2401591796875, | |
"p90": 8.2401591796875, | |
"p95": 8.2401591796875, | |
"p99": 8.2401591796875, | |
"values": [ | |
8.2401591796875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.006144, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 276885.147648, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.5316273217201234, | |
"mean": 0.008306676901876926, | |
"stdev": 0.0014337414956753468, | |
"p50": 0.00795718002319336, | |
"p90": 0.008894137859344483, | |
"p95": 0.008942977952957152, | |
"p99": 0.01513989028930663, | |
"values": [ | |
0.008524298667907715, | |
0.00841133975982666, | |
0.008454379081726074, | |
0.009001578330993652, | |
0.008405099868774414, | |
0.008218218803405761, | |
0.008089579582214356, | |
0.008037579536437989, | |
0.007989099979400635, | |
0.007969740867614747, | |
0.007967339992523194, | |
0.008015819549560547, | |
0.007977099895477294, | |
0.008074540138244629, | |
0.007820940017700196, | |
0.007785261154174805, | |
0.007818220138549804, | |
0.017983955383300783, | |
0.007910540103912353, | |
0.007974219799041749, | |
0.00797565984725952, | |
0.007811820030212403, | |
0.007800621032714844, | |
0.00781118106842041, | |
0.007806540966033936, | |
0.0077862200736999515, | |
0.007811501026153565, | |
0.007813261032104493, | |
0.00783646011352539, | |
0.007803980827331543, | |
0.007808460235595703, | |
0.007815660953521729, | |
0.00827758026123047, | |
0.008331499099731444, | |
0.013469566345214843, | |
0.007931340217590331, | |
0.007845099925994872, | |
0.00780686092376709, | |
0.007831500053405762, | |
0.007827341079711914, | |
0.007849899768829346, | |
0.007839820861816406, | |
0.007825740814208984, | |
0.007828460216522217, | |
0.007819981098175048, | |
0.007952939987182618, | |
0.00781742000579834, | |
0.007798861026763916, | |
0.00782270097732544, | |
0.007826381206512452, | |
0.007961420059204102, | |
0.007789421081542969, | |
0.007967339992523194, | |
0.007807341098785401, | |
0.00799149990081787, | |
0.008220620155334472, | |
0.008913738250732422, | |
0.008404619216918945, | |
0.00822093963623047, | |
0.008679339408874512, | |
0.008872298240661622, | |
0.008903497695922852, | |
0.008938217163085937, | |
0.00894381809234619 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 240.7701688202285 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.116736, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 305735.118848, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4826258425712585, | |
"mean": 0.007541028790175915, | |
"stdev": 0.0008990888346526478, | |
"p50": 0.007255981922149659, | |
"p90": 0.00816849193572998, | |
"p95": 0.008192106819152832, | |
"p99": 0.010503216381072983, | |
"values": [ | |
0.007806060791015625, | |
0.0076465411186218265, | |
0.007974380970001221, | |
0.007864941120147705, | |
0.007598540782928467, | |
0.0074603018760681155, | |
0.007382381916046143, | |
0.0073655819892883305, | |
0.007302862167358398, | |
0.007510540962219238, | |
0.007345582008361816, | |
0.007293101787567139, | |
0.0072329421043395995, | |
0.0071857419013977054, | |
0.007217902183532715, | |
0.007181581974029541, | |
0.007194862842559814, | |
0.007227821826934815, | |
0.007802220821380615, | |
0.007183981895446777, | |
0.007412302017211914, | |
0.007178701877593994, | |
0.0073191819190979, | |
0.007172942161560059, | |
0.007200302124023438, | |
0.007604142189025879, | |
0.007203022003173828, | |
0.0072022218704223635, | |
0.007240461826324463, | |
0.00724766206741333, | |
0.0072377419471740725, | |
0.007331020832061767, | |
0.007655341148376465, | |
0.007331021785736084, | |
0.007233582019805908, | |
0.007394062042236328, | |
0.007214541912078857, | |
0.007244142055511474, | |
0.007231982231140137, | |
0.007210221767425537, | |
0.007189103126525879, | |
0.007178542137145996, | |
0.007215022087097168, | |
0.007203661918640137, | |
0.007188782215118408, | |
0.007234861850738525, | |
0.007228783130645752, | |
0.0072383818626403805, | |
0.007312301158905029, | |
0.0072067022323608395, | |
0.007264301776885986, | |
0.014169404029846192, | |
0.007232461929321289, | |
0.007205421924591064, | |
0.007185902118682861, | |
0.008192778587341309, | |
0.008175020217895507, | |
0.007515981197357178, | |
0.007648621082305908, | |
0.008321739196777344, | |
0.008188300132751465, | |
0.008350058555603028, | |
0.008183979988098144, | |
0.00815325927734375 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.6079011000132 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.45706510734558115, | |
"mean": 0.007141642302274704, | |
"stdev": 0.0009043949159083764, | |
"p50": 0.006873662948608398, | |
"p90": 0.007738028383255005, | |
"p95": 0.007757507991790771, | |
"p99": 0.010112587218284591, | |
"values": [ | |
0.00729678201675415, | |
0.007168302059173584, | |
0.0074267020225524906, | |
0.007356622219085693, | |
0.007142221927642823, | |
0.007035502910614014, | |
0.006971823215484619, | |
0.006961263179779052, | |
0.006909422874450684, | |
0.007114702224731445, | |
0.006937582969665527, | |
0.006898383140563965, | |
0.006845263004302979, | |
0.006801103115081787, | |
0.006832462787628174, | |
0.006800783157348633, | |
0.006829422950744629, | |
0.0068211030960083005, | |
0.007416781902313233, | |
0.006803822994232178, | |
0.007033263206481934, | |
0.006803983211517334, | |
0.006942543029785156, | |
0.006796302795410156, | |
0.006821903228759765, | |
0.007222702026367187, | |
0.0068235030174255374, | |
0.006829102993011474, | |
0.006860783100128174, | |
0.00687086296081543, | |
0.006861903190612793, | |
0.006891663074493408, | |
0.007225741863250732, | |
0.006922062873840332, | |
0.006825743198394775, | |
0.007017743110656738, | |
0.006838542938232422, | |
0.006865423202514648, | |
0.006856943130493164, | |
0.0068419032096862795, | |
0.006799024105072021, | |
0.006798383235931397, | |
0.006832942962646484, | |
0.006835342884063721, | |
0.0068137431144714355, | |
0.006852462768554688, | |
0.00684846305847168, | |
0.006855982780456543, | |
0.006941902160644531, | |
0.006834543228149414, | |
0.006876462936401367, | |
0.013888444900512695, | |
0.006859823226928711, | |
0.006823822975158691, | |
0.0068063831329345705, | |
0.007757579803466797, | |
0.007742381095886231, | |
0.007106381893157959, | |
0.007253421783447266, | |
0.007887020111083984, | |
0.007757101058959961, | |
0.007895020008087159, | |
0.0077375807762145995, | |
0.00773822021484375 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.02381492580318 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |