IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
07cd01f
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", | |
"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.2.1", | |
"optimum_benchmark_commit": "fb780fc73efc41258966d25b08045708166d6309", | |
"transformers_version": "4.41.0", | |
"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": 1047.289856, | |
"max_global_vram": 3306.180608, | |
"max_process_vram": 215104.167936, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.83456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.5086840229034425, | |
"mean": 0.008339082342679384, | |
"stdev": 0.0007318623127341023, | |
"p50": 0.008263181686401368, | |
"p90": 0.008696942329406739, | |
"p95": 0.009005901336669921, | |
"p99": 0.011556166648864743, | |
"values": [ | |
0.010818375587463378, | |
0.008599821090698243, | |
0.008479342460632325, | |
0.008294382095336915, | |
0.008147022247314454, | |
0.008099822044372559, | |
0.00821550178527832, | |
0.008245262145996093, | |
0.00817342185974121, | |
0.008366222381591798, | |
0.008399821281433106, | |
0.008430702209472656, | |
0.00905742073059082, | |
0.00821854305267334, | |
0.008342541694641114, | |
0.008767340660095215, | |
0.009005901336669921, | |
0.012662853240966797, | |
0.008550540924072265, | |
0.008075342178344727, | |
0.008519822120666504, | |
0.008547660827636718, | |
0.008221582412719726, | |
0.008503021240234375, | |
0.008285262107849122, | |
0.00812590217590332, | |
0.008379181861877442, | |
0.008338062286376954, | |
0.008532301902770996, | |
0.008263181686401368, | |
0.008229742050170899, | |
0.0077905430793762205, | |
0.0078027029037475585, | |
0.007771663188934326, | |
0.007951343059539795, | |
0.008348301887512207, | |
0.008310542106628419, | |
0.008270062446594239, | |
0.007764782905578613, | |
0.007786223888397217, | |
0.0077836627960205075, | |
0.008696942329406739, | |
0.008850061416625976, | |
0.00859886074066162, | |
0.008679182052612304, | |
0.008283823013305665, | |
0.008610060691833496, | |
0.008184942245483398, | |
0.008239022254943848, | |
0.008436141967773437, | |
0.007782863140106201, | |
0.007791822910308838, | |
0.0077719841003417965, | |
0.007791022777557373, | |
0.0078075041770935055, | |
0.007769903182983398, | |
0.007782382965087891, | |
0.0077550230026245115, | |
0.007795982837677002, | |
0.007799824237823486, | |
0.007780942916870117 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 239.8345426767175 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1047.289856, | |
"max_global_vram": 3306.192896, | |
"max_process_vram": 230607.212544, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.058304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.5045861191749572, | |
"mean": 0.008271903593032086, | |
"stdev": 0.00043364634186819205, | |
"p50": 0.008237582206726074, | |
"p90": 0.008850541114807129, | |
"p95": 0.008935980796813965, | |
"p99": 0.009160940551757812, | |
"values": [ | |
0.009137580871582032, | |
0.00886254119873047, | |
0.008883820533752442, | |
0.008479501724243164, | |
0.008513101577758789, | |
0.008519822120666504, | |
0.008575821876525879, | |
0.00857422161102295, | |
0.008629100799560547, | |
0.008761101722717286, | |
0.008935980796813965, | |
0.008677580833435058, | |
0.008677420616149902, | |
0.008790540695190429, | |
0.008771181106567383, | |
0.009087180137634277, | |
0.009195980072021484, | |
0.008850541114807129, | |
0.00825726318359375, | |
0.007949263095855712, | |
0.008334861755371094, | |
0.008309103012084961, | |
0.008410061836242676, | |
0.008702701568603515, | |
0.008031823158264161, | |
0.008351502418518066, | |
0.008141263008117676, | |
0.008667181015014649, | |
0.008150542259216308, | |
0.008036783218383789, | |
0.007735504150390625, | |
0.007741743087768554, | |
0.007778863906860351, | |
0.0077355031967163085, | |
0.00783214282989502, | |
0.008057103157043458, | |
0.008131023406982421, | |
0.007903343200683593, | |
0.007837903022766114, | |
0.007881583213806153, | |
0.008156302452087403, | |
0.008831021308898925, | |
0.008815020561218261, | |
0.008246862411499023, | |
0.008487021446228028, | |
0.008254701614379883, | |
0.008122062683105469, | |
0.008163823127746581, | |
0.008237582206726074, | |
0.007981263160705566, | |
0.007941903114318848, | |
0.007821582794189453, | |
0.0077689428329467776, | |
0.007768302917480469, | |
0.007727982997894287, | |
0.007751183986663818, | |
0.007739023208618164, | |
0.007695024013519287, | |
0.007735504150390625, | |
0.00771054220199585, | |
0.00773038387298584 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 120.89115748911281 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.9957039489746096, | |
"mean": 0.01659506581624349, | |
"stdev": 0.0009883454193281348, | |
"p50": 0.016547804832458497, | |
"p90": 0.01749351634979248, | |
"p95": 0.017726647472381594, | |
"p99": 0.01971388208389281, | |
"values": [ | |
0.01748924446105957, | |
0.017423641204833983, | |
0.016797883987426758, | |
0.016668283462524414, | |
0.016672924041748048, | |
0.016843643188476563, | |
0.016807804107666014, | |
0.01683436393737793, | |
0.0171602840423584, | |
0.0173796443939209, | |
0.017209403991699217, | |
0.017713722229003907, | |
0.017078203201293947, | |
0.01717596435546875, | |
0.017932762145996095, | |
0.01825868034362793, | |
0.021807952880859374, | |
0.016826204299926758, | |
0.016126365661621095, | |
0.01688620376586914, | |
0.01688860321044922, | |
0.016599004745483398, | |
0.017291004180908204, | |
0.0163631649017334, | |
0.016519964218139647, | |
0.016468284606933593, | |
0.017117404937744142, | |
0.016731803894042968, | |
0.016313085556030272, | |
0.015979005813598634, | |
0.015558846473693847, | |
0.015611166954040528, | |
0.01555436611175537, | |
0.015768766403198242, | |
0.016475645065307618, | |
0.01648844528198242, | |
0.016205724716186524, | |
0.015635005950927733, | |
0.01569900608062744, | |
0.015933726310729982, | |
0.017531963348388673, | |
0.01771579933166504, | |
0.016894363403320314, | |
0.01720860481262207, | |
0.016541725158691407, | |
0.016775484085083007, | |
0.016383163452148436, | |
0.016553884506225587, | |
0.016449085235595705, | |
0.015757725715637206, | |
0.015649725914001465, | |
0.01556236743927002, | |
0.015576445579528808, | |
0.015583806991577149, | |
0.015551965713500976, | |
0.015545566558837891, | |
0.015486367225646972, | |
0.015554205894470215, | |
0.015543806076049804, | |
0.01554268741607666 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 60.25887520260303 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |