{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.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": 2, "sequence_length": 16, "num_choices": 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.248768, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.228-219.884.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.dev0", "optimum_benchmark_commit": null, "transformers_version": "4.46.3", "transformers_commit": null, "accelerate_version": "1.1.1", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.11", "timm_commit": null, "peft_version": "0.13.2", "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load_model": { "memory": { "unit": "MB", "max_ram": 826.662912, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.08042495727539062 ], "count": 1, "total": 0.08042495727539062, "mean": 0.08042495727539062, "p50": 0.08042495727539062, "p90": 0.08042495727539062, "p95": 0.08042495727539062, "p99": 0.08042495727539062, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00010896214324930591, "ram": 5.969442986997575e-05, "gpu": 0.00014376205945399985, "total": 0.0003124186325732815 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1310.94528, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394112 }, "latency": { "unit": "s", "values": [ 0.007852896213531494, 0.0077918400764465335, 0.007802720069885254, 0.00785094404220581, 0.007860223770141601, 0.008367967605590821, 0.008282272338867188, 0.008306015968322754, 0.008004287719726562, 0.008456447601318359, 0.007850880146026612, 0.007990784168243408, 0.007745440006256103, 0.0078079037666320805, 0.007838208198547364, 0.007917247772216796, 0.007715680122375488, 0.007877632141113282, 0.007783775806427002, 0.008082592010498046, 0.008041248321533204, 0.008052895545959473, 0.0080250883102417, 0.007777599811553955, 0.007848415851593018, 0.007991456031799316, 0.007789792060852051, 0.007600607872009277, 0.00754099178314209, 0.007702591896057129, 0.007930399894714356, 0.008026752471923828, 0.008218591690063476, 0.007723519802093506, 0.00767955207824707, 0.007688672065734863, 0.007677696228027344, 0.007462399959564209, 0.007472544193267822, 0.007431488037109375, 0.007489280223846435, 0.007398272037506103, 0.007213088035583496, 0.0072259202003479, 0.007153183937072754, 0.007175199985504151, 0.007702879905700684, 0.007345600128173828, 0.007235424041748047, 0.007150784015655518, 0.00717244815826416, 0.007164927959442138, 0.007124896049499512, 0.00714796781539917, 0.007219840049743653, 0.007459839820861816, 0.007203487873077392, 0.007182015895843506, 0.007155488014221192, 0.007179999828338623, 0.0071645441055297856, 0.007178656101226807, 0.007227712154388428, 0.007142911911010743, 0.0076891517639160155, 0.0074263358116149905, 0.007160607814788818 ], "count": 67, "total": 0.5109585270881651, "mean": 0.00762624667295769, "p50": 0.0076891517639160155, "p90": 0.008045907211303712, "p95": 0.008263168144226073, "p99": 0.008398050804138184, "stdev": 0.00036390172710066486, "stdev_": 4.77170150279879 }, "throughput": { "unit": "samples/s", "value": 262.2522042319855 }, "energy": { "unit": "kWh", "cpu": 8.995786504629499e-08, "ram": 4.9156188943923564e-08, "gpu": 1.9349131640908976e-07, "total": 3.326053703993083e-07 }, "efficiency": { "unit": "samples/kWh", "value": 6013132.011665676 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1310.94528, "max_global_vram": 1379.401728, "max_process_vram": 0.0, "max_reserved": 731.906048, "max_allocated": 538.394624 }, "latency": { "unit": "s", "values": [ 0.007475647926330566, 0.007550623893737793, 0.007541632175445557, 0.007689119815826416, 0.0077963838577270505, 0.00806287956237793, 0.008066111564636231, 0.007948160171508789, 0.007871808052062989, 0.007970079898834229, 0.007748960018157959, 0.0075177278518676754, 0.007625919818878174, 0.007571296215057373, 0.00789244794845581, 0.0074880638122558595, 0.0075807681083679196, 0.007671648025512695, 0.007991424083709717, 0.007864384174346924, 0.0077612800598144535, 0.007745312213897705, 0.007802656173706055, 0.007675168037414551, 0.007455615997314453, 0.007539936065673828, 0.007331647872924805, 0.007517888069152832, 0.007067999839782715, 0.0077389440536499024, 0.007771711826324463, 0.007910687923431397, 0.007633887767791748, 0.007415359973907471, 0.007547391891479492, 0.007506303787231446, 0.007300735950469971, 0.007284480094909668, 0.007192319869995118, 0.007215295791625977, 0.0072707200050354005, 0.0071842241287231445, 0.00706492805480957, 0.007061535835266113, 0.006958655834197998, 0.00741868782043457, 0.007140575885772705, 0.006991744041442871, 0.006957280158996582, 0.0069398398399353025, 0.007033120155334473, 0.007031360149383545, 0.006972832202911377, 0.006926400184631348, 0.006878719806671142, 0.006999551773071289, 0.007003935813903808, 0.0070620479583740235, 0.007044640064239502, 0.007008224010467529, 0.007017471790313721, 0.006976704120635987, 0.007010528087615967, 0.00698140811920166, 0.0072221760749816896, 0.007275807857513428, 0.006966976165771485 ], "count": 67, "total": 0.49573980617523206, "mean": 0.0073991015847049545, "p50": 0.00741868782043457, "p90": 0.007880064010620117, "p95": 0.007963503980636596, "p99": 0.008063978443145752, "stdev": 0.000349284424909193, "stdev_": 4.720632916180201 }, "throughput": { "unit": "tokens/s", "value": 270.30308708482903 }, "energy": { "unit": "kWh", "cpu": 7.89443918785889e-08, "ram": 4.314438130445208e-08, "gpu": 1.5899331612612274e-07, "total": 2.810820893091638e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7115359.092838493 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.007032832145690918, 0.00707583999633789, 0.007080992221832275, 0.00722431993484497, 0.007236608028411865, 0.007578656196594238, 0.007583744049072265, 0.007439551830291748, 0.007350272178649903, 0.007486303806304931, 0.007257952213287354, 0.007079936027526855, 0.007162879943847656, 0.007110655784606934, 0.007411712169647216, 0.007039999961853028, 0.0071157760620117185, 0.007186431884765625, 0.007511040210723877, 0.007351295948028564, 0.00724070405960083, 0.007222271919250488, 0.00729702377319336, 0.007198624134063721, 0.007007232189178467, 0.007097311973571777, 0.0069324798583984375, 0.007069695949554444, 0.006633471965789795, 0.0072765440940856935, 0.007304384231567383, 0.0074291200637817386, 0.007243775844573975, 0.007009280204772949, 0.007142399787902832, 0.007040063858032227, 0.006915071964263916, 0.006908927917480469, 0.006825984001159668, 0.006843423843383789, 0.006903808116912841, 0.006813695907592773, 0.006700032234191895, 0.006702079772949219, 0.006602752208709717, 0.007012351989746094, 0.006773759841918945, 0.00663647985458374, 0.006589439868927002, 0.006582272052764892, 0.006676479816436768, 0.006654975891113281, 0.006609920024871826, 0.006542335987091064, 0.006523903846740723, 0.0066406397819519045, 0.006646783828735352, 0.006687744140625, 0.0066826238632202144, 0.006651904106140137, 0.0066416640281677245, 0.006618175983428955, 0.006653024196624756, 0.006624224185943603, 0.006842368125915528, 0.006873087882995605, 0.006607967853546143 ], "count": 67, "total": 0.46744908761978166, "mean": 0.00697685205402659, "p50": 0.007009280204772949, "p90": 0.007375462436676025, "p95": 0.007472278213500976, "p99": 0.007580386066436767, "stdev": 0.0002978372685234916, "stdev_": 4.268934846505726 }, "throughput": null, "energy": null, "efficiency": null } } }