{ "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", "library": "transformers", "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": {}, "hub_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, "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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1075.351552, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 55, "total": 0.49562047767639167, "mean": 0.009011281412298029, "stdev": 0.0004077791202767619, "p50": 0.009090751647949218, "p90": 0.009589907455444335, "p95": 0.009663158226013184, "p99": 0.00977921751022339, "values": [ 0.009795616149902344, 0.009662495613098145, 0.009343040466308595, 0.00922486400604248, 0.009297151565551758, 0.009121088027954102, 0.009765248298645019, 0.009664704322814941, 0.009259200096130371, 0.009562047958374023, 0.009617055892944336, 0.009166848182678223, 0.00938758373260498, 0.009090751647949218, 0.00918627166748047, 0.00906287956237793, 0.009178367614746094, 0.009540927886962891, 0.009084671974182128, 0.00960848045349121, 0.009281536102294922, 0.00904905605316162, 0.009226495742797852, 0.008970784187316895, 0.009168319702148438, 0.009193120002746582, 0.009191743850708008, 0.009137855529785157, 0.009197407722473145, 0.00900806427001953, 0.009046751976013184, 0.008896127700805664, 0.00884108829498291, 0.009484160423278808, 0.009101823806762695, 0.009145088195800781, 0.008787199974060059, 0.008687647819519043, 0.008669695854187011, 0.008630144119262695, 0.008616640090942382, 0.008581727981567382, 0.008475935935974122, 0.008462688446044923, 0.008551199913024903, 0.008667455673217774, 0.00863548755645752, 0.008434271812438965, 0.008429856300354003, 0.008366335868835449, 0.008475872039794921, 0.008407103538513183, 0.008385824203491212, 0.008389439582824707, 0.008407232284545898 ] }, "throughput": { "unit": "tokens/s", "value": 221.9440175589818 }, "energy": { "unit": "kWh", "cpu": 1.0291321266100603e-07, "ram": 5.626872123052042e-08, "gpu": 1.83632997147851e-07, "total": 3.428149310393775e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5834051.608943106 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1075.351552, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 55, "total": 0.5142438077926637, "mean": 0.009349887414412065, "stdev": 0.00046322950416450393, "p50": 0.009332736015319825, "p90": 0.009972742652893066, "p95": 0.0101332444190979, "p99": 0.01020348684310913, "values": [ 0.00960092830657959, 0.009958304405212403, 0.009668479919433594, 0.009569631576538087, 0.009962528228759766, 0.009416768074035645, 0.010195008277893066, 0.010122271537780761, 0.009739551544189453, 0.009929151535034179, 0.009602815628051757, 0.009594655990600586, 0.009979552268981933, 0.009621600151062011, 0.009332736015319825, 0.00937622356414795, 0.010158847808837891, 0.01009875202178955, 0.009267231941223145, 0.01021343994140625, 0.009529184341430665, 0.00955174446105957, 0.009687264442443848, 0.009325887680053711, 0.009583840370178223, 0.009317824363708496, 0.009754176139831544, 0.009518560409545898, 0.0093503999710083, 0.009279295921325684, 0.009087936401367187, 0.00921827220916748, 0.009271967887878417, 0.009927071571350098, 0.009464351654052735, 0.009086976051330567, 0.008982303619384766, 0.00900271987915039, 0.00925324821472168, 0.008946880340576172, 0.009030879974365235, 0.008906432151794434, 0.008714688301086427, 0.008663392066955567, 0.008940511703491211, 0.008937215805053711, 0.008824735641479493, 0.008702848434448242, 0.00869279956817627, 0.008759615898132324, 0.008675904273986816, 0.008566399574279786, 0.00872118377685547, 0.008738207817077636, 0.008820608139038085 ] }, "throughput": { "unit": "tokens/s", "value": 106.953159506347 }, "energy": { "unit": "kWh", "cpu": 9.746542275431842e-08, "ram": 5.32939440262967e-08, "gpu": 1.7167284265213568e-07, "total": 3.2243220943275064e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3101427.1240434772 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9923133411407471, "mean": 0.018376172984087908, "stdev": 0.0008511420126555507, "p50": 0.018517503738403322, "p90": 0.01945282516479492, "p95": 0.01980723190307617, "p99": 0.019907696704864503, "values": [ 0.019687423706054686, 0.01903718376159668, 0.01881292724609375, 0.019346431732177736, 0.01858252716064453, 0.01980723190307617, 0.019969024658203126, 0.01903411293029785, 0.01946419143676758, 0.019326976776123047, 0.01881395149230957, 0.01939967918395996, 0.0187064323425293, 0.01860710334777832, 0.01843302345275879, 0.01919692802429199, 0.01980723190307617, 0.01845248031616211, 0.019853311538696287, 0.01884774398803711, 0.01859686470031738, 0.018988031387329102, 0.018320383071899413, 0.018732032775878905, 0.01861324882507324, 0.018940927505493164, 0.01864499282836914, 0.018663423538208008, 0.0182968635559082, 0.018197471618652344, 0.018191360473632814, 0.018107391357421874, 0.01942630386352539, 0.018589696884155273, 0.018323455810546875, 0.01785036849975586, 0.017693695068359376, 0.017978368759155275, 0.0175994873046875, 0.017670143127441407, 0.017514495849609374, 0.017228799819946287, 0.017150976181030272, 0.017508352279663086, 0.01761689567565918, 0.017497119903564454, 0.017174495697021484, 0.017135616302490234, 0.017150976181030272, 0.01719193649291992, 0.01699542427062988, 0.017102752685546875, 0.01717353630065918, 0.01726153564453125 ] }, "throughput": { "unit": "tokens/s", "value": 54.41829486835528 }, "energy": null, "efficiency": null } } }