{ "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": "4", "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.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.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 907.706368, "max_global_vram": 1011.740672, "max_process_vram": 43179.13088, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.104685546875, "mean": 7.104685546875, "stdev": 0.0, "p50": 7.104685546875, "p90": 7.104685546875, "p95": 7.104685546875, "p99": 7.104685546875, "values": [ 7.104685546875 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1063.145472, "max_global_vram": 1106.132992, "max_process_vram": 237889.536, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 63, "total": 0.512163779735565, "mean": 0.008129583805326432, "stdev": 0.00043831295712660405, "p50": 0.007857417106628418, "p90": 0.008851461601257325, "p95": 0.008918885898590087, "p99": 0.0090064155960083, "values": [ 0.008145575523376464, 0.007965096950531006, 0.007798057079315185, 0.00780877685546875, 0.00775613784790039, 0.007747657775878906, 0.007788456916809082, 0.007812296867370606, 0.009088454246520996, 0.007963497161865235, 0.00800413703918457, 0.008703815460205077, 0.008940613746643067, 0.008923173904418946, 0.00838605499267578, 0.008880293846130372, 0.00882349395751953, 0.008781893730163574, 0.008781253814697266, 0.0088108549118042, 0.008811814308166504, 0.008845093727111817, 0.008852293968200683, 0.008849413871765136, 0.008851973533630372, 0.008568135261535645, 0.008129416465759277, 0.007815496921539307, 0.00785837697982788, 0.007824137210845947, 0.007803176879882813, 0.00784093713760376, 0.007833897113800049, 0.007833577156066895, 0.0078660569190979, 0.007836297035217285, 0.007892615795135498, 0.007875977039337158, 0.007857417106628418, 0.00784205722808838, 0.007867337226867676, 0.00783933687210083, 0.007924456119537354, 0.007791976928710937, 0.00845389461517334, 0.008956133842468262, 0.008199015617370605, 0.008050855636596679, 0.007817417144775391, 0.00783277702331543, 0.007813897132873535, 0.007846537113189698, 0.007837577819824219, 0.007817576885223389, 0.007821257114410401, 0.007841577053070068, 0.0078063769340515135, 0.007807177066802978, 0.007798216819763184, 0.00783933687210083, 0.007796778202056885, 0.007805578231811524, 0.0078009371757507325 ] }, "throughput": { "unit": "tokens/s", "value": 246.0150541396249 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1063.305216, "max_global_vram": 1107.521536, "max_process_vram": 291736.625152, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 63, "total": 0.5005634908676149, "mean": 0.007945452235993885, "stdev": 0.0015673083963854235, "p50": 0.007547338008880616, "p90": 0.008412839317321777, "p95": 0.008486776065826415, "p99": 0.01289519016265872, "values": [ 0.007494537830352783, 0.007361258029937744, 0.007389739036560059, 0.007322058200836181, 0.007273898124694824, 0.007345258235931396, 0.007331658840179443, 0.019939460754394532, 0.007729416847229004, 0.007661256790161133, 0.0080420560836792, 0.007949575901031495, 0.008189576148986816, 0.007870216846466065, 0.008359335899353027, 0.008419816017150878, 0.008525574684143066, 0.008343175888061523, 0.008334535598754883, 0.008437094688415527, 0.008415175437927245, 0.00849229621887207, 0.008577733993530274, 0.008397895812988282, 0.008403494834899902, 0.007952297210693359, 0.007659337043762207, 0.007547338008880616, 0.007520617961883545, 0.007493257999420166, 0.007533257961273194, 0.007530218124389649, 0.007547177791595459, 0.007508458137512207, 0.007510858058929443, 0.00764701795578003, 0.0075271778106689455, 0.007507977962493896, 0.0075102181434631345, 0.007531177997589111, 0.007488617897033692, 0.007544938087463379, 0.007557578086853027, 0.007759657859802246, 0.008356454849243165, 0.008026217460632324, 0.007955496788024902, 0.007512777805328369, 0.0076454181671142575, 0.00759677791595459, 0.007476138114929199, 0.007603017807006836, 0.007486537933349609, 0.007521738052368164, 0.007653097152709961, 0.007533098220825195, 0.007522058010101318, 0.0075346980094909664, 0.00750509786605835, 0.007469738960266113, 0.0075342168807983395, 0.007609736919403076, 0.0075378971099853516 ] }, "throughput": { "unit": "tokens/s", "value": 125.8581601522788 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 63, "total": 0.4668338370323182, "mean": 0.007410060905274891, "stdev": 0.0015734764179776296, "p50": 0.007015659809112549, "p90": 0.00786151304244995, "p95": 0.00790664916038513, "p99": 0.01236965341567996, "values": [ 0.007026380062103272, 0.006887499809265137, 0.006904139995574952, 0.00685565996170044, 0.006837419986724854, 0.006878058910369873, 0.006891019821166992, 0.01947354316711426, 0.007241737842559814, 0.007189259052276611, 0.007543337821960449, 0.007427177906036377, 0.00759453821182251, 0.00730029821395874, 0.007834537029266357, 0.007861577033996581, 0.007911177158355712, 0.007814056873321533, 0.007793736934661865, 0.007861896991729737, 0.007865897178649902, 0.007919336795806885, 0.008015656471252441, 0.007859336853027343, 0.007861257076263428, 0.007407658100128174, 0.007100139141082764, 0.006993579864501953, 0.0069500598907470705, 0.006972939968109131, 0.006968780040740967, 0.0069524598121643065, 0.00700190019607544, 0.006953420162200928, 0.006955979824066162, 0.007107819080352783, 0.0069966201782226565, 0.006994219779968261, 0.006991340160369873, 0.007019979953765869, 0.006991979122161865, 0.006987658977508545, 0.0070258998870849606, 0.007183019161224365, 0.007830856800079345, 0.007543498039245605, 0.007428459167480469, 0.006957260131835938, 0.007084459781646729, 0.007015659809112549, 0.006978058815002441, 0.006992778778076172, 0.006943179130554199, 0.006950859069824219, 0.007112779140472412, 0.006980939865112305, 0.006942860126495361, 0.006972300052642822, 0.006941100120544433, 0.006916619777679443, 0.006968459129333496, 0.0071014189720153805, 0.006968299865722657 ] }, "throughput": { "unit": "tokens/s", "value": 134.9516573187873 }, "energy": null, "efficiency": null } } }