{ "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": "1.22.0", "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.13.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 804.82304, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.339328 }, "latency": { "unit": "s", "values": [ 7.97734228515625 ], "count": 1, "total": 7.97734228515625, "mean": 7.97734228515625, "p50": 7.97734228515625, "p90": 7.97734228515625, "p95": 7.97734228515625, "p99": 7.97734228515625, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.259841207393847e-07, "ram": 4.885349196359072e-07, "gpu": 1.615834625878776e-06, "total": 3.0303536662540676e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1242.492928, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "values": [ 0.006972095966339111, 0.007208447933197021, 0.006857823848724365, 0.006904607772827149, 0.007094272136688232, 0.006961984157562256, 0.007140895843505859, 0.006771200180053711, 0.007059328079223633, 0.006890304088592529, 0.006918432235717774, 0.006809887886047364, 0.00691651201248169, 0.007066751956939697, 0.006765439987182618, 0.0068504958152771, 0.006880703926086426, 0.0069597759246826174, 0.007062496185302735, 0.0070495038032531735, 0.007032224178314209, 0.006944863796234131, 0.00703110408782959, 0.006896927833557129, 0.006791296005249023, 0.006681280136108398, 0.00687283182144165, 0.006507840156555176, 0.006880320072174072, 0.006928639888763428, 0.0069203519821166995, 0.00729750394821167, 0.0069285759925842285, 0.006824639797210694, 0.006908959865570068, 0.0067674241065979, 0.006649407863616943, 0.006527872085571289, 0.006609568119049072, 0.006605792045593262, 0.0066761279106140135, 0.006323967933654785, 0.00631990385055542, 0.006408639907836914, 0.0066769919395446775, 0.006553887844085693, 0.006543903827667236, 0.006535327911376953, 0.0065478401184082035, 0.006619487762451172, 0.006274335861206055, 0.006575424194335938, 0.006596543788909912, 0.006271008014678955, 0.006211584091186524, 0.006593056201934814, 0.006590400218963623, 0.006553855895996094, 0.006468959808349609, 0.006539968013763428, 0.006521503925323486, 0.006528607845306397, 0.006455455780029297, 0.006489664077758789, 0.00652345609664917, 0.006275008201599121, 0.006269536018371582, 0.006539519786834717, 0.0065188159942626955, 0.006477503776550293, 0.006680448055267334, 0.00653875207901001, 0.006560448169708252 ], "count": 73, "total": 0.4900083184242249, "mean": 0.006712442718140066, "p50": 0.0066769919395446775, "p90": 0.00704604787826538, "p95": 0.0070777600288391114, "p99": 0.007233383617401123, "stdev": 0.0002508327553065744, "stdev_": 3.736832712608637 }, "throughput": { "unit": "tokens/s", "value": 297.9541254922135 }, "energy": { "unit": "kWh", "cpu": 7.889870648836359e-08, "ram": 4.308548142346985e-08, "gpu": 1.641943918400745e-07, "total": 2.8617857975190794e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6988643.2511260165 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1242.492928, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "values": [ 0.0072512001991271976, 0.0075833601951599125, 0.007339744091033935, 0.007216383934020996, 0.00753004789352417, 0.007379744052886963, 0.007289120197296143, 0.0072575039863586426, 0.007432864189147949, 0.0074776639938354495, 0.007332064151763916, 0.007302624225616455, 0.00721830415725708, 0.00733622407913208, 0.0072782402038574215, 0.007190303802490234, 0.0072156481742858885, 0.007336063861846924, 0.007429152011871338, 0.0073266239166259765, 0.007306464195251465, 0.007318463802337647, 0.007158783912658692, 0.0072791361808776855, 0.006979616165161133, 0.0069634242057800295, 0.007002816200256347, 0.006862751960754395, 0.007189311981201172, 0.007215295791625977, 0.007337152004241943, 0.007382207870483398, 0.0071528000831604, 0.007066175937652588, 0.007180575847625732, 0.0068281922340393065, 0.006839136123657227, 0.006898848056793213, 0.006880959987640381, 0.006843135833740234, 0.0073870720863342286, 0.00664089584350586, 0.0066228160858154295, 0.006963808059692383, 0.006937952041625977, 0.0068895678520202635, 0.00676313591003418, 0.007006495952606201, 0.006922336101531983, 0.00683078384399414, 0.00684284782409668, 0.006890783786773682, 0.00682422399520874, 0.006688704013824463, 0.006615071773529053, 0.006908512115478516, 0.006920576095581055, 0.00678876781463623, 0.00683622407913208, 0.006925695896148681, 0.006902304172515869, 0.006778975963592529, 0.006915743827819824, 0.006809728145599365, 0.006674367904663086, 0.00659603214263916, 0.00684441614151001, 0.006836703777313232, 0.006876736164093017, 0.006778751850128174, 0.006906752109527588, 0.006785759925842285, 0.006808544158935547 ], "count": 73, "total": 0.514129217147827, "mean": 0.007042865988326397, "p50": 0.0069634242057800295, "p90": 0.007371744060516357, "p95": 0.007430636882781982, "p99": 0.0075449753379821785, "stdev": 0.00025333364606212866, "stdev_": 3.5970249395917953 }, "throughput": { "unit": "tokens/s", "value": 141.98765128535848 }, "energy": { "unit": "kWh", "cpu": 7.477757158472682e-08, "ram": 4.090365447725481e-08, "gpu": 1.293172389804693e-07, "total": 2.4499846504245083e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4081658.225192269 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.006748159885406494, 0.007066624164581299, 0.0068321280479431154, 0.0067041277885437015, 0.006971392154693603, 0.006859744071960449, 0.006761472225189209, 0.00673689603805542, 0.0068853759765625, 0.006918015956878662, 0.006829055786132812, 0.006779903888702392, 0.006703104019165039, 0.006830080032348633, 0.0067686400413513184, 0.0066835198402404785, 0.006708223819732666, 0.006814720153808594, 0.006843391895294189, 0.006789120197296142, 0.006799520015716553, 0.006796288013458252, 0.006674367904663086, 0.006779903888702392, 0.006498303890228272, 0.006489088058471679, 0.006563839912414551, 0.006458367824554443, 0.006718463897705078, 0.006774879932403564, 0.006844511985778809, 0.006918144226074219, 0.006714367866516113, 0.0066304001808166506, 0.0067348480224609375, 0.006432767868041992, 0.0064471039772033695, 0.006501376152038574, 0.006462463855743408, 0.006445055961608887, 0.00698367977142334, 0.006250495910644531, 0.006235136032104492, 0.00653926420211792, 0.00652288007736206, 0.006492159843444824, 0.00636518383026123, 0.0065710082054138185, 0.0065177597999572755, 0.006418432235717773, 0.006435840129852295, 0.006489088058471679, 0.006401023864746094, 0.006306816101074219, 0.006223872184753418, 0.0065136637687683106, 0.006524928092956543, 0.006385663986206055, 0.006433792114257812, 0.006525951862335205, 0.0065064959526062015, 0.006366208076477051, 0.006523903846740723, 0.006408192157745361, 0.006271999835968017, 0.006214655876159668, 0.006436863899230957, 0.006436863899230957, 0.0064767999649047855, 0.00638976001739502, 0.006496255874633789, 0.006391808032989502, 0.0064174079895019534 ], "count": 73, "total": 0.48139161491394045, "mean": 0.006594405683752609, "p50": 0.006524928092956543, "p90": 0.006844287967681884, "p95": 0.006918067264556884, "p99": 0.007006904201507568, "stdev": 0.000204523552685794, "stdev_": 3.1014705872540125 }, "throughput": { "unit": "tokens/s", "value": 151.64368829534016 }, "energy": null, "efficiency": null } } }