{ "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.225-213.878.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.45.1", "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.13.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 804.626432, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.20807273864746093 ], "count": 1, "total": 0.20807273864746093, "mean": 0.20807273864746093, "p50": 0.20807273864746093, "p90": 0.20807273864746093, "p95": 0.20807273864746093, "p99": 0.20807273864746093, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1236.819968, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.410496 }, "latency": { "unit": "s", "values": [ 0.006585087776184082, 0.006748415946960449, 0.006844287872314453, 0.006811840057373047, 0.00673033618927002, 0.0067497601509094235, 0.006713151931762695, 0.0067762241363525395, 0.006717376232147217, 0.006774464130401611, 0.006524767875671387, 0.006723072052001953, 0.006771103858947754, 0.006881440162658691, 0.006976672172546387, 0.006718624114990235, 0.00679036808013916, 0.006746880054473877, 0.006794591903686523, 0.006718143939971923, 0.006784192085266113, 0.006719999790191651, 0.006691904067993164, 0.006782400131225586, 0.0065649919509887696, 0.00675216007232666, 0.006707200050354004, 0.006670432090759277, 0.006718560218811035, 0.006709216117858886, 0.006691423892974854, 0.006779871940612793, 0.006915103912353515, 0.006860608100891113, 0.00686575984954834, 0.0067870402336120605, 0.006791103839874268, 0.006962111949920654, 0.006908383846282959, 0.0070068159103393556, 0.007071104049682617, 0.0069419841766357425, 0.006758336067199707, 0.006752352237701416, 0.006746016025543213, 0.006797791957855225, 0.006709184169769287, 0.006970176219940186, 0.006717120170593262, 0.0067285442352294925, 0.006746623992919922, 0.006760255813598633, 0.006761792182922363, 0.006687679767608643, 0.006727104187011719, 0.0066912961006164555, 0.006759136199951172, 0.006577919960021972, 0.006394176006317138, 0.006493728160858154, 0.006394944190979004, 0.00638976001739502, 0.006437568187713623, 0.006444384098052978, 0.006446752071380615, 0.006408864021301269, 0.006492256164550781, 0.006448128223419189, 0.00637007999420166, 0.006798079967498779, 0.006564640045166016, 0.006539103984832764, 0.006426655769348145, 0.006438240051269532 ], "count": 74, "total": 0.4961576671600342, "mean": 0.006704833340000462, "p50": 0.006729440212249756, "p90": 0.0069003007411956785, "p95": 0.00696493444442749, "p99": 0.007024173707962036, "stdev": 0.00016154546808712093, "stdev_": 2.409388271045523 }, "throughput": { "unit": "tokens/s", "value": 298.2922764191872 }, "energy": { "unit": "kWh", "cpu": 8.293920711440833e-08, "ram": 4.5321098553091905e-08, "gpu": 1.5790416672727048e-07, "total": 2.861644723947707e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6988987.7777733095 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1236.819968, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.458112 }, "latency": { "unit": "s", "values": [ 0.006736959934234619, 0.007143616199493408, 0.006957824230194092, 0.006871007919311524, 0.006863935947418213, 0.006882751941680908, 0.006865503787994384, 0.0069307518005371094, 0.006948192119598389, 0.006880864143371582, 0.006944191932678223, 0.0069153599739074706, 0.006869344234466552, 0.007055263996124267, 0.006954847812652588, 0.006965312004089355, 0.0069350719451904295, 0.006915264129638672, 0.006891551971435547, 0.00698905611038208, 0.00707257604598999, 0.006880352020263672, 0.006936448097229004, 0.006902495861053467, 0.006931647777557373, 0.006877024173736573, 0.007054975986480713, 0.007003456115722656, 0.007020832061767578, 0.006966815948486328, 0.007140448093414306, 0.006999551773071289, 0.007160639762878418, 0.00696998405456543, 0.006964223861694336, 0.006949600219726563, 0.0068412480354309085, 0.0072032961845397946, 0.006963488101959229, 0.007222879886627198, 0.0071421761512756345, 0.006952447891235352, 0.006888864040374756, 0.00691590404510498, 0.006953216075897216, 0.0070381760597229, 0.0069508800506591795, 0.007070720195770264, 0.00691871976852417, 0.006890816211700439, 0.0070572800636291505, 0.006908256053924561, 0.007130752086639405, 0.006887616157531739, 0.007201119899749756, 0.006910912036895752, 0.0068986878395080565, 0.006643968105316162, 0.006623456001281738, 0.006681439876556397, 0.0065775041580200195, 0.006624415874481201, 0.006546432018280029, 0.006555359840393066, 0.006708735942840576, 0.006955327987670898, 0.0066210880279541015, 0.00666431999206543, 0.006923583984375, 0.006781280040740967, 0.006630496025085449, 0.006605823993682861, 0.006617856025695801, 0.006569888114929199 ], "count": 74, "total": 0.5106261768341064, "mean": 0.006900353741001438, "p50": 0.006921151876449585, "p90": 0.007113299274444581, "p95": 0.007149574446678161, "p99": 0.0072085837841033935, "stdev": 0.00016489027912245603, "stdev_": 2.3895916834334026 }, "throughput": { "unit": "tokens/s", "value": 144.92010664005053 }, "energy": { "unit": "kWh", "cpu": 7.072863573637555e-08, "ram": 3.865766640222157e-08, "gpu": 1.3327127988811826e-07, "total": 2.426575820267154e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4121033.398782919 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.0063272957801818845, 0.006743040084838867, 0.006533055782318115, 0.0064737281799316405, 0.0064644479751586915, 0.006486015796661377, 0.006467584133148193, 0.006520832061767578, 0.0065474557876586915, 0.006487040042877197, 0.0065382399559021, 0.006510591983795166, 0.006472703933715821, 0.006649856090545654, 0.0065413122177124024, 0.006549503803253174, 0.0065177597999572755, 0.006516736030578613, 0.006495232105255127, 0.0065812478065490725, 0.006669312000274658, 0.006487040042877197, 0.006536191940307618, 0.006479872226715088, 0.0065382399559021, 0.006470655918121338, 0.006658048152923584, 0.0066078720092773435, 0.006612991809844971, 0.006569983959197998, 0.0067092800140380856, 0.0065823040008544925, 0.00669593620300293, 0.006564864158630371, 0.006546432018280029, 0.0065474238395690915, 0.00643993616104126, 0.0067768640518188475, 0.0065372161865234375, 0.006790143966674805, 0.006702079772949219, 0.006551551818847656, 0.006490975856781006, 0.006515711784362793, 0.006551551818847656, 0.00662937593460083, 0.006534143924713135, 0.0066375679969787596, 0.00652185583114624, 0.0064839677810668945, 0.0066416640281677245, 0.006502463817596436, 0.00672870397567749, 0.006489088058471679, 0.00679423999786377, 0.0065136637687683106, 0.006465536117553711, 0.006251520156860352, 0.006223872184753418, 0.0062904319763183595, 0.006183968067169189, 0.006241343975067139, 0.006164480209350586, 0.006164576053619385, 0.0063211522102355954, 0.006559743881225586, 0.006239232063293457, 0.006260735988616943, 0.006452223777770996, 0.006367231845855713, 0.006238207817077636, 0.006221824169158936, 0.0062269439697265625, 0.006181888103485108 ], "count": 74, "total": 0.4805878067016602, "mean": 0.006494429820292705, "p50": 0.006517247915267944, "p90": 0.0066879489421844485, "p95": 0.006733721613883972, "p99": 0.006791249895095825, "stdev": 0.00015601051179247035, "stdev_": 2.402220304313627 }, "throughput": { "unit": "tokens/s", "value": 153.97810549516876 }, "energy": null, "efficiency": null } } }