{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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.223-212.873.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.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": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.22432, "max_global_vram": 1355.28448, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.4259619140625, "mean": 7.4259619140625, "stdev": 0.0, "p50": 7.4259619140625, "p90": 7.4259619140625, "p95": 7.4259619140625, "p99": 7.4259619140625, "values": [ 7.4259619140625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.98275192361062e-07, "ram": 5.307296700069239e-07, "gpu": 1.6650013319999182e-06, "total": 3.194006194367904e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1196.105728, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.48828111886978137, "mean": 0.006688782450270979, "stdev": 0.00025867567175981497, "p50": 0.006694015979766846, "p90": 0.006919558429718017, "p95": 0.007253024005889892, "p99": 0.007624242000579835, "values": [ 0.007560160160064697, 0.007291872024536133, 0.0072806720733642576, 0.007234591960906983, 0.0077890238761901855, 0.0066863040924072265, 0.006645376205444336, 0.006524543762207031, 0.006520031929016113, 0.006694208145141602, 0.006550591945648193, 0.0065147199630737306, 0.0065006399154663086, 0.006508959770202637, 0.006507711887359619, 0.006721983909606934, 0.006675072193145752, 0.006494080066680908, 0.006502079963684082, 0.007037087917327881, 0.007103263854980469, 0.006832223892211914, 0.006782879829406738, 0.006711359977722168, 0.006725279808044433, 0.006747583866119385, 0.006507967948913574, 0.006474271774291992, 0.006518208026885987, 0.006507967948913574, 0.006498079776763916, 0.006736671924591065, 0.006795584201812744, 0.006741727828979492, 0.006698080062866211, 0.006719327926635742, 0.0067223038673400876, 0.006694015979766846, 0.006708000183105469, 0.006698239803314209, 0.006741856098175049, 0.006743711948394775, 0.006713312149047851, 0.006708159923553467, 0.006722527980804444, 0.006820608139038086, 0.006737184047698974, 0.0066715202331542964, 0.006938560009002686, 0.006795199871063232, 0.006839072227478028, 0.00678876781463623, 0.006843552112579345, 0.006838816165924072, 0.006824480056762695, 0.006460224151611328, 0.0064817600250244144, 0.006463327884674072, 0.006440256118774414, 0.006507040023803711, 0.0064687361717224124, 0.006453824043273926, 0.006471295833587646, 0.006462080001831055, 0.00644163179397583, 0.006485983848571777, 0.0064795842170715335, 0.0064653120040893556, 0.006463424205780029, 0.006451615810394287, 0.006426623821258545, 0.006477695941925049, 0.006490623950958252 ] }, "throughput": { "unit": "tokens/s", "value": 299.00808030002156 }, "energy": { "unit": "kWh", "cpu": 8.097561308106375e-08, "ram": 4.425517151738743e-08, "gpu": 1.557862168435364e-07, "total": 2.810170014419876e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7117007.119631069 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1214.513152, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5158045735359191, "mean": 0.007065816075834509, "stdev": 0.0002698582082972627, "p50": 0.007040319919586181, "p90": 0.0075293438911437985, "p95": 0.007678003215789795, "p99": 0.007761466674804688, "values": [ 0.007688352108001709, 0.007692671775817871, 0.007612448215484619, 0.007644512176513672, 0.0072195520401000975, 0.006874015808105469, 0.006874911785125733, 0.0068674559593200684, 0.00793836784362793, 0.0070275840759277345, 0.006819647789001465, 0.006858335971832275, 0.006837632179260254, 0.006845376014709473, 0.007027743816375732, 0.007026016235351562, 0.007153567790985108, 0.006825984001159668, 0.007690591812133789, 0.007577951908111572, 0.007316480159759522, 0.007334911823272705, 0.007095744132995605, 0.007056128025054931, 0.007040319919586181, 0.007039487838745117, 0.006828447818756103, 0.00685103988647461, 0.006830111980438232, 0.006825471878051758, 0.0069556479454040525, 0.00716918420791626, 0.007113599777221679, 0.007065951824188232, 0.007194111824035645, 0.007056831836700439, 0.007073984146118164, 0.007063712120056152, 0.007130080223083496, 0.007056511878967285, 0.007124512195587158, 0.007062367916107178, 0.007051551818847656, 0.007149184226989746, 0.0071057920455932615, 0.007108160018920898, 0.007035327911376953, 0.007671103954315185, 0.007220831871032715, 0.0072344961166381835, 0.0072135357856750485, 0.007216159820556641, 0.007237279891967773, 0.0072167677879333494, 0.007232416152954102, 0.0068128957748413085, 0.0068104958534240725, 0.006823520183563233, 0.006823071956634522, 0.006792031764984131, 0.006894303798675537, 0.006837567806243896, 0.006821055889129638, 0.00682144021987915, 0.0068336639404296875, 0.006774335861206055, 0.006877376079559326, 0.006810592174530029, 0.006781919956207276, 0.006806879997253418, 0.006804416179656983, 0.0067944002151489255, 0.0068046398162841795 ] }, "throughput": { "unit": "tokens/s", "value": 141.52646902599923 }, "energy": { "unit": "kWh", "cpu": 7.823386421523186e-08, "ram": 4.279499238207218e-08, "gpu": 1.5204365904979912e-07, "total": 2.730725156471031e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3662030.935739865 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.4852275538444518, "mean": 0.006646952792389752, "stdev": 0.0002424786794601238, "p50": 0.006638591766357422, "p90": 0.007045734596252441, "p95": 0.007140147113800049, "p99": 0.00730132495880127, "values": [ 0.007162879943847656, 0.007124991893768311, 0.007074816226959229, 0.007117824077606201, 0.006805568218231201, 0.006471680164337158, 0.006459392070770263, 0.006461440086364746, 0.0074967041015625, 0.006636544227600098, 0.0064174079895019534, 0.006458367824554443, 0.006448128223419189, 0.0064430079460144046, 0.006616064071655273, 0.006620160102844238, 0.006711296081542969, 0.006436863899230957, 0.007172095775604248, 0.00707583999633789, 0.006889472007751465, 0.006929408073425293, 0.006690815925598144, 0.0066447358131408694, 0.006638591766357422, 0.0066344962120056155, 0.006420415878295898, 0.006459392070770263, 0.006433792114257812, 0.006412288188934326, 0.0065484800338745115, 0.006763519763946534, 0.006708223819732666, 0.006662144184112549, 0.006793216228485107, 0.006647808074951172, 0.006669312000274658, 0.006654975891113281, 0.006719456195831299, 0.006649856090545654, 0.006694911956787109, 0.006660096168518067, 0.006645760059356689, 0.006744063854217529, 0.006694911956787109, 0.0067041277885437015, 0.006632448196411133, 0.007225344181060791, 0.006778880119323731, 0.006819871902465821, 0.006765567779541016, 0.006806528091430664, 0.006778880119323731, 0.0067983360290527345, 0.006811647891998291, 0.006412288188934326, 0.006402048110961914, 0.0064204797744750975, 0.006432767868041992, 0.006394879817962646, 0.006499328136444092, 0.006435840129852295, 0.006411263942718506, 0.006397952079772949, 0.0064430079460144046, 0.006378496170043945, 0.006457344055175781, 0.00642252779006958, 0.00638262414932251, 0.006384640216827392, 0.006415359973907471, 0.006406144142150879, 0.006387712001800537 ] }, "throughput": { "unit": "tokens/s", "value": 150.44487771071923 }, "energy": null, "efficiency": null } } }