{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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, "latency": true, "memory": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.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.2.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1079.390208, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 54, "total": 0.49286595249176035, "mean": 0.00912714726836593, "stdev": 0.0006015273528726767, "p50": 0.009033023834228516, "p90": 0.009301107597351074, "p95": 0.00944636788368225, "p99": 0.01142035133361816, "values": [ 0.013201727867126464, 0.009840640068054199, 0.009297792434692382, 0.009168255805969238, 0.009199392318725587, 0.008966815948486329, 0.009047904014587403, 0.009312640190124512, 0.008997568130493164, 0.00923193645477295, 0.00958364772796631, 0.00907852840423584, 0.009145919799804687, 0.008987648010253906, 0.009217727661132812, 0.00903763198852539, 0.009252448081970215, 0.009272288322448731, 0.008991616249084473, 0.009245984077453613, 0.00902841567993164, 0.009101823806762695, 0.00923078441619873, 0.008957535743713378, 0.008965184211730957, 0.009214143753051757, 0.0092193603515625, 0.009231743812561035, 0.00909011173248291, 0.009117759704589844, 0.008813247680664063, 0.008951968193054199, 0.00862495994567871, 0.009302528381347656, 0.009372447967529297, 0.009139552116394042, 0.009045120239257812, 0.008985055923461913, 0.008911520004272462, 0.008908576011657714, 0.008861056327819824, 0.008837632179260254, 0.008905823707580567, 0.008808927536010742, 0.008792192459106445, 0.008814111709594726, 0.008844287872314453, 0.00883033561706543, 0.008850943565368653, 0.008819199562072754, 0.00873788833618164, 0.008788543701171875, 0.008862784385681152, 0.008822272300720215 ] }, "throughput": { "unit": "tokens/s", "value": 219.12651797915692 }, "energy": { "unit": "kWh", "cpu": 1.0515080733754058e-07, "ram": 5.749073353133976e-08, "gpu": 1.8079660481415965e-07, "total": 3.4343814568304e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5823464.938707785 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1079.390208, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 54, "total": 0.5101862115859984, "mean": 0.00944789280714812, "stdev": 0.0005220306238033638, "p50": 0.009341728210449218, "p90": 0.009729126644134521, "p95": 0.010042864084243772, "p99": 0.011501900682449339, "values": [ 0.01265891170501709, 0.01032595157623291, 0.009644991874694824, 0.009429727554321289, 0.009316479682922364, 0.009385472297668456, 0.009485919952392579, 0.009380000114440918, 0.009471232414245606, 0.010475872039794921, 0.009840096473693848, 0.009505696296691894, 0.009506784439086913, 0.009345600128173828, 0.009327808380126952, 0.009493663787841796, 0.009540384292602538, 0.00945628833770752, 0.009613280296325683, 0.009408384323120118, 0.009337856292724609, 0.00944262409210205, 0.009280447959899902, 0.009326208114624023, 0.009562656402587891, 0.009474399566650391, 0.009583744049072265, 0.009424480438232422, 0.009467328071594238, 0.009265439987182617, 0.009378047943115234, 0.008957759857177734, 0.009286335945129395, 0.00976518440246582, 0.009890432357788087, 0.009199328422546386, 0.009249024391174317, 0.009217535972595215, 0.00928435230255127, 0.00912179183959961, 0.009238271713256837, 0.009181887626647948, 0.009087295532226562, 0.009103039741516113, 0.00907968044281006, 0.009146207809448243, 0.009113727569580078, 0.009167327880859374, 0.009116928100585937, 0.00913379192352295, 0.00927667236328125, 0.009132096290588379, 0.009107135772705078, 0.009174624443054199 ] }, "throughput": { "unit": "tokens/s", "value": 105.84370720669232 }, "energy": { "unit": "kWh", "cpu": 1.0526471666277234e-07, "ram": 5.712961880030109e-08, "gpu": 1.7325338602794467e-07, "total": 3.3564772149101813e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2979314.1319648726 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 53, "total": 0.9790126323699954, "mean": 0.01847193645981123, "stdev": 0.00047458169299913655, "p50": 0.018456575393676757, "p90": 0.018977996063232423, "p95": 0.019396160507202147, "p99": 0.01995485153198242, "values": [ 0.02021683120727539, 0.01900339126586914, 0.01864089584350586, 0.018566272735595704, 0.018380672454833984, 0.018551807403564453, 0.018745344161987306, 0.01843404769897461, 0.019713024139404296, 0.019530752182006835, 0.018619392395019533, 0.018704383850097657, 0.018363391876220703, 0.018573312759399413, 0.018496511459350586, 0.018876415252685547, 0.018786304473876952, 0.0186060791015625, 0.018694143295288086, 0.01841766357421875, 0.018524160385131837, 0.01860915184020996, 0.018304000854492186, 0.018559999465942383, 0.018709503173828124, 0.018830368041992188, 0.018699392318725586, 0.018561887741088866, 0.018472959518432617, 0.01821286392211914, 0.018045087814331055, 0.0178768310546875, 0.019051584243774414, 0.019306432723999022, 0.018456575393676757, 0.01834297561645508, 0.018193344116210937, 0.01826304054260254, 0.018068479537963866, 0.018118656158447266, 0.018051071166992186, 0.018018304824829103, 0.017932287216186525, 0.017913856506347657, 0.017979391098022462, 0.01798860740661621, 0.018019327163696287, 0.017993728637695314, 0.01797324752807617, 0.01803878402709961, 0.017949695587158202, 0.018013248443603514, 0.01801315116882324 ] }, "throughput": { "unit": "tokens/s", "value": 54.136175824103034 }, "energy": null, "efficiency": null } } }