{ "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.43.2", "transformers_commit": null, "accelerate_version": "0.33.0", "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": 719.990784, "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.2098232421875, "mean": 7.2098232421875, "stdev": 0.0, "p50": 7.2098232421875, "p90": 7.2098232421875, "p95": 7.2098232421875, "p99": 7.2098232421875, "values": [ 7.2098232421875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0128483176231385e-06, "ram": 5.389801364858235e-07, "gpu": 1.765279190000038e-06, "total": 3.317107644109e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1024.28672, "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.49124499559402457, "mean": 0.006463749942026639, "stdev": 0.00022535617788066844, "p50": 0.006352752208709717, "p90": 0.00667899203300476, "p95": 0.0067142159938812255, "p99": 0.00745577621459961, "values": [ 0.007404032230377197, 0.007611008167266846, 0.006517920017242431, 0.00634822416305542, 0.006374879837036133, 0.006516511917114258, 0.0065608639717102055, 0.006760928153991699, 0.0066967039108276364, 0.0066408319473266605, 0.006679456233978271, 0.006627999782562256, 0.006702816009521485, 0.006339680194854736, 0.0063211841583251955, 0.006321248054504395, 0.006356031894683838, 0.006340415954589844, 0.006310336112976074, 0.006658912181854248, 0.006365024089813233, 0.006308032035827637, 0.006319136142730713, 0.006325888156890869, 0.006352000236511231, 0.006427296161651611, 0.006650559902191162, 0.00632863998413086, 0.006748415946960449, 0.006672639846801758, 0.006591872215270996, 0.006689504146575927, 0.0063515200614929195, 0.006299200057983398, 0.006299456119537353, 0.006255392074584961, 0.00635097599029541, 0.006301792144775391, 0.006311520099639893, 0.006331840038299561, 0.006321695804595948, 0.006297632217407227, 0.006375103950500488, 0.0066360321044921875, 0.006596640110015869, 0.006609280109405518, 0.0063385281562805176, 0.006604767799377441, 0.0065437121391296385, 0.006536896228790283, 0.006494527816772461, 0.00667852783203125, 0.006375584125518799, 0.006414271831512451, 0.006670623779296875, 0.006325632095336914, 0.006317759990692139, 0.006352000236511231, 0.0063506879806518556, 0.006331488132476807, 0.006367392063140869, 0.00637011194229126, 0.006373663902282715, 0.006334688186645508, 0.006339136123657226, 0.006668416023254395, 0.006334335803985596, 0.006315296173095703, 0.006351424217224121, 0.006353504180908203, 0.006326367855072021, 0.006295648097991944, 0.006342912197113037, 0.0063203201293945315, 0.006309855937957764, 0.006299839973449707 ] }, "throughput": { "unit": "tokens/s", "value": 309.41791033656875 }, "energy": { "unit": "kWh", "cpu": 8.028041090335215e-08, "ram": 4.3737991500588145e-08, "gpu": 1.5493818701351234e-07, "total": 2.7895658941745264e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7169574.320422459 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1039.929344, "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.5149352622032165, "mean": 0.006775463976358113, "stdev": 0.00018614826436813767, "p50": 0.006676639795303345, "p90": 0.006996255874633789, "p95": 0.007029752016067505, "p99": 0.007180336117744446, "values": [ 0.00748364782333374, 0.00695420789718628, 0.006659359931945801, 0.0066588158607482914, 0.0068578882217407225, 0.006624192237854004, 0.007074079990386963, 0.007001183986663819, 0.007079232215881348, 0.007003520011901855, 0.00699132776260376, 0.007005023956298828, 0.00693500804901123, 0.00666707181930542, 0.006763264179229737, 0.006637983798980713, 0.006601312160491943, 0.006632736206054687, 0.006891263961791992, 0.006977503776550293, 0.006623583793640137, 0.006625792026519775, 0.0066089601516723636, 0.0069051837921142575, 0.0066557760238647465, 0.006981344223022461, 0.006913599967956543, 0.006624767780303955, 0.006980864048004151, 0.006953983783721924, 0.0069567360877990725, 0.006912864208221435, 0.00668620777130127, 0.006636991977691651, 0.006596127986907959, 0.006899360179901123, 0.006637728214263916, 0.006620863914489746, 0.006654047966003418, 0.006592415809631348, 0.0066146240234375, 0.006700128078460693, 0.006988831996917725, 0.006968063831329346, 0.00696566390991211, 0.006943903923034668, 0.006791007995605469, 0.006840288162231445, 0.006768352031707764, 0.006847519874572754, 0.007028800010681152, 0.006929215908050537, 0.00661516809463501, 0.0069549760818481444, 0.006926303863525391, 0.006598879814147949, 0.006594304084777832, 0.006577727794647217, 0.006611551761627197, 0.0067153282165527345, 0.006634367942810059, 0.006577600002288819, 0.006615488052368164, 0.006613279819488525, 0.007032608032226563, 0.006942495822906494, 0.0066191678047180175, 0.0065742721557617186, 0.006631231784820556, 0.006569215774536133, 0.006608320236206055, 0.0066200637817382816, 0.006568672180175782, 0.006569695949554443, 0.006611551761627197, 0.006600768089294434 ] }, "throughput": { "unit": "tokens/s", "value": 147.59136842721597 }, "energy": { "unit": "kWh", "cpu": 7.789281022560608e-08, "ram": 4.2742595107583006e-08, "gpu": 1.484805742398394e-07, "total": 2.691159795730284e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3715870.018519788 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 76, "total": 0.4844215993881226, "mean": 0.006373968413001614, "stdev": 0.0001686444306707169, "p50": 0.006288895845413207, "p90": 0.006587903976440429, "p95": 0.006626304149627686, "p99": 0.006731008052825928, "values": [ 0.006903808116912841, 0.006540287971496582, 0.006247456073760986, 0.006270976066589356, 0.006459392070770263, 0.006232063770294189, 0.006643712043762207, 0.006593535900115967, 0.006673408031463623, 0.006601727962493896, 0.006542304039001465, 0.006606847763061524, 0.006527967929840088, 0.006280191898345947, 0.00637440013885498, 0.006252543926239014, 0.00620851182937622, 0.006245376110076905, 0.006479872226715088, 0.006568960189819336, 0.006240287780761719, 0.00624128007888794, 0.00622489595413208, 0.006499328136444092, 0.0062638077735900875, 0.00658022403717041, 0.0065064959526062015, 0.006238207817077636, 0.0065771517753601075, 0.00652288007736206, 0.006555647850036621, 0.006512639999389648, 0.0062975997924804685, 0.006254591941833496, 0.006214655876159668, 0.006495232105255127, 0.006253568172454834, 0.006235136032104492, 0.006269951820373535, 0.006209536075592041, 0.006210559844970703, 0.006313983917236328, 0.006582272052764892, 0.006543424129486084, 0.006564864158630371, 0.00653926420211792, 0.006305791854858398, 0.006445055961608887, 0.00637337589263916, 0.006451200008392334, 0.006626304149627686, 0.006498303890228272, 0.006231040000915527, 0.006553599834442139, 0.006492159843444824, 0.006213632106781006, 0.006211584091186524, 0.00619212818145752, 0.006202303886413575, 0.00632422399520874, 0.0062494721412658695, 0.006194176197052002, 0.006198272228240966, 0.0062269439697265625, 0.006626304149627686, 0.006508543968200684, 0.00623308801651001, 0.0061910719871521, 0.006242303848266601, 0.00617574405670166, 0.006214655876159668, 0.0062269439697265625, 0.006182911872863769, 0.006184959888458252, 0.006227968215942382, 0.00621670389175415 ] }, "throughput": { "unit": "tokens/s", "value": 156.88813235412354 }, "energy": null, "efficiency": null } } }