{ "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.099648, "max_global_vram": 68702.69952, "max_process_vram": 48876.969984, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 9.068109375, "mean": 9.068109375, "stdev": 0.0, "p50": 9.068109375, "p90": 9.068109375, "p95": 9.068109375, "p99": 9.068109375, "values": [ 9.068109375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1212.489728, "max_global_vram": 68702.69952, "max_process_vram": 305421.606912, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 57, "total": 0.5197605667114258, "mean": 0.009118606433533787, "stdev": 0.00027779724684069766, "p50": 0.009003491401672363, "p90": 0.009581697273254395, "p95": 0.009653889083862303, "p99": 0.009892031784057616, "values": [ 0.009248451232910156, 0.009585729598999023, 0.009773569107055664, 0.009827967643737792, 0.009590209007263184, 0.009553568840026855, 0.00935548973083496, 0.00912269115447998, 0.009096611022949218, 0.009623969078063965, 0.009579009056091308, 0.009185409545898438, 0.009428290367126465, 0.009973567962646484, 0.00956748867034912, 0.009396129608154297, 0.008897411346435546, 0.008895811080932617, 0.008878211975097656, 0.008840130805969239, 0.008912291526794434, 0.008909730911254883, 0.008859331130981446, 0.00884957218170166, 0.008825571060180663, 0.008979331016540528, 0.009116451263427734, 0.009280449867248535, 0.009118210792541505, 0.00903165054321289, 0.009070530891418457, 0.009019170761108398, 0.00894317054748535, 0.00898669147491455, 0.008962051391601562, 0.009013091087341309, 0.008963971138000489, 0.009037410736083985, 0.0089972505569458, 0.008934210777282715, 0.008901251792907714, 0.008981890678405761, 0.008907491683959962, 0.009023812294006348, 0.009075970649719238, 0.009012290954589844, 0.009003491401672363, 0.008993890762329102, 0.008911011695861816, 0.008931811332702638, 0.008926371574401855, 0.009074689865112305, 0.008945252418518066, 0.008985410690307618, 0.00891037082672119, 0.008982851028442382, 0.00896285057067871 ] }, "throughput": { "unit": "tokens/s", "value": 219.33176023969799 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1212.489728, "max_global_vram": 68702.69952, "max_process_vram": 351104.3072, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 57, "total": 0.49461217689514153, "mean": 0.008677406612195467, "stdev": 0.0007312430779314934, "p50": 0.008449092864990234, "p90": 0.009224449920654297, "p95": 0.009311138343811035, "p99": 0.011264949111938467, "values": [ 0.009040770530700683, 0.009085570335388184, 0.009404450416564942, 0.009218050003051757, 0.008848132133483887, 0.00904621124267578, 0.008612932205200196, 0.008524613380432129, 0.00857805347442627, 0.009287810325622559, 0.008750851631164552, 0.008654052734375, 0.009162370681762694, 0.009234049797058105, 0.013624916076660156, 0.00837949275970459, 0.008344453811645508, 0.008365572929382325, 0.008342053413391113, 0.008314373970031739, 0.008354533195495605, 0.008277254104614258, 0.008449092864990234, 0.008314693450927734, 0.008262054443359375, 0.008545573234558106, 0.008691652297973633, 0.0085513334274292, 0.00859469223022461, 0.008495492935180664, 0.008453252792358399, 0.008434372901916504, 0.008425413131713867, 0.008453892707824708, 0.008438053131103516, 0.00860621166229248, 0.008473732948303222, 0.008374213218688965, 0.008422372817993164, 0.008405094146728515, 0.008381572723388672, 0.008325252532958984, 0.008405733108520507, 0.009410689353942871, 0.008501893043518066, 0.008388933181762695, 0.008438693046569825, 0.008465252876281738, 0.009237250328063966, 0.008428933143615723, 0.008386372566223144, 0.00841277313232422, 0.008383333206176758, 0.008381252288818359, 0.008388772964477539, 0.008404453277587891, 0.008429252624511718 ] }, "throughput": { "unit": "tokens/s", "value": 115.24180491836955 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 57, "total": 0.46329435205459585, "mean": 0.00812797108867712, "stdev": 0.0007052361671309729, "p50": 0.007927495002746582, "p90": 0.008537476539611816, "p95": 0.00870790786743164, "p99": 0.010679325065612784, "values": [ 0.008354852676391602, 0.008412933349609375, 0.008702531814575195, 0.00853005313873291, 0.008247333526611328, 0.008396292686462402, 0.008039653778076172, 0.007961413860321044, 0.008010375022888183, 0.008628131866455079, 0.008177253723144531, 0.008075814247131347, 0.008475652694702148, 0.008548611640930176, 0.01302011775970459, 0.00786589479446411, 0.007828135013580323, 0.007838375091552734, 0.007839334011077882, 0.007817574977874756, 0.007853254795074463, 0.007787014961242676, 0.007927655220031738, 0.007802215099334717, 0.007752776145935059, 0.007989734172821046, 0.008115814208984376, 0.008035015106201172, 0.008042054176330566, 0.007975014209747314, 0.007941414833068847, 0.00789821481704712, 0.007911174774169923, 0.007930534839630127, 0.007927334785461426, 0.008069414138793946, 0.007927495002746582, 0.007871974945068359, 0.00789981508255005, 0.007891815185546875, 0.007864614963531495, 0.007823494911193848, 0.007897573947906494, 0.008840130805969239, 0.007985733985900878, 0.007883493900299072, 0.007921733856201173, 0.007948934078216553, 0.008729412078857421, 0.007899974822998047, 0.007890374183654784, 0.007876935005187989, 0.007865734100341797, 0.007869254112243653, 0.007878855228424072, 0.007892775058746337, 0.00790525484085083 ] }, "throughput": { "unit": "tokens/s", "value": 123.03193368798712 }, "energy": null, "efficiency": null } } }