{ "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_type": "gpt2", "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": {}, "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": "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.3.1", "optimum_benchmark_commit": "35e06a8a39b8c67a2e53b499c65346db81ed78be", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 901.3248, "max_global_vram": 3298.357248, "max_process_vram": 48970.305536, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.9134189453125, "mean": 7.9134189453125, "stdev": 0.0, "p50": 7.9134189453125, "p90": 7.9134189453125, "p95": 7.9134189453125, "p99": 7.9134189453125, "values": [ 7.9134189453125 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1055.752192, "max_global_vram": 3392.745472, "max_process_vram": 274644.692992, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 62, "total": 0.5017729482650758, "mean": 0.008093112068791545, "stdev": 0.00019321668431272456, "p50": 0.00801302218437195, "p90": 0.008331725311279297, "p95": 0.008412524890899659, "p99": 0.008727430200576782, "values": [ 0.007989582061767577, 0.008176781654357911, 0.008139021873474121, 0.008164622306823731, 0.008107340812683106, 0.008210700988769531, 0.008214221000671387, 0.00824670124053955, 0.008277420997619628, 0.008335981369018555, 0.00826894187927246, 0.008288460731506348, 0.008214381217956543, 0.008293420791625976, 0.008084141731262207, 0.008056781768798827, 0.008096622467041016, 0.00808302116394043, 0.008055022239685058, 0.008064621925354004, 0.00803806209564209, 0.008033262252807618, 0.00796990203857422, 0.0079806227684021, 0.00798462200164795, 0.008186701774597169, 0.007969421863555908, 0.007972941875457764, 0.007950702190399169, 0.007943501949310303, 0.00790878200531006, 0.007948462009429932, 0.007990541934967042, 0.00798462200164795, 0.00799278211593628, 0.007969741821289062, 0.00798126220703125, 0.007971022129058838, 0.007974862098693847, 0.008041261672973633, 0.007961262226104736, 0.00805934238433838, 0.008338221549987793, 0.008413580894470215, 0.008923020362854004, 0.008602380752563477, 0.008535340309143066, 0.008392460823059082, 0.00819502067565918, 0.007939822196960449, 0.007962542057037354, 0.007917741775512695, 0.007945742130279541, 0.007985261917114258, 0.007934222221374512, 0.007940301895141602, 0.007935182094573974, 0.007936942100524902, 0.007921102046966553, 0.007931342124938965, 0.007918861865997315, 0.007922382831573486 ] }, "throughput": { "unit": "tokens/s", "value": 247.12372484156617 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1055.752192, "max_global_vram": 3394.125824, "max_process_vram": 256843.374592, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 62, "total": 0.5049572730064392, "mean": 0.008144472145265149, "stdev": 0.00018227558360659152, "p50": 0.008114221572875977, "p90": 0.008333596992492675, "p95": 0.008449701404571533, "p99": 0.00873851448059082, "values": [ 0.008189420700073242, 0.008243660926818847, 0.008370060920715332, 0.00821550178527832, 0.008271661758422852, 0.008314062118530273, 0.008247502326965332, 0.008313582420349122, 0.008451181411743164, 0.008472781181335449, 0.008320780754089355, 0.008312782287597657, 0.00823070240020752, 0.00818606185913086, 0.008206701278686524, 0.008164301872253418, 0.008123501777648926, 0.008172942161560058, 0.008210701942443848, 0.008142380714416505, 0.008226861953735351, 0.008018221855163574, 0.008208141326904297, 0.008117581367492676, 0.008003982543945312, 0.008107181549072265, 0.00801726245880127, 0.008001901626586915, 0.007843342781066895, 0.00787102222442627, 0.007827982902526856, 0.00803038215637207, 0.00805870246887207, 0.00799486207962036, 0.008110861778259277, 0.008125262260437012, 0.007988142013549806, 0.008055981636047363, 0.008002861976623536, 0.00796446180343628, 0.008067341804504394, 0.008710060119628906, 0.008335021018981934, 0.00878302001953125, 0.008421581268310547, 0.00820238208770752, 0.008193581581115723, 0.008287981986999511, 0.008011181831359864, 0.007913262844085693, 0.00805870246887207, 0.008068462371826172, 0.00806542205810547, 0.008010541915893555, 0.008063982009887696, 0.007977901935577392, 0.008088461875915528, 0.007969742774963378, 0.007956141948699952, 0.007989100933074951, 0.007954062938690186, 0.008094061851501464 ] }, "throughput": { "unit": "tokens/s", "value": 122.78266561220394 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 62, "total": 0.4558986687660217, "mean": 0.007353204334935835, "stdev": 0.0001775798403976938, "p50": 0.007329422950744629, "p90": 0.007517535734176636, "p95": 0.007679583096504211, "p99": 0.007990103611946107, "values": [ 0.00740958309173584, 0.0074375829696655274, 0.007483663082122803, 0.007388304233551026, 0.007387184143066407, 0.007447023868560791, 0.007411503791809082, 0.00746782398223877, 0.007595822811126709, 0.007682063102722168, 0.007472783088684082, 0.007422544002532959, 0.007380784034729004, 0.007330704212188721, 0.0073286228179931644, 0.007375343799591065, 0.007375983238220215, 0.007332943916320801, 0.007390223026275635, 0.007358383178710937, 0.00737502384185791, 0.007240303993225098, 0.007403663158416748, 0.007330223083496094, 0.007238863945007324, 0.007328144073486328, 0.007244944095611572, 0.007199344158172608, 0.007186704158782959, 0.0071988639831542965, 0.007181104183197022, 0.007246384143829346, 0.007245744228363037, 0.007241424083709717, 0.007259183883666992, 0.007370223999023437, 0.007236623764038086, 0.007260303974151611, 0.007210224151611328, 0.007213103771209717, 0.0072556638717651365, 0.007938062191009522, 0.007492942810058594, 0.008071501731872559, 0.007738862991333008, 0.007514223098754883, 0.007517903804779053, 0.007632462978363037, 0.007339024066925049, 0.00718286418914795, 0.007213583946228027, 0.007175824165344238, 0.007214064121246338, 0.007228943824768066, 0.007171023845672608, 0.007223184108734131, 0.007220784187316895, 0.00721342420578003, 0.007188144207000732, 0.007195184230804444, 0.007172143936157226, 0.007309583187103272 ] }, "throughput": { "unit": "tokens/s", "value": 135.99513279522188 }, "energy": null, "efficiency": null } } }