{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+cu124", "_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": true, "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 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.224-212.876.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "NVIDIA A10G" ], "gpu_count": 1, "gpu_vram_mb": 24146608128, "optimum_benchmark_version": "0.5.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": 800.403456, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.981681640625, "mean": 7.981681640625, "stdev": 0.0, "p50": 7.981681640625, "p90": 7.981681640625, "p95": 7.981681640625, "p99": 7.981681640625, "values": [ 7.981681640625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 2.4046087631909864e-06, "ram": 1.2987035240711796e-06, "gpu": 3.11194693398964e-06, "total": 6.815259221251806e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1201.258496, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 72, "total": 0.4912262377738953, "mean": 0.006822586635748545, "stdev": 0.0003187041997957834, "p50": 0.006863424062728882, "p90": 0.007176259326934814, "p95": 0.007270078372955323, "p99": 0.007562580690383915, "values": [ 0.0073901119232177735, 0.007198239803314209, 0.007179808139801025, 0.0069398398399353025, 0.006921343803405762, 0.006822015762329102, 0.006860671997070312, 0.0069474239349365235, 0.007056447982788086, 0.007056479930877686, 0.006876863956451416, 0.007055679798126221, 0.0070524802207946775, 0.007066175937652588, 0.007139584064483642, 0.007231040000915527, 0.006994143962860107, 0.006803616046905518, 0.006909887790679931, 0.006866176128387452, 0.006920864105224609, 0.007144320011138916, 0.007057375907897949, 0.0069552001953125, 0.00685152006149292, 0.007053919792175293, 0.007317791938781739, 0.006792128086090088, 0.00691593599319458, 0.006875423908233642, 0.006844448089599609, 0.006828383922576904, 0.00687014389038086, 0.006898240089416504, 0.007048351764678955, 0.007113984107971191, 0.007064191818237304, 0.006936192035675049, 0.006960063934326172, 0.006912415981292725, 0.0068167362213134765, 0.006603936195373535, 0.006858687877655029, 0.006502175807952881, 0.006514143943786621, 0.007984831809997558, 0.007194975852966309, 0.007342751979827881, 0.006764895915985107, 0.006772672176361084, 0.006770143985748291, 0.006716256141662598, 0.006411680221557617, 0.006305984020233154, 0.006599711894989014, 0.006589183807373047, 0.006587552070617676, 0.006541376113891602, 0.006272960186004639, 0.006587007999420166, 0.00653766393661499, 0.0065285758972167965, 0.006604383945465088, 0.006322207927703857, 0.0062995519638061525, 0.006279295921325684, 0.00633903980255127, 0.006345439910888672, 0.006333055973052978, 0.006379871845245361, 0.006378943920135498, 0.00641161584854126 ] }, "throughput": { "unit": "tokens/s", "value": 293.14395064190614 }, "energy": { "unit": "kWh", "cpu": 8.03163324887434e-08, "ram": 4.389090892197547e-08, "gpu": 1.462519938784154e-07, "total": 2.7045923528913425e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7394829.752668277 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1219.60448, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 72, "total": 0.5171054720878601, "mean": 0.007182020445664723, "stdev": 0.0003232646487637867, "p50": 0.0072722241878509526, "p90": 0.007537292575836182, "p95": 0.007568304014205933, "p99": 0.007817550644874577, "values": [ 0.00755683183670044, 0.00746281623840332, 0.0072984957695007326, 0.007316991806030273, 0.007340799808502197, 0.007195168018341065, 0.007317024230957031, 0.007422688007354736, 0.00756112003326416, 0.007290559768676758, 0.007356575965881348, 0.0073276481628417964, 0.007350624084472656, 0.007286335945129395, 0.007576576232910156, 0.007609920024871826, 0.007411200046539307, 0.007299967765808105, 0.00726854419708252, 0.007327455997467041, 0.007352575778961181, 0.007535679817199707, 0.007359039783477783, 0.007462624073028564, 0.0073504958152771, 0.0073088321685791015, 0.007597375869750977, 0.007125152111053467, 0.007248000144958496, 0.007468031883239746, 0.007183648109436035, 0.007225183963775634, 0.007529024124145508, 0.007221343994140625, 0.0075615358352661135, 0.00739465618133545, 0.0073762240409851075, 0.007331456184387207, 0.007029344081878662, 0.007229599952697754, 0.007102880001068115, 0.007033760070800781, 0.006868927955627441, 0.006694655895233154, 0.00832588768005371, 0.00741974401473999, 0.0075374717712402345, 0.007527967929840088, 0.007041088104248047, 0.007003232002258301, 0.007047232151031494, 0.006880000114440918, 0.006683263778686523, 0.007275904178619385, 0.006947999954223633, 0.007108096122741699, 0.006863423824310303, 0.006852640151977539, 0.006838335990905762, 0.006853888034820557, 0.006984896183013916, 0.006898623943328857, 0.006868224143981933, 0.006686751842498779, 0.006668000221252441, 0.006676608085632324, 0.006628128051757812, 0.006694015979766846, 0.006663040161132812, 0.006634943962097168, 0.0066646718978881836, 0.0066640000343322755 ] }, "throughput": { "unit": "tokens/s", "value": 139.23658496455954 }, "energy": { "unit": "kWh", "cpu": 7.667956193770936e-08, "ram": 4.168981580849931e-08, "gpu": 1.429551088321049e-07, "total": 2.6132448657831363e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3826660.153794353 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 72, "total": 0.482709376335144, "mean": 0.006704296893543666, "stdev": 0.0002730141432204396, "p50": 0.006739455938339233, "p90": 0.007010201597213745, "p95": 0.007027967977523804, "p99": 0.007283158855438237, "values": [ 0.007023615837097168, 0.0069324798583984375, 0.006788095951080322, 0.00678604793548584, 0.006828991889953613, 0.006703104019165039, 0.006808576107025147, 0.0069027838706970214, 0.006994944095611572, 0.006781951904296875, 0.006814720153808594, 0.006806528091430664, 0.006834176063537598, 0.006738944053649902, 0.007061503887176514, 0.0070830078125, 0.006876160144805908, 0.00678604793548584, 0.00673689603805542, 0.006821887969970703, 0.006833151817321777, 0.007010303974151612, 0.006847487926483154, 0.006945792198181152, 0.006831103801727295, 0.006783040046691895, 0.0070256638526916505, 0.006631392002105713, 0.006707136154174805, 0.0069550080299377445, 0.006681600093841553, 0.006725632190704346, 0.007009280204772949, 0.006702079772949219, 0.007030784130096435, 0.006842368125915528, 0.006863872051239014, 0.006809599876403808, 0.006546432018280029, 0.006739967823028564, 0.006628352165222168, 0.006534143924713135, 0.006462463855743408, 0.006260735988616943, 0.007773183822631836, 0.006914048194885254, 0.007013343811035157, 0.006999040126800537, 0.0066007041931152345, 0.006536191940307618, 0.006627327919006347, 0.006487040042877197, 0.006277120113372803, 0.00687718391418457, 0.006542335987091064, 0.006713344097137451, 0.006459392070770263, 0.006446080207824707, 0.0064430079460144046, 0.006448128223419189, 0.00657919979095459, 0.006504447937011719, 0.006462463855743408, 0.006288383960723877, 0.00628326416015625, 0.006289408206939697, 0.006243328094482422, 0.006296576023101807, 0.006276095867156982, 0.006248447895050049, 0.0062791681289672855, 0.00628326416015625 ] }, "throughput": { "unit": "tokens/s", "value": 149.15807218546874 }, "energy": null, "efficiency": null } } }