{ "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": "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": "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.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "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": 1043.603456, "max_global_vram": 68702.69952, "max_process_vram": 48126.8736, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.39959375, "mean": 8.39959375, "stdev": 0.0, "p50": 8.39959375, "p90": 8.39959375, "p95": 8.39959375, "p99": 8.39959375, "values": [ 8.39959375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1212.870656, "max_global_vram": 68702.69952, "max_process_vram": 285246.214144, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 58, "total": 0.5176394224166869, "mean": 0.008924817627873914, "stdev": 0.002015216786486851, "p50": 0.008548288822174073, "p90": 0.009241150951385498, "p95": 0.009479453611373902, "p99": 0.01920927501678467, "values": [ 0.009502845764160156, 0.009475325584411621, 0.009381246566772462, 0.009229247093200683, 0.0092689266204834, 0.009030047416687012, 0.008988287925720215, 0.020210647583007814, 0.008528449058532716, 0.008492130279541016, 0.00854060935974121, 0.008520448684692383, 0.008513409614562989, 0.008651329040527343, 0.00848589038848877, 0.008519329071044923, 0.008527170181274414, 0.008511009216308594, 0.008497248649597168, 0.007978052139282226, 0.008294370651245117, 0.00806221103668213, 0.008078210830688477, 0.0080606107711792, 0.007834531784057618, 0.007639012813568115, 0.0078007721900939945, 0.007720771789550781, 0.007649732112884521, 0.007820452213287353, 0.008506050109863281, 0.008504928588867188, 0.008488129615783692, 0.00850572967529297, 0.008512128829956054, 0.008554530143737794, 0.018453853607177734, 0.008638689041137695, 0.008549888610839844, 0.008508930206298828, 0.008534369468688964, 0.0085466890335083, 0.008625248908996581, 0.008589730262756348, 0.008685089111328126, 0.008791808128356934, 0.008669089317321778, 0.008615968704223632, 0.008801247596740723, 0.008759167671203614, 0.008762048721313477, 0.008636769294738769, 0.008662049293518066, 0.008666369438171386, 0.009133247375488282, 0.008688287734985351, 0.008688288688659668, 0.00874876880645752 ] }, "throughput": { "unit": "tokens/s", "value": 224.09421496228865 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1212.977152, "max_global_vram": 68702.69952, "max_process_vram": 306725.408768, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 58, "total": 0.4912854337692261, "mean": 0.008470438513262518, "stdev": 0.0021031389699660073, "p50": 0.008058931350708008, "p90": 0.008874671745300294, "p95": 0.009243207168579102, "p99": 0.01852541319847107, "values": [ 0.008991647720336914, 0.008937727928161622, 0.008847647666931153, 0.008761247634887696, 0.008660928726196289, 0.009511805534362794, 0.00817212963104248, 0.007945890903472901, 0.008057891845703125, 0.008182690620422364, 0.008052611351013183, 0.008014692306518554, 0.007991170883178711, 0.007999011039733887, 0.007966210842132568, 0.00805757236480713, 0.00801677131652832, 0.007990372180938721, 0.008004931449890137, 0.01592650318145752, 0.00758653211593628, 0.007577093124389649, 0.0077063717842102055, 0.0073330941200256345, 0.007343654155731201, 0.007409092903137207, 0.007120134830474853, 0.007265254020690918, 0.007402373790740967, 0.007899810791015625, 0.007993570804595947, 0.008001252174377442, 0.008016611099243164, 0.008004931449890137, 0.00805453109741211, 0.008153889656066894, 0.008096611022949219, 0.00805997085571289, 0.008037251472473144, 0.008035651206970215, 0.008030370712280273, 0.008184290885925294, 0.008201251029968262, 0.008123009681701661, 0.008198210716247559, 0.008265729904174804, 0.00817421054840088, 0.008095170974731445, 0.009195807456970215, 0.008170531272888184, 0.008107650756835937, 0.008198691368103026, 0.008245409965515137, 0.02197047996520996, 0.008211650848388673, 0.00822269058227539, 0.008223010063171386, 0.008280129432678222 ] }, "throughput": { "unit": "tokens/s", "value": 118.05764228549188 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.46095290517806986, "mean": 0.00794746388238052, "stdev": 0.002087991878601681, "p50": 0.007563012838363647, "p90": 0.008172418689727783, "p95": 0.008650785160064697, "p99": 0.018002256879806517, "values": [ 0.008320610046386718, 0.00824141025543213, 0.008142850875854491, 0.008106691360473633, 0.008012290954589843, 0.008814529418945312, 0.007593731880187988, 0.007404132843017578, 0.007561732769012451, 0.007697572231292724, 0.007572453022003173, 0.007520452976226806, 0.00751149320602417, 0.0075124530792236325, 0.007475172996520996, 0.007561092853546143, 0.007531813144683838, 0.007511652946472168, 0.007519652843475342, 0.015466504096984864, 0.0071010937690734865, 0.007095335006713867, 0.007199813842773437, 0.0068836560249328615, 0.00685005521774292, 0.006942214965820312, 0.006676455974578857, 0.006817255973815918, 0.0069425349235534665, 0.007399813175201416, 0.007507012844085693, 0.007493732929229736, 0.007515172958374023, 0.0075174131393432615, 0.007550053119659424, 0.0076495718955993655, 0.007564292907714844, 0.007555973052978515, 0.007526692867279053, 0.0075332531929016115, 0.007532612800598144, 0.00769053316116333, 0.007692131996154785, 0.007623012065887451, 0.0076990132331848146, 0.0077602920532226565, 0.0076457328796386715, 0.007598372936248779, 0.008621889114379883, 0.007639012813568115, 0.007609092235565186, 0.00762013292312622, 0.007731331825256348, 0.021363603591918946, 0.007673412799835205, 0.00767853307723999, 0.00767661190032959, 0.007697892189025879 ] }, "throughput": { "unit": "tokens/s", "value": 125.82630318295553 }, "energy": null, "efficiency": null } } }