{ "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.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]" ], "gpu_count": 1, "gpu_vram_mb": 68702699520, "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": 905.19552, "max_global_vram": 1011.740672, "max_process_vram": 44984.045568, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.11990087890625, "mean": 7.11990087890625, "stdev": 0.0, "p50": 7.11990087890625, "p90": 7.11990087890625, "p95": 7.11990087890625, "p99": 7.11990087890625, "values": [ 7.11990087890625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1059.65568, "max_global_vram": 1106.128896, "max_process_vram": 270356.783104, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 64, "total": 0.510714337825775, "mean": 0.007979911528527738, "stdev": 0.0003424328952618756, "p50": 0.007769019603729247, "p90": 0.00869888916015625, "p95": 0.008734864807128906, "p99": 0.008822996349334715, "values": [ 0.008939017295837402, 0.008715017318725586, 0.008661256790161134, 0.008228617668151856, 0.008113578796386718, 0.007948459148406983, 0.007991339206695557, 0.008092939376831055, 0.008062058448791504, 0.008107019424438476, 0.008263818740844727, 0.007724299907684327, 0.007682219028472901, 0.007860619068145752, 0.0077171001434326175, 0.007674859046936035, 0.007903018951416015, 0.007733419895172119, 0.008015499114990235, 0.007745258808135987, 0.007945259094238282, 0.008720776557922364, 0.008730377197265625, 0.008754857063293457, 0.007755819797515869, 0.007722219944000244, 0.00795005989074707, 0.0077868599891662595, 0.007728940010070801, 0.0077274999618530274, 0.007879979133605957, 0.007721418857574463, 0.007732139110565185, 0.007738379001617432, 0.007721259117126465, 0.007772139072418213, 0.007765900135040283, 0.007742700099945069, 0.007716619968414306, 0.007732618808746338, 0.007755498886108398, 0.007727340221405029, 0.007721259117126465, 0.007720939159393311, 0.007760458946228027, 0.008520936965942383, 0.00874525737762451, 0.00809709930419922, 0.008140138626098633, 0.008124299049377441, 0.00873565673828125, 0.008091178894042969, 0.008140938758850098, 0.008114858627319336, 0.008119338035583496, 0.007728139877319336, 0.007760940074920654, 0.007718699932098389, 0.007727980136871338, 0.0077623801231384276, 0.007744140148162841, 0.007749259948730469, 0.0077372598648071285, 0.007745100021362305 ] }, "throughput": { "unit": "tokens/s", "value": 250.6293450560337 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1059.831808, "max_global_vram": 1107.513344, "max_process_vram": 277197.029376, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 64, "total": 0.48986639070510873, "mean": 0.007654162354767322, "stdev": 0.0005404562343932596, "p50": 0.007432940959930421, "p90": 0.00826015453338623, "p95": 0.008344282245635987, "p99": 0.009464477539062493, "values": [ 0.008347018241882324, 0.008328778266906738, 0.007939659118652343, 0.007828299045562745, 0.0076442999839782715, 0.007613900184631347, 0.007735659122467041, 0.0076442999839782715, 0.0076676602363586425, 0.011139969825744628, 0.007300139904022217, 0.007275021076202393, 0.007267341136932373, 0.00728718090057373, 0.007278700828552246, 0.007289741039276123, 0.007705100059509277, 0.007605899810791015, 0.007395980834960937, 0.007403820991516113, 0.008363178253173828, 0.00828445816040039, 0.00848045825958252, 0.0079201397895813, 0.0074215798377990725, 0.007379981040954589, 0.007386859893798828, 0.007420139789581299, 0.007381899833679199, 0.007408299922943115, 0.0074252610206604, 0.0074103808403015135, 0.007399820804595948, 0.007440781116485596, 0.007378060817718506, 0.0075022211074829105, 0.007395181179046631, 0.007412460803985596, 0.007379341125488281, 0.0074385409355163575, 0.007427340984344483, 0.007381260871887207, 0.007421260833740235, 0.007387500762939453, 0.00735982084274292, 0.008250859260559082, 0.008105897903442382, 0.007666699886322022, 0.007901258945465088, 0.008264138221740722, 0.007770858764648438, 0.0077858991622924804, 0.007740779876708985, 0.007730539798736572, 0.007605740070343018, 0.007376460075378418, 0.007401899814605713, 0.007391339778900147, 0.007446380138397217, 0.007444300174713135, 0.007348939895629882, 0.0075324602127075195, 0.007403500080108642, 0.007393739223480225 ] }, "throughput": { "unit": "tokens/s", "value": 130.64786891764317 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 64, "total": 0.45606215763092056, "mean": 0.007125971212983131, "stdev": 0.0005185841209103034, "p50": 0.006906941890716552, "p90": 0.007698299503326416, "p95": 0.007736947083473206, "p99": 0.008853294777870172, "values": [ 0.007708299160003662, 0.007694378852844238, 0.0074003000259399414, 0.0072727808952331545, 0.007105260848999023, 0.007051500797271728, 0.007159660816192627, 0.007116460800170898, 0.007120302200317383, 0.010501571655273437, 0.006810542106628418, 0.006799342155456543, 0.006787023067474365, 0.006817422866821289, 0.006784142017364502, 0.006809102058410644, 0.007148460865020752, 0.0070753412246704105, 0.006871821880340576, 0.006855981826782227, 0.007801098823547363, 0.007737739086151123, 0.00788525915145874, 0.007404460906982422, 0.006888621807098388, 0.006871662139892578, 0.006860782146453857, 0.006912940979003906, 0.006869901180267334, 0.006895341873168945, 0.006901902198791504, 0.006887182235717774, 0.006889902114868164, 0.006903501987457275, 0.006877101898193359, 0.006970382213592529, 0.006891982078552246, 0.006882862091064453, 0.006866382122039795, 0.006920621871948242, 0.00689182186126709, 0.006875502109527588, 0.006885101795196533, 0.006879181861877442, 0.006868462085723877, 0.007699979782104492, 0.0076346988677978515, 0.007193420886993408, 0.007348461151123047, 0.00773245906829834, 0.007258060932159424, 0.007261260986328125, 0.007245420932769775, 0.007242860794067382, 0.007061262130737305, 0.006858061790466308, 0.006855341911315918, 0.00685902214050293, 0.006920621871948242, 0.00691038179397583, 0.0068451018333435054, 0.006984782218933105, 0.00686510181427002, 0.006876461982727051 ] }, "throughput": { "unit": "tokens/s", "value": 140.3317484889715 }, "energy": null, "efficiency": null } } }