IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
de81739
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": "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": "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.1", | |
"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": 907.464704, | |
"max_global_vram": 1011.75296, | |
"max_process_vram": 43659.227136, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.20912890625, | |
"mean": 7.20912890625, | |
"stdev": 0.0, | |
"p50": 7.20912890625, | |
"p90": 7.20912890625, | |
"p95": 7.20912890625, | |
"p99": 7.20912890625, | |
"values": [ | |
7.20912890625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1062.825984, | |
"max_global_vram": 1107.49696, | |
"max_process_vram": 277389.615104, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.5123312149047851, | |
"mean": 0.008005175232887268, | |
"stdev": 0.0003251578291028621, | |
"p50": 0.007869614839553833, | |
"p90": 0.008294208240509034, | |
"p95": 0.00874251298904419, | |
"p99": 0.00913956467628479, | |
"values": [ | |
0.00809521484375, | |
0.00828065586090088, | |
0.00802465534210205, | |
0.00799361515045166, | |
0.007948174953460693, | |
0.00791505479812622, | |
0.008015854835510254, | |
0.007974255084991454, | |
0.007958415031433106, | |
0.007976174831390381, | |
0.00811649513244629, | |
0.00807121467590332, | |
0.007964654922485352, | |
0.00942593765258789, | |
0.007894094944000243, | |
0.007867694854736328, | |
0.008116015434265137, | |
0.007912495136260987, | |
0.007793775081634521, | |
0.007794575214385986, | |
0.007758894920349121, | |
0.007822733879089355, | |
0.008107215881347656, | |
0.007939215183258058, | |
0.007768654823303222, | |
0.007818574905395509, | |
0.007803695201873779, | |
0.007774895191192627, | |
0.007817134857177735, | |
0.0077912149429321285, | |
0.007817615032196044, | |
0.0078028950691223144, | |
0.007803373813629151, | |
0.007811854839324952, | |
0.00781729507446289, | |
0.007823054790496825, | |
0.007803854942321778, | |
0.007790734767913818, | |
0.00797649621963501, | |
0.0077710552215576175, | |
0.008206576347351073, | |
0.008587057113647462, | |
0.007871534824371338, | |
0.007827535152435302, | |
0.00782497501373291, | |
0.0089713773727417, | |
0.008745777130126952, | |
0.008724016189575195, | |
0.008847216606140136, | |
0.00822673511505127, | |
0.008240655899047851, | |
0.008300016403198242, | |
0.00793857479095459, | |
0.00780257511138916, | |
0.007853774070739747, | |
0.007856335163116455, | |
0.00781297492980957, | |
0.0077979350090026855, | |
0.0078046550750732425, | |
0.007789615154266357, | |
0.007782575130462647, | |
0.007799055099487305, | |
0.007840973854064941, | |
0.00811921501159668 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 249.8383785258689 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1063.051264, | |
"max_global_vram": 1107.607552, | |
"max_process_vram": 257818.095616, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4989713501930237, | |
"mean": 0.007796427346765995, | |
"stdev": 0.0014158997659376436, | |
"p50": 0.007548974514007568, | |
"p90": 0.007840639114379882, | |
"p95": 0.008116703844070433, | |
"p99": 0.012265636425018284, | |
"values": [ | |
0.007877455234527589, | |
0.0077404952049255375, | |
0.007587854862213135, | |
0.007541614055633545, | |
0.007768495082855225, | |
0.007557134151458741, | |
0.007595375061035157, | |
0.007680494785308838, | |
0.007561453819274902, | |
0.007841935157775879, | |
0.007650895118713379, | |
0.007598094940185547, | |
0.007614093780517578, | |
0.007694893836975097, | |
0.007486094951629638, | |
0.007463374137878418, | |
0.007723215103149414, | |
0.007692975044250488, | |
0.007457454204559327, | |
0.0075451340675354, | |
0.007501773834228516, | |
0.007700494766235352, | |
0.007606733798980713, | |
0.007561934947967529, | |
0.007463374137878418, | |
0.007481773853302002, | |
0.007501934051513672, | |
0.007527054786682129, | |
0.007528654098510742, | |
0.007493934154510498, | |
0.007458893775939941, | |
0.007510254859924317, | |
0.007537455081939697, | |
0.007490414142608643, | |
0.007471054077148437, | |
0.007575534820556641, | |
0.007533133983612061, | |
0.007527694225311279, | |
0.007536014080047607, | |
0.007680334091186523, | |
0.01893699645996094, | |
0.007899374961853027, | |
0.0075451340675354, | |
0.007512814044952393, | |
0.007668175220489502, | |
0.008318575859069824, | |
0.007837615013122558, | |
0.008347536087036133, | |
0.00815505599975586, | |
0.007805134773254395, | |
0.007775694847106934, | |
0.007795855045318604, | |
0.007506254196166992, | |
0.00752225399017334, | |
0.007518895149230957, | |
0.0074702539443969726, | |
0.0074824137687683106, | |
0.007468654155731201, | |
0.007552814960479736, | |
0.0074891338348388676, | |
0.00749441385269165, | |
0.007591693878173828, | |
0.007451213836669922, | |
0.007458414077758789 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 128.26387722509926 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4634877648353574, | |
"mean": 0.007241996325552464, | |
"stdev": 0.0014267364016928195, | |
"p50": 0.006989372968673706, | |
"p90": 0.007288750171661377, | |
"p95": 0.007573078846931456, | |
"p99": 0.011754413313865633, | |
"values": [ | |
0.00727489423751831, | |
0.007230733871459961, | |
0.007040013790130615, | |
0.007018572807312011, | |
0.00722385311126709, | |
0.0070337729454040526, | |
0.0070652937889099125, | |
0.007049613952636718, | |
0.007003053188323975, | |
0.007289614200592041, | |
0.0070867338180541995, | |
0.0070201740264892575, | |
0.0070246529579162595, | |
0.007087852954864502, | |
0.006917932987213135, | |
0.006898413181304932, | |
0.007193453788757324, | |
0.007134734153747558, | |
0.006911693096160888, | |
0.006949613094329834, | |
0.006922092914581299, | |
0.007139694213867187, | |
0.007039692878723145, | |
0.006960974216461181, | |
0.006934253215789795, | |
0.006944653034210205, | |
0.0069360132217407226, | |
0.006924172878265381, | |
0.00697169303894043, | |
0.006965932846069336, | |
0.006933932781219483, | |
0.006936333179473877, | |
0.006963054180145264, | |
0.006943212985992432, | |
0.006916492938995361, | |
0.0070244941711425785, | |
0.00695153284072876, | |
0.0069224128723144535, | |
0.0069438529014587405, | |
0.007120013236999512, | |
0.018463876724243163, | |
0.007373293876647949, | |
0.006997292995452881, | |
0.006981452941894531, | |
0.007084013938903809, | |
0.007769615173339844, | |
0.007324974060058594, | |
0.007813934803009032, | |
0.007608335018157959, | |
0.007286734104156494, | |
0.007247213840484619, | |
0.007265294075012207, | |
0.0069200129508972166, | |
0.006961452960968018, | |
0.006956334114074707, | |
0.006941772937774658, | |
0.006913773059844971, | |
0.006947052955627441, | |
0.006972814083099365, | |
0.006954092979431153, | |
0.006953292846679687, | |
0.007068812847137451, | |
0.006907693862915039, | |
0.006925453186035156 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.0834724358568 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |