{ "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.285632, "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.310272, "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.17558056640625, "mean": 7.17558056640625, "stdev": 0.0, "p50": 7.17558056640625, "p90": 7.17558056640625, "p95": 7.17558056640625, "p99": 7.17558056640625, "values": [ 7.17558056640625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0204873151249357e-06, "ram": 5.434399715485938e-07, "gpu": 1.8219459020001137e-06, "total": 3.385873188673643e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1023.373312, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 72, "total": 0.48532812976837153, "mean": 0.006740668469005161, "stdev": 0.0004003455786192956, "p50": 0.006770256042480469, "p90": 0.007184096145629882, "p95": 0.007279088068008423, "p99": 0.007825331649780276, "values": [ 0.007695615768432617, 0.007312704086303711, 0.007175168037414551, 0.006877952098846436, 0.006769216060638428, 0.007029056072235107, 0.007150976181030273, 0.006887487888336182, 0.007083392143249512, 0.0071695041656494145, 0.0068782720565795895, 0.006918111801147461, 0.007124000072479248, 0.00687824010848999, 0.006686816215515137, 0.006668384075164795, 0.006765120029449463, 0.006754975795745849, 0.006984064102172852, 0.006956287860870361, 0.006854112148284912, 0.006779039859771728, 0.006999680042266846, 0.00690828800201416, 0.006713696002960205, 0.0068149762153625485, 0.006954432010650635, 0.006862336158752441, 0.007028512001037598, 0.00712278413772583, 0.007251584053039551, 0.007384191989898681, 0.006852767944335938, 0.0071578240394592286, 0.0071850881576538085, 0.006992095947265625, 0.006885600090026855, 0.00677129602432251, 0.006558144092559814, 0.00723199987411499, 0.008142911911010742, 0.007188704013824463, 0.006941887855529785, 0.006545792102813721, 0.0064477438926696775, 0.006536191940307618, 0.006498655796051025, 0.006558752059936524, 0.006534751892089844, 0.006527488231658936, 0.006527584075927734, 0.006481728076934814, 0.006456319808959961, 0.0064860801696777345, 0.006464288234710693, 0.006203455924987793, 0.006208767890930176, 0.006229887962341309, 0.006243904113769531, 0.006363584041595459, 0.006123904228210449, 0.006150496006011963, 0.00625494384765625, 0.006245120048522949, 0.006206079959869385, 0.006216608047485352, 0.00619926404953003, 0.006268703937530517, 0.006311615943908691, 0.00621504020690918, 0.006238656044006348, 0.006235424041748047 ] }, "throughput": { "unit": "tokens/s", "value": 296.70647788069823 }, "energy": { "unit": "kWh", "cpu": 7.813228893349744e-08, "ram": 4.265637685414928e-08, "gpu": 1.5909186703947316e-07, "total": 2.7988053282711985e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7145906.075701897 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1038.7456, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 72, "total": 0.5122726402282716, "mean": 0.007114897780948214, "stdev": 0.0004383825143026853, "p50": 0.007159087896347046, "p90": 0.00758306884765625, "p95": 0.007764060902595521, "p99": 0.008259952812194826, "values": [ 0.007820799827575683, 0.007558015823364258, 0.007195680141448974, 0.007261695861816406, 0.007119103908538819, 0.007477856159210205, 0.007574399948120117, 0.007457471847534179, 0.007812320232391357, 0.00759830379486084, 0.0072707839012146, 0.007519711971282959, 0.007246335983276367, 0.007263040065765381, 0.00705241584777832, 0.007362880229949951, 0.007162271976470947, 0.007243264198303223, 0.007324448108673096, 0.007338304042816162, 0.0071559038162231445, 0.007463071823120117, 0.007292319774627685, 0.007548799991607666, 0.007162752151489257, 0.007342048168182373, 0.007129536151885986, 0.00746281623840332, 0.007443295955657959, 0.0075840320587158205, 0.007724575996398926, 0.007633984088897705, 0.007495391845703125, 0.0073751678466796875, 0.007505727767944336, 0.007162464141845703, 0.007394207954406738, 0.006895616054534912, 0.006656896114349365, 0.008540703773498535, 0.008145279884338379, 0.007556352138519287, 0.006903232097625733, 0.006859519958496094, 0.0069138240814208985, 0.006846335887908936, 0.00689299201965332, 0.006921760082244873, 0.007103072166442871, 0.0069012799263000486, 0.0068263039588928225, 0.006845888137817383, 0.006843296051025391, 0.006551680088043213, 0.006866015911102295, 0.006588768005371093, 0.006603072166442871, 0.006549920082092285, 0.006606560230255127, 0.00652953577041626, 0.006603487968444824, 0.00654969596862793, 0.006525440216064453, 0.0065414719581604, 0.006598144054412842, 0.006594912052154541, 0.006569695949554443, 0.006523776054382324, 0.006567615985870362, 0.006572288036346435, 0.006584991931915283, 0.006558015823364258 ] }, "throughput": { "unit": "tokens/s", "value": 140.55015697874558 }, "energy": { "unit": "kWh", "cpu": 7.167815518477164e-08, "ram": 3.925379139933694e-08, "gpu": 1.445441002010336e-07, "total": 2.5547604678514217e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3914261.2882256224 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 72, "total": 0.47862966346740715, "mean": 0.0066476342148251, "stdev": 0.000383084249933593, "p50": 0.006656512022018432, "p90": 0.007077273607254028, "p95": 0.007214336037635803, "p99": 0.0077271348619461075, "values": [ 0.00727347183227539, 0.007032832145690918, 0.00669593620300293, 0.006748127937316895, 0.00662937593460083, 0.006958079814910889, 0.007053311824798584, 0.006922239780426025, 0.007275519847869873, 0.007087103843688965, 0.0067593598365783695, 0.007006207942962647, 0.006699007987976074, 0.0067645440101623535, 0.006526976108551025, 0.006866943836212158, 0.006623231887817383, 0.006723584175109864, 0.006751232147216797, 0.006809599876403808, 0.006661119937896728, 0.006939648151397705, 0.006762495994567871, 0.007039999961853028, 0.006651904106140137, 0.006766592025756836, 0.006639616012573242, 0.006924287796020508, 0.006922239780426025, 0.007037951946258545, 0.007165952205657959, 0.007094272136688232, 0.006969344139099121, 0.006863872051239014, 0.007011328220367432, 0.006725632190704346, 0.006851583957672119, 0.006495232105255127, 0.006242303848266601, 0.007950335979461669, 0.007635968208312988, 0.007079936027526855, 0.006500351905822754, 0.006463488101959228, 0.006516736030578613, 0.006412288188934326, 0.006496255874633789, 0.00652185583114624, 0.006677504062652588, 0.006503424167633057, 0.006428671836853027, 0.006444096088409424, 0.006449151992797852, 0.006168575763702393, 0.0064460477828979495, 0.0061972479820251464, 0.006209536075592041, 0.006162432193756104, 0.006149119853973388, 0.006142975807189942, 0.006221824169158936, 0.006166528224945069, 0.006138783931732178, 0.006153247833251953, 0.0062074241638183595, 0.006213632106781006, 0.006184959888458252, 0.006139904022216797, 0.006150144100189209, 0.006178815841674804, 0.006181888103485108, 0.006164447784423828 ] }, "throughput": { "unit": "tokens/s", "value": 150.42945620712226 }, "energy": null, "efficiency": null } } }