{ "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", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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.0", "optimum_benchmark_commit": "bb03882362b0d86ebdf2f3e66d54ac5dde388b89", "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": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1050.800128, "max_global_vram": 1118.425088, "max_process_vram": 302859.558912, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 59, "total": 0.5048434829711913, "mean": 0.008556669202901549, "stdev": 0.0005463420013264488, "p50": 0.008372794151306153, "p90": 0.009115353012084961, "p95": 0.009336778068542481, "p99": 0.010474734554290774, "values": [ 0.011534231185913086, 0.009435993194580078, 0.009325754165649415, 0.00904703426361084, 0.008915993690490722, 0.009112632751464844, 0.008518074035644531, 0.008397274017333985, 0.008503033638000488, 0.008444314002990722, 0.008378873825073243, 0.008415353775024415, 0.009707512855529786, 0.008372794151306153, 0.00815551471710205, 0.008104153633117676, 0.008170074462890625, 0.008793913841247558, 0.008650394439697265, 0.009292794227600097, 0.008843354225158691, 0.0088571138381958, 0.008809433937072755, 0.008915352821350097, 0.008452473640441894, 0.008198874473571777, 0.008216633796691894, 0.00823215389251709, 0.008220314025878906, 0.008418394088745116, 0.00819775390625, 0.008208793640136719, 0.008191034317016602, 0.008210554122924804, 0.008210554122924804, 0.008226234436035157, 0.008226394653320312, 0.008218073844909668, 0.0082011137008667, 0.008212474822998047, 0.008208474159240723, 0.008221274375915527, 0.008218394279479981, 0.008190073966979981, 0.008182554244995118, 0.008272314071655273, 0.009126234054565429, 0.008964473724365235, 0.008729433059692383, 0.008736634254455566, 0.008733754158020019, 0.008776473999023437, 0.00867535400390625, 0.008214234352111816, 0.008184634208679199, 0.008197275161743164, 0.00821583366394043, 0.00821247386932373, 0.00824079418182373 ] }, "throughput": { "unit": "tokens/s", "value": 233.73580917698723 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1050.800128, "max_global_vram": 1118.425088, "max_process_vram": 283256.958976, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 59, "total": 0.5036386814117432, "mean": 0.008536248837487173, "stdev": 0.0003447201994014502, "p50": 0.008387993812561036, "p90": 0.008993274116516113, "p95": 0.009209864711761474, "p99": 0.009449231204986573, "values": [ 0.0090764741897583, 0.009694872856140136, 0.009204472541809082, 0.009271352767944337, 0.008561433792114258, 0.008972474098205566, 0.008424473762512206, 0.008490714073181152, 0.0085067138671875, 0.008422874450683593, 0.008409914016723632, 0.008456314086914062, 0.008632634162902832, 0.00823743438720703, 0.00819503402709961, 0.008213434219360351, 0.0088308744430542, 0.008521913528442383, 0.008743674278259277, 0.009182072639465333, 0.00894559383392334, 0.00886495304107666, 0.008878233909606934, 0.008788634300231933, 0.008290714263916015, 0.008275835037231446, 0.008387993812561036, 0.008274714469909667, 0.008277753829956054, 0.008259835243225098, 0.008273274421691894, 0.008296954154968261, 0.008268474578857422, 0.008279354095458984, 0.008253113746643066, 0.008281594276428222, 0.008268954277038575, 0.008257913589477538, 0.008275513648986816, 0.008299034118652343, 0.008844953536987304, 0.008275033950805664, 0.008278233528137207, 0.00824655532836914, 0.008249114036560059, 0.00825711441040039, 0.00880655288696289, 0.009258394241333007, 0.008816953659057616, 0.00878127384185791, 0.008859353065490723, 0.008800153732299804, 0.008272314071655273, 0.008241594314575195, 0.008362553596496581, 0.008296953201293946, 0.008275513648986816, 0.008277593612670898, 0.008390873908996581 ] }, "throughput": { "unit": "tokens/s", "value": 117.14747531825364 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.9898751506805421, "mean": 0.01706681294276797, "stdev": 0.0006932146518072272, "p50": 0.016744547843933102, "p90": 0.018150915718078614, "p95": 0.018407035350799558, "p99": 0.01886310447692871, "values": [ 0.01910350799560547, 0.018681747436523437, 0.018337108612060546, 0.01759598731994629, 0.0180865478515625, 0.01704206848144531, 0.016909587860107423, 0.01705326843261719, 0.01691470718383789, 0.016824787139892577, 0.01690270805358887, 0.01838526725769043, 0.016664148330688477, 0.0163739070892334, 0.016356468200683594, 0.016981107711791992, 0.01740302848815918, 0.017371347427368164, 0.01853038787841797, 0.017804628372192384, 0.017758228302001952, 0.01774734878540039, 0.017741268157958984, 0.016782228469848632, 0.01651262855529785, 0.016634708404541017, 0.016535348892211914, 0.016531988143920897, 0.016706867218017576, 0.01649854850769043, 0.016521108627319335, 0.01650990867614746, 0.01651934814453125, 0.016495668411254882, 0.016538549423217773, 0.016525108337402342, 0.016506547927856444, 0.016507989883422853, 0.016532308578491212, 0.01709134864807129, 0.016527507781982424, 0.016529108047485353, 0.016467988967895506, 0.016463027954101563, 0.016563507080078126, 0.017913747787475585, 0.01830110740661621, 0.017532627105712892, 0.017591827392578124, 0.017582387924194337, 0.01763502883911133, 0.017001428604125977, 0.01648398780822754, 0.016579509735107422, 0.016524946212768555, 0.01652174758911133, 0.016521108627319335, 0.016615188598632813 ] }, "throughput": { "unit": "tokens/s", "value": 58.59324780516495 }, "energy": null, "efficiency": null } } }