{ "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.457728, "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.1364404296875, "mean": 7.1364404296875, "stdev": 0.0, "p50": 7.1364404296875, "p90": 7.1364404296875, "p95": 7.1364404296875, "p99": 7.1364404296875, "values": [ 7.1364404296875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.711603323618571e-07, "ram": 5.167268445140394e-07, "gpu": 1.6736124499976135e-06, "total": 3.1614996268735098e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1032.986624, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 74, "total": 0.4872520308494567, "mean": 0.006584486903371037, "stdev": 0.000347470022328655, "p50": 0.0065933759212493896, "p90": 0.007042751932144165, "p95": 0.007104641675949097, "p99": 0.0072592076587676985, "values": [ 0.007178751945495605, 0.007476736068725586, 0.007116767883300781, 0.007024288177490234, 0.006952735900878906, 0.006943071842193603, 0.00672540807723999, 0.006822144031524658, 0.006653567790985107, 0.007089695930480957, 0.006778175830841064, 0.0067431039810180666, 0.006678688049316406, 0.007045343875885009, 0.006854207992553711, 0.00685865592956543, 0.0068763837814331055, 0.006986336231231689, 0.00705734395980835, 0.00710371208190918, 0.0070367040634155276, 0.007106368064880371, 0.00666326379776001, 0.006710432052612305, 0.006581664085388184, 0.006741471767425537, 0.006593023777008057, 0.006652768135070801, 0.006593728065490722, 0.0066720318794250486, 0.006833407878875732, 0.006786592006683349, 0.0066386241912841796, 0.006744671821594239, 0.0066958718299865725, 0.006553184032440185, 0.006400608062744141, 0.006529952049255371, 0.006240767955780029, 0.006288735866546631, 0.006948063850402832, 0.00702291202545166, 0.007032864093780518, 0.006601696014404297, 0.006424352169036866, 0.006432640075683594, 0.006471072196960449, 0.006443391799926758, 0.0063992319107055665, 0.006441535949707031, 0.006451839923858642, 0.006406527996063232, 0.006420544147491455, 0.0063851518630981445, 0.006421567916870118, 0.006416255950927734, 0.006367712020874023, 0.006395008087158203, 0.006373888015747071, 0.006110879898071289, 0.006083744049072266, 0.00610207986831665, 0.006097983837127685, 0.006095071792602539, 0.006080031871795654, 0.006095615863800049, 0.00609225606918335, 0.0060928001403808595, 0.006098080158233643, 0.0060813121795654295, 0.006067103862762451, 0.006077216148376465, 0.006100736141204834, 0.006091872215270996 ] }, "throughput": { "unit": "tokens/s", "value": 303.74424451752907 }, "energy": { "unit": "kWh", "cpu": 7.59681543478599e-08, "ram": 4.153548817441605e-08, "gpu": 1.5282953821795594e-07, "total": 2.703331807402319e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7398277.91218066 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1049.16992, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 74, "total": 0.5142934718132018, "mean": 0.0069499117812594855, "stdev": 0.00037297698420193313, "p50": 0.006964240074157715, "p90": 0.007462828969955444, "p95": 0.007543043065071106, "p99": 0.00763601014137268, "values": [ 0.0073248958587646485, 0.007651264190673828, 0.007426176071166992, 0.007464288234710693, 0.007224864006042481, 0.007402368068695068, 0.0071121277809143065, 0.007156896114349365, 0.007208223819732666, 0.007585375785827637, 0.0071691198348999025, 0.007109536170959473, 0.007222239971160889, 0.007459424018859863, 0.007250368118286133, 0.007361824035644531, 0.007392831802368164, 0.0074767999649047855, 0.007552320003509521, 0.007538047790527344, 0.0073842558860778805, 0.0076303682327270505, 0.0071244797706604005, 0.00692412805557251, 0.0069749121665954586, 0.007153439998626709, 0.0069931201934814455, 0.007018144130706787, 0.00703711986541748, 0.007145343780517578, 0.007205535888671875, 0.007193471908569336, 0.0070886721611022946, 0.00693609619140625, 0.0070986242294311525, 0.006756447792053223, 0.006994559764862061, 0.0065912318229675295, 0.006460576057434082, 0.006953567981719971, 0.00728223991394043, 0.007468224048614502, 0.0070785279273986815, 0.006812640190124512, 0.006847263813018799, 0.006785568237304688, 0.006787807941436768, 0.006861279964447022, 0.006771743774414063, 0.0067422399520874025, 0.006764992237091065, 0.00676358413696289, 0.0067132158279418945, 0.006770815849304199, 0.006792448043823242, 0.006715712070465088, 0.006735360145568848, 0.006785408020019531, 0.006774623870849609, 0.006391392230987549, 0.006492159843444824, 0.006402336120605469, 0.006407551765441895, 0.00639737606048584, 0.006433343887329102, 0.006426176071166992, 0.006384223937988281, 0.006416224002838135, 0.006394591808319092, 0.006414783954620361, 0.0064102401733398436, 0.006400800228118896, 0.006389344215393066, 0.006526144027709961 ] }, "throughput": { "unit": "tokens/s", "value": 143.88671848993985 }, "energy": { "unit": "kWh", "cpu": 7.301664377889066e-08, "ram": 3.991966793281957e-08, "gpu": 1.4382000465701944e-07, "total": 2.567563163687297e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3894743.522351724 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 74, "total": 0.4805191688537598, "mean": 0.006493502281807564, "stdev": 0.0003141902816047491, "p50": 0.006492159843444824, "p90": 0.0069390335083007815, "p95": 0.007005747294425964, "p99": 0.007065948190689087, "values": [ 0.006799359798431396, 0.007054336071014404, 0.006908927917480469, 0.00694271993637085, 0.006734879970550537, 0.0068853759765625, 0.0066007041931152345, 0.006662144184112549, 0.006677504062652588, 0.007041024208068848, 0.006667263984680176, 0.006588384151458741, 0.0066744318008422855, 0.00695091199874878, 0.006758399963378906, 0.006852608203887939, 0.006880256175994873, 0.006930431842803955, 0.007014400005340577, 0.007001088142395019, 0.0068577280044555666, 0.007097343921661377, 0.006592512130737305, 0.006440959930419922, 0.006494207859039307, 0.006644768238067627, 0.006503424167633057, 0.006524928092956543, 0.006529024124145508, 0.0066007041931152345, 0.006673408031463623, 0.00667852783203125, 0.006585343837738037, 0.006434815883636475, 0.006622208118438721, 0.006344704151153564, 0.006509568214416504, 0.006198272228240966, 0.006064127922058105, 0.006490111827850342, 0.006788095951080322, 0.00694271993637085, 0.006633471965789795, 0.00638976001739502, 0.006454239845275879, 0.006391808032989502, 0.006371327877044678, 0.006468607902526856, 0.006368256092071533, 0.0063508481979370115, 0.006372352123260498, 0.006369279861450195, 0.0063201279640197755, 0.006376448154449463, 0.006395904064178467, 0.006322175979614258, 0.006325247764587402, 0.006388735771179199, 0.00637440013885498, 0.006015999794006348, 0.006115327835083008, 0.006007808208465576, 0.006033408164978027, 0.006024191856384278, 0.006052864074707031, 0.006050816059112549, 0.006008831977844238, 0.006041600227355957, 0.006020095825195313, 0.006012928009033203, 0.00603545618057251, 0.00602623987197876, 0.006014976024627685, 0.006142975807189942 ] }, "throughput": { "unit": "tokens/s", "value": 154.0000998847166 }, "energy": null, "efficiency": null } } }