IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
08d088b verified
raw
history blame
13.2 kB
{
"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",
"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": "2516ce57a5b64eefeb78dc75a171e0cdff88823e",
"transformers_version": "4.40.2",
"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": 1049.27232,
"max_global_vram": 2098.76992,
"max_process_vram": 314614.493184,
"max_reserved": 725.614592,
"max_allocated": 512.832512
},
"latency": {
"unit": "s",
"count": 56,
"total": 0.5015724849700927,
"mean": 0.008956651517323085,
"stdev": 0.0002566393828623806,
"p50": 0.008914408683776857,
"p90": 0.009145848751068116,
"p95": 0.009260929346084596,
"p99": 0.009860977745056156,
"values": [
0.009163208961486816,
0.009038249015808105,
0.00944848918914795,
0.009298249244689942,
0.009248489379882813,
0.009128488540649415,
0.009165449142456055,
0.00899456787109375,
0.008902249336242675,
0.00887312889099121,
0.008882087707519531,
0.010365130424499512,
0.009022889137268066,
0.00902720832824707,
0.008934409141540527,
0.008899048805236816,
0.008887687683105468,
0.008898408889770507,
0.008907849311828614,
0.008922247886657715,
0.008908968925476074,
0.008908008575439453,
0.008914728164672852,
0.00891680908203125,
0.008859848022460938,
0.008903688430786132,
0.008955848693847657,
0.008974569320678711,
0.008985447883605956,
0.008959849357604981,
0.008910888671875,
0.00895248794555664,
0.008917128562927246,
0.00891408920288086,
0.008986569404602051,
0.008994089126586915,
0.008911527633666993,
0.008890568733215332,
0.008931049346923828,
0.008896807670593261,
0.00892720890045166,
0.008922728538513183,
0.008909768104553222,
0.00888576889038086,
0.008921608924865723,
0.008949288368225098,
0.008458087921142578,
0.008138728141784669,
0.008653449058532716,
0.008874249458312989,
0.008897128105163575,
0.008881928443908692,
0.008883528709411621,
0.008853287696838378,
0.008908647537231446,
0.00890656852722168
]
},
"throughput": {
"unit": "tokens/s",
"value": 223.29773533466098
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1049.27232,
"max_global_vram": 2098.76992,
"max_process_vram": 344017.719296,
"max_reserved": 725.614592,
"max_allocated": 513.056256
},
"latency": {
"unit": "s",
"count": 56,
"total": 0.5037987298965454,
"mean": 0.008996405891009739,
"stdev": 0.0001950793052661122,
"p50": 0.008976088523864747,
"p90": 0.009157848834991454,
"p95": 0.009251329183578492,
"p99": 0.009544289064407348,
"values": [
0.009077129364013671,
0.009231208801269531,
0.00949424934387207,
0.009244169235229492,
0.009172968864440918,
0.009142728805541992,
0.00905600929260254,
0.008979208946228027,
0.008982088088989258,
0.008964009284973144,
0.008945609092712402,
0.009272809028625489,
0.009118088722229004,
0.009003209114074708,
0.00897056770324707,
0.00897024917602539,
0.008994089126586915,
0.008973447799682618,
0.008964009284973144,
0.008956809043884278,
0.008969448089599609,
0.009004968643188477,
0.008967529296875,
0.008961288452148438,
0.00898240852355957,
0.00894080924987793,
0.009605448722839355,
0.00900800895690918,
0.009003209114074708,
0.00898416805267334,
0.008972808837890625,
0.009009288787841798,
0.008944968223571777,
0.008960968971252441,
0.008975687980651856,
0.009012489318847657,
0.008955689430236816,
0.008925127983093261,
0.008943368911743164,
0.00899696922302246,
0.009094887733459473,
0.008972808837890625,
0.008925449371337891,
0.008968968391418457,
0.008975049018859864,
0.008888169288635254,
0.00825264835357666,
0.008211048126220703,
0.00893168830871582,
0.008964327812194825,
0.00895552921295166,
0.00899936866760254,
0.008976807594299316,
0.008976489067077638,
0.009074408531188965,
0.008993768692016601
]
},
"throughput": {
"unit": "tokens/s",
"value": 111.15550055376191
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 55,
"total": 0.9890390071868895,
"mean": 0.017982527403397997,
"stdev": 0.0004181244172935414,
"p50": 0.017917137145996093,
"p90": 0.01831051330566406,
"p95": 0.018599122619628906,
"p99": 0.019283300018310547,
"values": [
0.018242095947265623,
0.018979700088500976,
0.018614578247070312,
0.018480337142944336,
0.01831857681274414,
0.018298418045043945,
0.01800769805908203,
0.01793121528625488,
0.017872175216674804,
0.017869937896728517,
0.019639699935913087,
0.018210575103759764,
0.018064657211303712,
0.01792737579345703,
0.017916336059570312,
0.017917137145996093,
0.01790609550476074,
0.017908016204833985,
0.017909618377685548,
0.017908975601196288,
0.017948015213012695,
0.017916177749633787,
0.017911056518554687,
0.01787281608581543,
0.017877458572387695,
0.018592498779296876,
0.01801633644104004,
0.018022417068481445,
0.01796625518798828,
0.01792241668701172,
0.017985137939453125,
0.017908336639404297,
0.017908016204833985,
0.017994258880615236,
0.018037776947021484,
0.017904338836669923,
0.017848655700683592,
0.017908336639404297,
0.017925777435302735,
0.0180534553527832,
0.01792849540710449,
0.017869298934936523,
0.017885295867919922,
0.01792913627624512,
0.017889938354492187,
0.01672257614135742,
0.01638577651977539,
0.017615535736083984,
0.017872175216674804,
0.017887535095214843,
0.017914897918701173,
0.017892656326293947,
0.017857776641845704,
0.018019378662109373,
0.017925775527954102
]
},
"throughput": {
"unit": "tokens/s",
"value": 55.609535721382464
},
"energy": null,
"efficiency": null
}
}
}