{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.6.0.dev20240917+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.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": 813.166592, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.501703125, "mean": 8.501703125, "stdev": 0.0, "p50": 8.501703125, "p90": 8.501703125, "p95": 8.501703125, "p99": 8.501703125, "values": [ 8.501703125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.55534878461448e-07, "ram": 5.038194107969832e-07, "gpu": 1.7397236140026529e-06, "total": 3.199077903261084e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1237.68832, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 75, "total": 0.4880216317176817, "mean": 0.006506955089569092, "stdev": 0.00018777159977520814, "p50": 0.0064327998161315915, "p90": 0.00670689926147461, "p95": 0.00679077124595642, "p99": 0.007346111192703248, "values": [ 0.007479263782501221, 0.0072993278503417965, 0.0067291841506958005, 0.006462399959564209, 0.0065339522361755374, 0.006420256137847901, 0.006435296058654785, 0.006449056148529053, 0.006425119876861572, 0.006398431777954102, 0.006439743995666504, 0.006431168079376221, 0.006500415802001953, 0.006414463996887207, 0.006514080047607422, 0.006394144058227539, 0.006429855823516846, 0.0064327998161315915, 0.0064559998512268065, 0.006436223983764648, 0.006461120128631591, 0.006435872077941895, 0.00639302396774292, 0.00644927978515625, 0.006435904026031494, 0.006429664134979248, 0.006500256061553955, 0.006478015899658203, 0.006418176174163818, 0.006889088153839111, 0.006501376152038574, 0.006423200130462646, 0.006729631900787353, 0.006400608062744141, 0.006411456108093262, 0.0064496641159057615, 0.006399775981903076, 0.00640780782699585, 0.006481664180755615, 0.006431519985198975, 0.006427648067474365, 0.006392799854278565, 0.006408703804016113, 0.006403840065002441, 0.006447167873382569, 0.006395648002624512, 0.0063714561462402345, 0.006377855777740479, 0.006402207851409912, 0.006389215946197509, 0.006377024173736572, 0.006396671772003174, 0.006422239780426026, 0.006392608165740967, 0.006383296012878418, 0.006414591789245605, 0.006410975933074951, 0.006821728229522705, 0.006730495929718017, 0.006623936176300049, 0.006673471927642822, 0.006777503967285156, 0.006655104160308838, 0.0066368961334228515, 0.006639679908752441, 0.006648928165435791, 0.006427968025207519, 0.0064048957824707035, 0.006472544193267822, 0.0063985600471496585, 0.006379648208618164, 0.006420191764831543, 0.006619775772094726, 0.006623392105102539, 0.00664467191696167 ] }, "throughput": { "unit": "tokens/s", "value": 307.3634245925686 }, "energy": { "unit": "kWh", "cpu": 8.075032983287836e-08, "ram": 4.4128110761345915e-08, "gpu": 1.5830322565986705e-07, "total": 2.8318166625409134e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7062604.110131387 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1256.034304, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 75, "total": 0.5131919374465944, "mean": 0.006842559165954591, "stdev": 0.00020617221979244885, "p50": 0.006756864070892334, "p90": 0.007048019218444824, "p95": 0.007093468952178955, "p99": 0.007729504127502443, "values": [ 0.007622176170349121, 0.008034976005554199, 0.006805376052856445, 0.006731423854827881, 0.006756864070892334, 0.006779839992523193, 0.0067320318222045894, 0.006774655818939209, 0.006750815868377685, 0.006783648014068604, 0.006846176147460937, 0.006737696170806885, 0.006763967990875244, 0.006740831851959229, 0.006750592231750488, 0.00681712007522583, 0.00671398401260376, 0.006768928050994873, 0.0067504639625549315, 0.0067132158279418945, 0.006745984077453613, 0.0067114558219909665, 0.00685807991027832, 0.006746912002563476, 0.006726975917816162, 0.0067226881980895995, 0.0071550397872924805, 0.006749536037445068, 0.007092480182647705, 0.006957312107086181, 0.0067944321632385256, 0.0068549118041992185, 0.006989920139312744, 0.006744863986968994, 0.006813632011413574, 0.00674124813079834, 0.0067415680885314945, 0.006732768058776856, 0.006727136135101318, 0.006742464065551758, 0.006761119842529297, 0.006708352088928222, 0.006738368034362793, 0.006794623851776123, 0.0067112002372741696, 0.006738143920898438, 0.006812320232391357, 0.006763072013854981, 0.0067387518882751464, 0.0067861762046813965, 0.006736256122589111, 0.006693727970123291, 0.006742176055908203, 0.00672051191329956, 0.00670633602142334, 0.006730815887451172, 0.006723135948181152, 0.006996992111206054, 0.007091616153717041, 0.007021408081054687, 0.0070767998695373535, 0.007059103965759277, 0.006994272232055664, 0.007095776081085205, 0.006999008178710938, 0.007012671947479248, 0.006753824234008789, 0.006704544067382813, 0.006805600166320801, 0.006723135948181152, 0.006776991844177246, 0.006746399879455567, 0.007031392097473144, 0.0069695677757263185, 0.0070035519599914555 ] }, "throughput": { "unit": "tokens/s", "value": 146.14415100355103 }, "energy": { "unit": "kWh", "cpu": 7.654198143343734e-08, "ram": 4.181641661437066e-08, "gpu": 1.5235126262961426e-07, "total": 2.707096606774221e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3693994.5087205474 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 75, "total": 0.4826276168823242, "mean": 0.006435034891764322, "stdev": 0.0001831267676126319, "p50": 0.006355967998504639, "p90": 0.006624678421020508, "p95": 0.006681292724609375, "p99": 0.007183585290908815, "values": [ 0.007077888011932373, 0.007484416007995606, 0.006411263942718506, 0.006338560104370118, 0.006358016014099121, 0.0063836159706115725, 0.006339583873748779, 0.0063508481979370115, 0.006343679904937744, 0.006392831802368164, 0.006428671836853027, 0.006343679904937744, 0.006362112045288086, 0.006322175979614258, 0.006352896213531494, 0.006425600051879882, 0.006323200225830078, 0.006375423908233643, 0.006341631889343262, 0.00632422399520874, 0.00633241605758667, 0.0063201279640197755, 0.006460415840148926, 0.006348832130432129, 0.006334464073181153, 0.006330368041992188, 0.006721471786499024, 0.006355967998504639, 0.006586368083953857, 0.006546432018280029, 0.006402048110961914, 0.006453248023986816, 0.006582272052764892, 0.006351871967315674, 0.006421504020690918, 0.006345727920532227, 0.006347775936126709, 0.006334464073181153, 0.006307839870452881, 0.006343679904937744, 0.00636518383026123, 0.006318079948425293, 0.006348800182342529, 0.006402048110961914, 0.006322175979614258, 0.00633241605758667, 0.006401023864746094, 0.006362112045288086, 0.006326272010803223, 0.006385663986206055, 0.006336512088775635, 0.006302720069885254, 0.006341631889343262, 0.006312960147857666, 0.006304768085479737, 0.006307839870452881, 0.006333439826965332, 0.006594560146331787, 0.006687744140625, 0.0066191678047180175, 0.0066344962120056155, 0.006649856090545654, 0.006568960189819336, 0.00667852783203125, 0.00658841609954834, 0.00659660816192627, 0.006351871967315674, 0.006313983917236328, 0.006406144142150879, 0.0063211522102355954, 0.006387712001800537, 0.00633241605758667, 0.006628352165222168, 0.006558720111846924, 0.006597663879394531 ] }, "throughput": { "unit": "tokens/s", "value": 155.39931279623963 }, "energy": null, "efficiency": null } } }