{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+cu121", "_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.293824, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.219-208.866.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.3.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.183296, "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.2078662109375, "mean": 7.2078662109375, "stdev": 0.0, "p50": 7.2078662109375, "p90": 7.2078662109375, "p95": 7.2078662109375, "p99": 7.2078662109375, "values": [ 7.2078662109375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0280277993943956e-06, "ram": 5.184068917475316e-07, "gpu": 1.799168106000719e-06, "total": 3.345602797142646e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1025.163264, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 77, "total": 0.4877476477622985, "mean": 0.0063343850358740066, "stdev": 0.0002271737567855734, "p50": 0.006270847797393799, "p90": 0.00651464958190918, "p95": 0.0066150014877319335, "p99": 0.0070995659828185995, "values": [ 0.007635359764099121, 0.006792736053466797, 0.006231872081756592, 0.006474048137664795, 0.006545407772064209, 0.006664256095886231, 0.006499135971069336, 0.006404416084289551, 0.006137728214263916, 0.006234208106994629, 0.006184671878814697, 0.00625705623626709, 0.006537919998168946, 0.00645904016494751, 0.006428415775299072, 0.0064091839790344236, 0.006183743953704834, 0.006129759788513184, 0.006146687984466553, 0.006452032089233398, 0.006183584213256836, 0.006184576034545898, 0.006123616218566895, 0.0061487360000610355, 0.0061673917770385745, 0.0061842241287231444, 0.0062024321556091305, 0.006427264213562012, 0.006436543941497803, 0.006440896034240723, 0.006563136100769043, 0.0064327998161315915, 0.006467584133148193, 0.006188896179199219, 0.006145376205444336, 0.00649129581451416, 0.006459904193878174, 0.006368703842163086, 0.00613753604888916, 0.006162432193756104, 0.006160927772521973, 0.006332608222961425, 0.0061923198699951176, 0.006339615821838379, 0.006432223796844483, 0.0064327998161315915, 0.006179359912872315, 0.006153567790985108, 0.006224800109863282, 0.006427775859832763, 0.006439199924468994, 0.006386303901672363, 0.006453120231628418, 0.006450111865997314, 0.0063990077972412105, 0.0066026878356933594, 0.0061801280975341795, 0.006143648147583008, 0.006168191909790039, 0.006128479957580566, 0.0061406722068786624, 0.006162943840026855, 0.006183104038238525, 0.006331456184387207, 0.006930367946624756, 0.006465184211730957, 0.0064579200744628905, 0.006393216133117676, 0.0064057598114013676, 0.006195551872253418, 0.0061554241180419925, 0.006120287895202637, 0.0061216001510620115, 0.006270847797393799, 0.006164415836334229, 0.006152063846588135, 0.006145343780517578 ] }, "throughput": { "unit": "tokens/s", "value": 315.73704292891057 }, "energy": { "unit": "kWh", "cpu": 7.64664793954528e-08, "ram": 4.180933635543001e-08, "gpu": 1.490682196128993e-07, "total": 2.673440353637821e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7480997.274835577 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1040.535552, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 77, "total": 0.5118724484443664, "mean": 0.0066476941356411225, "stdev": 0.00017111888665357955, "p50": 0.006719583988189697, "p90": 0.006828070545196533, "p95": 0.006859052658081055, "p99": 0.007050179920196533, "values": [ 0.00705292797088623, 0.006780767917633056, 0.00678550386428833, 0.006825183868408203, 0.007049312114715576, 0.0068475518226623535, 0.006776639938354492, 0.006668704032897949, 0.006744095802307129, 0.006547391891479492, 0.006522208213806152, 0.006773856163024903, 0.006822912216186523, 0.00678326416015625, 0.006774655818939209, 0.006775328159332275, 0.006498335838317871, 0.006505248069763184, 0.006478687763214111, 0.006826176166534424, 0.006412511825561524, 0.006586368083953857, 0.006472352027893066, 0.006473504066467285, 0.0064817600250244144, 0.0064141759872436525, 0.006484608173370362, 0.006822271823883057, 0.0067554240226745605, 0.0067725758552551266, 0.006749951839447021, 0.006783520221710205, 0.006757120132446289, 0.006462399959564209, 0.006859007835388183, 0.006859231948852539, 0.0067424321174621585, 0.006515456199645996, 0.006509696006774902, 0.006513696193695068, 0.006488224029541015, 0.006458975791931152, 0.006460031986236572, 0.006830912113189697, 0.006776768207550049, 0.0067621440887451175, 0.0065179519653320315, 0.006636384010314941, 0.006972511768341064, 0.006765984058380127, 0.0068458237648010255, 0.006805344104766846, 0.006736927986145019, 0.0068000321388244625, 0.006785727977752685, 0.006768191814422607, 0.006443327903747559, 0.0064453759193420414, 0.006462944030761719, 0.006472896099090577, 0.0065714879035949705, 0.006417376041412353, 0.006418816089630127, 0.006459519863128662, 0.006788479804992676, 0.006721407890319824, 0.006778304100036621, 0.0067556161880493164, 0.006719583988189697, 0.0064479360580444334, 0.006455679893493652, 0.006474688053131104, 0.006448895931243897, 0.0065730881690979, 0.006410208225250244, 0.0064555201530456545, 0.006472544193267822 ] }, "throughput": { "unit": "tokens/s", "value": 150.4281002699227 }, "energy": { "unit": "kWh", "cpu": 7.162230569989451e-08, "ram": 3.908627868922336e-08, "gpu": 1.4520979358710498e-07, "total": 2.559183779762229e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3907495.850465686 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 77, "total": 0.4814540481567384, "mean": 0.006252649976061536, "stdev": 0.00016516499915514006, "p50": 0.006315008163452148, "p90": 0.006434009552001953, "p95": 0.006464716720581055, "p99": 0.006621775283813477, "values": [ 0.006630335807800293, 0.00638262414932251, 0.00638156795501709, 0.00643071985244751, 0.006619071960449219, 0.006449151992797852, 0.006375423908233643, 0.00628223991394043, 0.006337535858154297, 0.006121471881866455, 0.006137856006622314, 0.006378496170043945, 0.0064133119583129885, 0.006388735771179199, 0.00638259220123291, 0.006362112045288086, 0.006095871925354004, 0.00612556791305542, 0.006097951889038086, 0.006426623821258545, 0.006032383918762207, 0.006182911872863769, 0.006093823909759521, 0.0060928001403808595, 0.006097919940948486, 0.006032383918762207, 0.006073344230651856, 0.006432767868041992, 0.006345727920532227, 0.0063805441856384275, 0.006354944229125976, 0.006391808032989502, 0.006359039783477783, 0.006069248199462891, 0.006464511871337891, 0.006465536117553711, 0.006347775936126709, 0.006089727878570556, 0.00612556791305542, 0.006131711959838867, 0.006106112003326416, 0.006078464031219482, 0.006078464031219482, 0.006435872077941895, 0.00638156795501709, 0.006351871967315674, 0.006094848155975342, 0.006250495910644531, 0.006582272052764892, 0.0063539199829101565, 0.0064440321922302245, 0.006408192157745361, 0.006341631889343262, 0.006406144142150879, 0.006387712001800537, 0.006370304107666015, 0.006050816059112549, 0.0060631041526794435, 0.006080512046813965, 0.006085631847381592, 0.006190080165863037, 0.0060364799499511715, 0.006025216102600098, 0.006078464031219482, 0.006391808032989502, 0.006315008163452148, 0.006369279861450195, 0.006351871967315674, 0.006322175979614258, 0.006049791812896729, 0.006069248199462891, 0.0060928001403808595, 0.00606822395324707, 0.006191103935241699, 0.0060293121337890625, 0.0060590081214904785, 0.006078464031219482 ] }, "throughput": { "unit": "tokens/s", "value": 159.9321893642745 }, "energy": null, "efficiency": null } } }