{ "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.25696, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.220-209.869.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.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 789.815296, "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.431103515625, "mean": 7.431103515625, "stdev": 0.0, "p50": 7.431103515625, "p90": 7.431103515625, "p95": 7.431103515625, "p99": 7.431103515625, "values": [ 7.431103515625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0243886208332893e-06, "ram": 5.195691628008858e-07, "gpu": 1.7377791679997878e-06, "total": 3.281736951633963e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1203.42528, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 76, "total": 0.4900594234466552, "mean": 0.006448150308508623, "stdev": 0.0002063524450380886, "p50": 0.006399183988571167, "p90": 0.00658235216140747, "p95": 0.006605607986450195, "p99": 0.007551559805870056, "values": [ 0.007488959789276123, 0.007739359855651855, 0.00671619176864624, 0.006488607883453369, 0.006416704177856445, 0.006434591770172119, 0.006441376209259033, 0.006420383930206299, 0.006397791862487793, 0.006419936180114746, 0.00641209602355957, 0.006384928226470948, 0.006391232013702393, 0.006410880088806152, 0.006411680221557617, 0.006395199775695801, 0.006432608127593994, 0.006408607959747315, 0.006398943901062012, 0.0063797121047973636, 0.006420191764831543, 0.006385183811187744, 0.006379168033599853, 0.006411520004272461, 0.00640835189819336, 0.00638588809967041, 0.006407104015350342, 0.006404704093933106, 0.00640067195892334, 0.006365248203277588, 0.006415584087371826, 0.00649567985534668, 0.00637391996383667, 0.0063854079246521, 0.0063994240760803225, 0.006425920009613037, 0.00638592004776001, 0.0063949117660522465, 0.00639628791809082, 0.0063925118446350095, 0.006394144058227539, 0.006420224189758301, 0.0064039998054504395, 0.006383647918701172, 0.00642252779006958, 0.006389440059661865, 0.006390655994415283, 0.006407423973083496, 0.0064486398696899415, 0.006401567935943603, 0.00651635217666626, 0.006603231906890869, 0.006602208137512207, 0.0065766401290893554, 0.006588064193725586, 0.006588319778442383, 0.006612736225128174, 0.006431168079376221, 0.006387648105621338, 0.006363999843597412, 0.006385663986206055, 0.006395071983337402, 0.006397056102752686, 0.006385056018829346, 0.00636956787109375, 0.006363647937774658, 0.006281248092651367, 0.006308095932006836, 0.006291520118713379, 0.006288896083831787, 0.006355008125305176, 0.0063949117660522465, 0.006382175922393799, 0.006352128028869629, 0.006368351936340332, 0.006384992122650147 ] }, "throughput": { "unit": "tokens/s", "value": 310.16646701937304 }, "energy": { "unit": "kWh", "cpu": 7.94193476666665e-08, "ram": 4.339340261003472e-08, "gpu": 1.663279108399989e-07, "total": 2.8914066111670015e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6917048.58208365 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1221.832704, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 76, "total": 0.5124876160621641, "mean": 0.006743258106081109, "stdev": 0.0001413243326969484, "p50": 0.0067042880058288574, "p90": 0.006867023944854736, "p95": 0.006927111864089966, "p99": 0.007395271897315979, "values": [ 0.0076054401397705074, 0.007325215816497803, 0.0067495999336242675, 0.0067173118591308595, 0.006715616226196289, 0.006716383934020996, 0.006704832077026367, 0.006729536056518555, 0.0068568320274353025, 0.006708223819732666, 0.006711071968078614, 0.00669209623336792, 0.006693727970123291, 0.006686783790588379, 0.0067283201217651365, 0.006696288108825684, 0.006695648193359375, 0.006716288089752197, 0.006683231830596924, 0.006689407825469971, 0.006689023971557617, 0.006816544055938721, 0.006696383953094482, 0.0066995201110839845, 0.006709504127502442, 0.006718976020812988, 0.006691455841064453, 0.0066921601295471195, 0.006707808017730713, 0.006679872035980225, 0.006672927856445313, 0.006700928211212158, 0.0067292160987854005, 0.006684480190277099, 0.00678172779083252, 0.006710912227630615, 0.006704544067382813, 0.00668620777130127, 0.006712287902832031, 0.006719871997833252, 0.0067079682350158695, 0.006679647922515869, 0.006715680122375488, 0.006695583820343017, 0.006683167934417725, 0.006673696041107177, 0.006738592147827149, 0.006815552234649658, 0.006680736064910889, 0.006940383911132813, 0.006806816101074219, 0.0068772158622741695, 0.006934815883636474, 0.00691206407546997, 0.006924543857574463, 0.0069045119285583495, 0.0068533759117126464, 0.006715007781982422, 0.006669504165649414, 0.006684480190277099, 0.006777823925018311, 0.006701951980590821, 0.006696320056915283, 0.006671775817871093, 0.006684000015258789, 0.006583583831787109, 0.006598464012145996, 0.006586495876312256, 0.006638751983642578, 0.006704031944274902, 0.006684639930725098, 0.006660255908966064, 0.006698368072509765, 0.006797984123229981, 0.0066843838691711425, 0.006679232120513916 ] }, "throughput": { "unit": "tokens/s", "value": 148.29626632535306 }, "energy": { "unit": "kWh", "cpu": 7.53675468950212e-08, "ram": 4.1060991202493536e-08, "gpu": 1.331672782509143e-07, "total": 2.4959581634842894e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4006477.410679141 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 76, "total": 0.4824800930023193, "mean": 0.006348422276346307, "stdev": 0.00012215592913111274, "p50": 0.006311935901641846, "p90": 0.006464511871337891, "p95": 0.006503424167633057, "p99": 0.006901247978210449, "values": [ 0.007074816226959229, 0.006843391895294189, 0.0063539199829101565, 0.006313983917236328, 0.0063303041458129886, 0.006329343795776367, 0.00630675220489502, 0.0063283839225769046, 0.006462463855743408, 0.00632422399520874, 0.006294528007507324, 0.006299647808074951, 0.006310912132263183, 0.006295551776885986, 0.006333439826965332, 0.006311935901641846, 0.0063099517822265624, 0.006301695823669433, 0.006301695823669433, 0.006304768085479737, 0.006292479991912842, 0.006427648067474365, 0.006313983917236328, 0.006307839870452881, 0.006306816101074219, 0.006335487842559814, 0.006311935901641846, 0.006306816101074219, 0.006318079948425293, 0.006299647808074951, 0.00628223991394043, 0.006298624038696289, 0.006347775936126709, 0.006302720069885254, 0.006396927833557129, 0.006325247764587402, 0.006319104194641113, 0.006292479991912842, 0.0063129281997680664, 0.006338560104370118, 0.00632422399520874, 0.006298624038696289, 0.006333439826965332, 0.006311935901641846, 0.006292479991912842, 0.0062904319763183595, 0.0063569917678833006, 0.00643071985244751, 0.006298624038696289, 0.006466559886932373, 0.006415359973907471, 0.006478847980499268, 0.0065382399559021, 0.006501376152038574, 0.006496255874633789, 0.006509568214416504, 0.006453248023986816, 0.006329343795776367, 0.00628326416015625, 0.006273024082183838, 0.006385663986206055, 0.006318079948425293, 0.006305791854858398, 0.006278143882751465, 0.006280191898345947, 0.0062044157981872555, 0.006220799922943115, 0.0062044157981872555, 0.006244351863861084, 0.006323200225830078, 0.006303743839263916, 0.006278143882751465, 0.0062863359451293946, 0.006406144142150879, 0.0062975997924804685, 0.006291456222534179 ] }, "throughput": { "unit": "tokens/s", "value": 157.51945230957884 }, "energy": null, "efficiency": null } } }