{ "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": "6f7b069b4b0cde5708134b51a746a564e69874ce", "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.2224, "max_global_vram": 1011.748864, "max_process_vram": 43039.858688, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.43203564453125, "mean": 7.43203564453125, "stdev": 0.0, "p50": 7.43203564453125, "p90": 7.43203564453125, "p95": 7.43203564453125, "p99": 7.43203564453125, "values": [ 7.43203564453125 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1055.850496, "max_global_vram": 1106.137088, "max_process_vram": 285326.6432, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 65, "total": 0.5119444642066957, "mean": 0.007876068680103009, "stdev": 0.000240898297795846, "p50": 0.00778607988357544, "p90": 0.008199071884155274, "p95": 0.008223935508728027, "p99": 0.00866673915863037, "values": [ 0.007931039810180665, 0.007910398960113526, 0.00790447998046875, 0.007827839851379394, 0.007719038963317871, 0.007700479984283447, 0.007661920070648193, 0.007688000202178955, 0.007674079895019531, 0.007681599140167236, 0.007715360164642334, 0.007702879905700684, 0.007771200180053711, 0.007985439777374268, 0.00785823917388916, 0.009293120384216308, 0.007876480102539062, 0.007722879886627197, 0.007721280097961426, 0.007731519222259522, 0.007947360038757324, 0.007761119842529297, 0.007803040027618408, 0.007776319980621338, 0.008125919342041016, 0.0077807998657226565, 0.007931039810180665, 0.007771200180053711, 0.007938079833984375, 0.00778895902633667, 0.007776639938354492, 0.007788000106811524, 0.007769599914550781, 0.007784800052642822, 0.0077822389602661135, 0.007846560001373291, 0.007765759944915771, 0.007775199890136719, 0.0077924799919128415, 0.007810719013214111, 0.00782367992401123, 0.007801599979400635, 0.007798880100250244, 0.007801439762115479, 0.007767358779907227, 0.007932799816131592, 0.00778607988357544, 0.007781119823455811, 0.008279999732971192, 0.008187838554382324, 0.008314399719238282, 0.008208319664001465, 0.008199520111083984, 0.00820464038848877, 0.008227839469909667, 0.008198399543762207, 0.007986878871917725, 0.0077515201568603516, 0.007758080005645752, 0.007751198768615722, 0.007747680187225342, 0.007771679878234863, 0.007740640163421631, 0.007767360210418701, 0.007762399196624756 ] }, "throughput": { "unit": "tokens/s", "value": 253.9337937786803 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1055.850496, "max_global_vram": 1107.525632, "max_process_vram": 260722.491392, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 65, "total": 0.48656398916244514, "mean": 0.007485599833268386, "stdev": 0.0002456954987839389, "p50": 0.00751200008392334, "p90": 0.007850143432617187, "p95": 0.007875456142425536, "p99": 0.007941094436645509, "values": [ 0.0072542400360107425, 0.007397280216217041, 0.007165120124816894, 0.007131040096282959, 0.007067359924316406, 0.0070499200820922855, 0.0070459189414978024, 0.007056960105895996, 0.0070247998237609865, 0.007238080024719238, 0.007056320190429687, 0.007100318908691406, 0.0070462398529052735, 0.007168799877166748, 0.007243040084838867, 0.007583199977874756, 0.007365438938140869, 0.007337279796600342, 0.00735968017578125, 0.0075343999862670895, 0.007507999897003174, 0.0075263991355896, 0.007775360107421875, 0.007525760173797608, 0.00751584005355835, 0.0075220799446105956, 0.007515358924865723, 0.007469759941101074, 0.007849760055541992, 0.00783519983291626, 0.007585279941558838, 0.007520158767700195, 0.00754256010055542, 0.00751200008392334, 0.007526400089263916, 0.007927519798278809, 0.007499359130859375, 0.007487840175628662, 0.007565440177917481, 0.007501920223236084, 0.007523039817810059, 0.007488479137420654, 0.00752672004699707, 0.007592800140380859, 0.007543839931488037, 0.007502399921417237, 0.007529438972473145, 0.007507840156555176, 0.007948160171508789, 0.007879680156707763, 0.007852960109710693, 0.007850399017333984, 0.007809440135955811, 0.007858560085296631, 0.007937119960784913, 0.007804959774017334, 0.007462080001831055, 0.007377600193023682, 0.0074107198715209965, 0.007430560111999511, 0.0074963197708129885, 0.007558718204498291, 0.0075288000106811526, 0.007459519863128662, 0.007746399879455567 ] }, "throughput": { "unit": "tokens/s", "value": 133.58982877439988 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 65, "total": 0.45347438955307, "mean": 0.006976529070047231, "stdev": 0.00020276465118347474, "p50": 0.006953760147094727, "p90": 0.007335487937927246, "p95": 0.00738012809753418, "p99": 0.00742113920211792, "values": [ 0.0067968001365661624, 0.006982880115509033, 0.00676255989074707, 0.006736480236053467, 0.00668287992477417, 0.006672959804534912, 0.006665439128875733, 0.006679359912872314, 0.006644800186157227, 0.006864960193634033, 0.006680799961090088, 0.006710399150848389, 0.006668799877166748, 0.0067638401985168455, 0.006838079929351807, 0.007074079990386963, 0.006890398979187012, 0.006869279861450196, 0.006885280132293701, 0.006899680137634277, 0.006926400184631348, 0.006942399024963379, 0.00717248010635376, 0.006961760044097901, 0.006977439880371094, 0.006951200008392334, 0.006969598770141602, 0.006961440086364746, 0.007283840179443359, 0.007254720211029053, 0.0069911999702453615, 0.0069460787773132325, 0.0069625601768493655, 0.006965439796447754, 0.006953760147094727, 0.007387839794158936, 0.006925599098205566, 0.006940639972686767, 0.0070078401565551755, 0.006964640140533447, 0.006966239929199218, 0.006951199054718017, 0.006974880218505859, 0.0070033597946166995, 0.006997600078582764, 0.00696288013458252, 0.006947518825531006, 0.006987840175628662, 0.007463840007781983, 0.007379360198974609, 0.007380320072174072, 0.007366878986358643, 0.007334239959716797, 0.007397119998931885, 0.007336319923400879, 0.00726800012588501, 0.006905119895935058, 0.0068683199882507324, 0.006888160228729248, 0.006892640113830567, 0.0069465599060058595, 0.007007358074188233, 0.006964799880981446, 0.006929279804229737, 0.007137919902801514 ] }, "throughput": { "unit": "tokens/s", "value": 143.33775290829973 }, "energy": null, "efficiency": null } } }