{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+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": "warn", "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.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1079.82848, "max_global_vram": 68702.69952, "max_process_vram": 47605.420032, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.703607421875, "mean": 8.703607421875, "stdev": 0.0, "p50": 8.703607421875, "p90": 8.703607421875, "p95": 8.703607421875, "p99": 8.703607421875, "values": [ 8.703607421875 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1249.11616, "max_global_vram": 68702.69952, "max_process_vram": 300843.225088, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 55, "total": 0.51979935836792, "mean": 0.009450897424871273, "stdev": 0.0037181988663291133, "p50": 0.008973291397094726, "p90": 0.00922529125213623, "p95": 0.009327946949005126, "p99": 0.02214671545028689, "values": [ 0.00899889087677002, 0.00932689094543457, 0.009267531394958495, 0.009330410957336426, 0.036716365814208986, 0.0097355318069458, 0.009281291007995605, 0.009161931037902832, 0.009006091117858887, 0.009040170669555665, 0.009075691223144531, 0.009021451950073242, 0.008987211227416992, 0.009122732162475587, 0.008954251289367676, 0.008960970878601074, 0.008957131385803223, 0.008924651145935058, 0.008956010818481446, 0.008941290855407714, 0.008930891036987305, 0.00897217082977295, 0.008966891288757325, 0.008947851181030274, 0.0089912109375, 0.008989770889282227, 0.008978251457214356, 0.008981290817260743, 0.00896721076965332, 0.008989130973815918, 0.008966731071472169, 0.008973931312561035, 0.008982570648193359, 0.008976651191711425, 0.008977130889892578, 0.008960970878601074, 0.008998730659484862, 0.008973291397094726, 0.008964970588684082, 0.008998730659484862, 0.008969450950622558, 0.008295530319213868, 0.008730731010437011, 0.009011851310729981, 0.008870410919189452, 0.009027371406555176, 0.00889729118347168, 0.0089180908203125, 0.008947051048278809, 0.008385129928588867, 0.008425129890441894, 0.008440810203552246, 0.008380330085754395, 0.008434249877929687, 0.00881105136871338 ] }, "throughput": { "unit": "tokens/s", "value": 211.6201150101088 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1249.214464, "max_global_vram": 68702.69952, "max_process_vram": 308700.094464, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 55, "total": 0.48638283586502074, "mean": 0.008843324288454923, "stdev": 0.0028474368989763878, "p50": 0.008447529792785645, "p90": 0.008747914695739746, "p95": 0.008825995159149171, "p99": 0.01901517522811891, "values": [ 0.00864193058013916, 0.008580491065979004, 0.008727850914001465, 0.008761290550231934, 0.00994433307647705, 0.00878240966796875, 0.008609130859375, 0.008486089706420898, 0.008522570610046387, 0.008810251235961915, 0.008495050430297852, 0.008441610336303711, 0.008438409805297852, 0.008489130020141601, 0.008452011108398437, 0.008420330047607422, 0.008457449913024903, 0.008426570892333984, 0.008472009658813477, 0.00843169116973877, 0.008447529792785645, 0.008862730979919433, 0.008613930702209473, 0.008463689804077149, 0.008458250045776368, 0.008424169540405273, 0.008470410346984864, 0.008453930854797363, 0.008443209648132324, 0.008429771423339843, 0.008458729743957519, 0.008460810661315918, 0.008517930030822754, 0.008429450988769531, 0.008416970252990723, 0.008593610763549805, 0.00844497013092041, 0.008428010940551758, 0.00848865032196045, 0.008418890953063965, 0.02966355514526367, 0.008138250350952149, 0.00800273036956787, 0.008406729698181152, 0.008410250663757324, 0.008408329963684081, 0.008150569915771485, 0.0084129695892334, 0.008339211463928223, 0.007885449886322022, 0.007961770057678223, 0.008341450691223145, 0.008046408653259278, 0.008077449798583984, 0.00802145004272461 ] }, "throughput": { "unit": "tokens/s", "value": 113.07964826140248 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 55, "total": 0.4580460033416748, "mean": 0.008328109151666815, "stdev": 0.002858658624075935, "p50": 0.007933929920196533, "p90": 0.008172074508666992, "p95": 0.008298329639434814, "p99": 0.018424368572235124, "values": [ 0.00806289005279541, 0.008052490234375, 0.008141929626464844, 0.008192171096801757, 0.009198891639709472, 0.008221770286560058, 0.008086090087890624, 0.007977290153503418, 0.00800080966949463, 0.008277449607849121, 0.00797888994216919, 0.007919689178466797, 0.007937610149383545, 0.007973449230194092, 0.007933929920196533, 0.007905768871307372, 0.007947370052337647, 0.007922410011291504, 0.007967209815979004, 0.007926569938659669, 0.007950408935546875, 0.008347049713134765, 0.008082409858703614, 0.007958569049835206, 0.007927370071411134, 0.007921129226684571, 0.007931049823760986, 0.007957769870758056, 0.007928810119628905, 0.007923689842224121, 0.007951210021972657, 0.007943210124969482, 0.008011529922485352, 0.007920010089874268, 0.007912649154663085, 0.008078410148620605, 0.007937449932098389, 0.007922729969024659, 0.007975368976593018, 0.00791008996963501, 0.029254276275634764, 0.007615210056304932, 0.0075123291015625, 0.00788113021850586, 0.007886889934539796, 0.007875848770141601, 0.007649768829345703, 0.007909930229187012, 0.007887050151824952, 0.0074364891052246095, 0.007504808902740479, 0.007852650165557862, 0.007524649143218994, 0.007582889080047607, 0.007556488990783691 ] }, "throughput": { "unit": "tokens/s", "value": 120.07527540628556 }, "energy": null, "efficiency": null } } }