{ "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": "5", "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.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "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": 1079.762944, "max_global_vram": 68702.69952, "max_process_vram": 49284.23936, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.6849306640625, "mean": 8.6849306640625, "stdev": 0.0, "p50": 8.6849306640625, "p90": 8.6849306640625, "p95": 8.6849306640625, "p99": 8.6849306640625, "values": [ 8.6849306640625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1249.13664, "max_global_vram": 68702.69952, "max_process_vram": 299058.188288, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 57, "total": 0.5225118465423584, "mean": 0.00916687450074313, "stdev": 0.0014632298223482615, "p50": 0.008903498649597169, "p90": 0.009000682067871094, "p95": 0.009075562286376954, "p99": 0.016412132949829093, "values": [ 0.008878857612609863, 0.008540779113769532, 0.008870219230651856, 0.009011338233947754, 0.008953577995300293, 0.008971817970275879, 0.008975017547607421, 0.008936139106750488, 0.008993577957153321, 0.009075338363647462, 0.009019658088684082, 0.008903498649597169, 0.008901418685913086, 0.009076457977294922, 0.008909257888793945, 0.008873098373413086, 0.00890845775604248, 0.008884457588195801, 0.008875818252563476, 0.008878857612609863, 0.00885437774658203, 0.008856617927551269, 0.008875497817993164, 0.014850523948669434, 0.008808459281921387, 0.008551018714904785, 0.008919178009033203, 0.008904777526855468, 0.00892973804473877, 0.00891341781616211, 0.008912299156188965, 0.008943657875061035, 0.008898537635803222, 0.008899977684020996, 0.008923977851867675, 0.008907177925109862, 0.008908139228820802, 0.008917098999023437, 0.008894378662109376, 0.008901739120483398, 0.008908139228820802, 0.008893259048461914, 0.018399635314941407, 0.008690698623657227, 0.008883978843688965, 0.00895901870727539, 0.008961738586425782, 0.008863819122314454, 0.008933097839355468, 0.008899819374084473, 0.008914058685302734, 0.008889577865600585, 0.008857418060302734, 0.008892618179321288, 0.00885325813293457, 0.008841737747192383, 0.008861738204956055 ] }, "throughput": { "unit": "tokens/s", "value": 218.17687149942614 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1249.13664, "max_global_vram": 68702.69952, "max_process_vram": 311655.95648, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 57, "total": 0.48867017316818245, "mean": 0.00857316093277513, "stdev": 0.0012661709320947554, "p50": 0.008406378746032716, "p90": 0.008570282936096192, "p95": 0.008588458633422853, "p99": 0.012843207778930645, "values": [ 0.008095821380615235, 0.017956756591796876, 0.008598058700561524, 0.008520298957824708, 0.008561420440673827, 0.008569258689880371, 0.008557418823242187, 0.008586058616638184, 0.008542379379272462, 0.008825419425964355, 0.008429899215698242, 0.008404619216918945, 0.008389259338378906, 0.008412619590759278, 0.008391819953918456, 0.008395660400390624, 0.00839214038848877, 0.008377099990844726, 0.008405739784240723, 0.008367819786071777, 0.008418540000915527, 0.008371339797973634, 0.008536459922790528, 0.007846539974212646, 0.007916460990905762, 0.008247980117797852, 0.008411179542541504, 0.008394700050354004, 0.008402700424194337, 0.008479819297790528, 0.008455339431762696, 0.008462380409240723, 0.008383339881896972, 0.008374059677124023, 0.008382860183715821, 0.008571819305419922, 0.008367499351501466, 0.008392938613891602, 0.008393898963928222, 0.00839517879486084, 0.00839677906036377, 0.008367339134216308, 0.0076355009078979495, 0.008396140098571777, 0.008423819541931152, 0.00838909912109375, 0.008406378746032716, 0.008449898719787598, 0.00858509922027588, 0.008456298828125, 0.008459339141845703, 0.00841454029083252, 0.008416620254516602, 0.008457579612731934, 0.008384458541870117, 0.00849053955078125, 0.008556138992309571 ] }, "throughput": { "unit": "tokens/s", "value": 116.64309206852838 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 57, "total": 0.45883536291122445, "mean": 0.008049743208968849, "stdev": 0.0012937134113629482, "p50": 0.007891020774841308, "p90": 0.008012172317504883, "p95": 0.008050124740600587, "p99": 0.012404954452514627, "values": [ 0.007582061767578125, 0.01765227508544922, 0.008029580116271973, 0.007953260898590088, 0.007971180915832519, 0.008004619598388671, 0.008002381324768066, 0.008007820129394532, 0.00796462106704712, 0.00828205966949463, 0.007905741214752198, 0.00789054012298584, 0.007880300045013429, 0.007906061172485351, 0.007880781173706055, 0.007890060901641845, 0.007887180805206298, 0.007868620872497558, 0.007895340919494629, 0.007862380981445313, 0.007897581100463867, 0.007870861053466797, 0.00801870059967041, 0.007314702033996582, 0.007520621776580811, 0.00771950101852417, 0.007904140949249268, 0.007877100944519043, 0.007895340919494629, 0.007951021194458008, 0.007935020923614502, 0.007940781116485596, 0.007848461151123047, 0.007858701229095459, 0.007853580951690673, 0.008046860694885255, 0.007863980770111084, 0.007883340835571288, 0.007880140781402587, 0.007870861053466797, 0.007889740943908692, 0.007858060836791992, 0.007094222068786621, 0.007828781127929688, 0.007881900787353516, 0.007875980854034424, 0.007879819869995117, 0.00791565990447998, 0.008063180923461914, 0.00794286012649536, 0.007913099765777589, 0.007891020774841308, 0.007891661167144775, 0.007909420967102052, 0.00788318109512329, 0.007915660858154297, 0.00793294095993042 ] }, "throughput": { "unit": "tokens/s", "value": 124.22756528255731 }, "energy": null, "efficiency": null } } }