IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ab0c1f6 verified
raw
history blame
13 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",
"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": "347e13ca9f7f904f55669603cfb9f0b6c7e8672c",
"transformers_version": "4.41.1",
"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": 1046.87616,
"max_global_vram": 2087.600128,
"max_process_vram": 265490.051072,
"max_reserved": 725.614592,
"max_allocated": 512.83456
},
"latency": {
"unit": "s",
"count": 53,
"total": 0.4989253911972046,
"mean": 0.00941368662636235,
"stdev": 0.0004632648262494675,
"p50": 0.009327374458312988,
"p90": 0.009679918098449708,
"p95": 0.009903279304504393,
"p99": 0.011206544990539545,
"values": [
0.012224497795104981,
0.009266413688659669,
0.009484333992004395,
0.009419533729553222,
0.009197613716125489,
0.009157134056091308,
0.009150733947753906,
0.009151853561401368,
0.009329133987426758,
0.009233774185180664,
0.009204494476318359,
0.009327374458312988,
0.010266896247863769,
0.009360174179077148,
0.009409133911132812,
0.009245614051818847,
0.009303533554077148,
0.009273934364318847,
0.009402093887329101,
0.009452653884887694,
0.009381294250488281,
0.009401774406433106,
0.009426573753356933,
0.00954305362701416,
0.009421614646911622,
0.009311214447021484,
0.009686734199523926,
0.009800174713134765,
0.009644495010375977,
0.009506415367126465,
0.009598573684692384,
0.009892655372619628,
0.009919215202331542,
0.009652653694152831,
0.009210893630981445,
0.009293933868408204,
0.009372014045715332,
0.009290094375610352,
0.00940001392364502,
0.009592333793640136,
0.009127214431762695,
0.009171052932739258,
0.009083694458007812,
0.009020494461059571,
0.009023213386535644,
0.009063854217529296,
0.009571534156799316,
0.009326574325561523,
0.009103373527526855,
0.00907585334777832,
0.009057293891906739,
0.009027053833007812,
0.009067532539367675
]
},
"throughput": {
"unit": "tokens/s",
"value": 212.45661549845354
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1046.87616,
"max_global_vram": 2087.600128,
"max_process_vram": 260645.326848,
"max_reserved": 725.614592,
"max_allocated": 513.058304
},
"latency": {
"unit": "s",
"count": 53,
"total": 0.500313717842102,
"mean": 0.009439881468718908,
"stdev": 0.00031460495577360903,
"p50": 0.00946593475341797,
"p90": 0.009823566818237305,
"p95": 0.009889039039611816,
"p99": 0.010386377563476561,
"values": [
0.009419694900512695,
0.00952993392944336,
0.00957345485687256,
0.009473613739013672,
0.00946593475341797,
0.009584334373474121,
0.009393774032592773,
0.0094937744140625,
0.009611055374145508,
0.00957905387878418,
0.009478255271911621,
0.009548813819885253,
0.009579533576965333,
0.009437134742736816,
0.009408973693847656,
0.009487215042114258,
0.009351214408874512,
0.009421294212341308,
0.009725295066833495,
0.009382414817810058,
0.009525294303894044,
0.009471855163574218,
0.00955825424194336,
0.009579693794250489,
0.009425614356994629,
0.009553613662719727,
0.009904974937438965,
0.009841935157775879,
0.009649293899536133,
0.009468974113464356,
0.009878415107727051,
0.010478896141052246,
0.010300975799560547,
0.009821134567260742,
0.009347213745117187,
0.009417614936828612,
0.009096334457397461,
0.00920561408996582,
0.009824174880981446,
0.009180173873901368,
0.008985134124755859,
0.009037294387817384,
0.008976972579956055,
0.009078093528747559,
0.008999214172363282,
0.009097933769226074,
0.009386894226074218,
0.009020174026489258,
0.009031373023986817,
0.008987693786621094,
0.008979052543640136,
0.009132654190063476,
0.009126413345336913
]
},
"throughput": {
"unit": "tokens/s",
"value": 105.93353352091513
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 52,
"total": 0.9800533084869386,
"mean": 0.0188471790093642,
"stdev": 0.0005258960172680916,
"p50": 0.018822428703308105,
"p90": 0.019545787620544434,
"p95": 0.019921094608306884,
"p99": 0.02022557996749878,
"values": [
0.018787227630615234,
0.01910578727722168,
0.018927867889404298,
0.018684667587280275,
0.01864914894104004,
0.018772188186645507,
0.018708187103271483,
0.01882626724243164,
0.018815547943115234,
0.018819068908691405,
0.01897730827331543,
0.019898269653320314,
0.018825788497924805,
0.018901147842407227,
0.01878066825866699,
0.018732187271118163,
0.018725948333740236,
0.01909874725341797,
0.018983388900756838,
0.018896188735961914,
0.018920188903808595,
0.019034107208251952,
0.019187707901000977,
0.018926908493041992,
0.018870908737182616,
0.019556827545166015,
0.019709949493408204,
0.019346588134765624,
0.019092187881469727,
0.019446428298950196,
0.0202445125579834,
0.02020738983154297,
0.019948991775512695,
0.018569147109985352,
0.018725467681884767,
0.018600988388061523,
0.01854562759399414,
0.019225467681884767,
0.018891227722167968,
0.018174747467041015,
0.01823442840576172,
0.018111547470092772,
0.01813250732421875,
0.01806178855895996,
0.018159868240356446,
0.018918588638305665,
0.018506908416748048,
0.018193788528442383,
0.018102588653564452,
0.018079708099365235,
0.01818370819091797,
0.018226905822753905
]
},
"throughput": {
"unit": "tokens/s",
"value": 53.05833830639329
},
"energy": null,
"efficiency": null
}
}
}