{ "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.154624, "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.16651318359375, "mean": 7.16651318359375, "stdev": 0.0, "p50": 7.16651318359375, "p90": 7.16651318359375, "p95": 7.16651318359375, "p99": 7.16651318359375, "values": [ 7.16651318359375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.754386213090686e-07, "ram": 5.186752552003782e-07, "gpu": 1.7380569460000422e-06, "total": 3.232170822509489e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1033.05216, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.48695853042602527, "mean": 0.006670664800356512, "stdev": 0.00023117277883595688, "p50": 0.006693120002746582, "p90": 0.006925497531890869, "p95": 0.006939251232147217, "p99": 0.007241334896087646, "values": [ 0.007505695819854736, 0.00687014389038086, 0.0068139519691467285, 0.0068512001037597655, 0.006626880168914795, 0.006865824222564697, 0.006840320110321045, 0.006921023845672608, 0.006678016185760498, 0.00690550422668457, 0.00683350419998169, 0.006833248138427735, 0.0068221759796142575, 0.006853951930999756, 0.006633279800415039, 0.006739136219024658, 0.006752799987792968, 0.006725183963775635, 0.00693068790435791, 0.006931583881378173, 0.006683616161346435, 0.006881152153015137, 0.006736800193786621, 0.006832479953765869, 0.0067103362083435055, 0.006838208198547364, 0.006693120002746582, 0.006713759899139404, 0.006676767826080322, 0.006797632217407226, 0.006947487831115723, 0.0069259839057922365, 0.0069235520362854, 0.006663519859313965, 0.006696415901184082, 0.0065484800338745115, 0.006502399921417237, 0.006461023807525635, 0.0062280001640319825, 0.006297632217407227, 0.006893375873565674, 0.007138527870178222, 0.006933760166168213, 0.006775360107421875, 0.006653952121734619, 0.006707839965820313, 0.006519455909729004, 0.006466944217681885, 0.006434112071990967, 0.006477536201477051, 0.006370975971221924, 0.006487872123718262, 0.006227263927459717, 0.006196320056915283, 0.006568511962890625, 0.006435200214385987, 0.006570879936218262, 0.007048064231872558, 0.006709824085235596, 0.006725247859954834, 0.006496352195739746, 0.006420127868652344, 0.006412928104400635, 0.00643936014175415, 0.006500895977020264, 0.006564576148986817, 0.006546495914459228, 0.006454207897186279, 0.006424992084503174, 0.0064356160163879395, 0.006416800022125244, 0.006389696121215821, 0.006422976016998291 ] }, "throughput": { "unit": "tokens/s", "value": 299.82019181852917 }, "energy": { "unit": "kWh", "cpu": 7.701735260854725e-08, "ram": 4.203629289587259e-08, "gpu": 1.5580099044156264e-07, "total": 2.7485463594598247e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7276573.644524819 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1048.694784, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5136377935409546, "mean": 0.007036134158095269, "stdev": 0.0002229846489006974, "p50": 0.007081984043121338, "p90": 0.007291398525238037, "p95": 0.007358092975616455, "p99": 0.00744303092956543, "values": [ 0.007350048065185547, 0.007204800128936767, 0.007185408115386963, 0.007119232177734375, 0.007085184097290039, 0.00720911979675293, 0.007239007949829101, 0.007107999801635742, 0.007357056140899658, 0.007254720211029053, 0.0072687997817993165, 0.0071562561988830565, 0.007218783855438233, 0.0070562238693237305, 0.007069791793823242, 0.007021440029144287, 0.007166848182678222, 0.007285696029663086, 0.0072914881706237795, 0.0071636161804199214, 0.007127967834472657, 0.00735964822769165, 0.007201280117034912, 0.007050399780273438, 0.007121088027954102, 0.007258399963378907, 0.007081984043121338, 0.007107232093811035, 0.007092735767364502, 0.007391071796417236, 0.0072358078956604, 0.00722649621963501, 0.0071701760292053225, 0.007161888122558593, 0.007099647998809814, 0.006786015987396241, 0.007113024234771729, 0.006535552024841309, 0.006594048023223877, 0.00699619197845459, 0.007361504077911377, 0.0075766401290893555, 0.007297311782836914, 0.0069342398643493655, 0.007009215831756592, 0.0068919358253479, 0.006795423984527588, 0.006935808181762695, 0.006864352226257324, 0.006799680233001709, 0.0071785922050476075, 0.0068204479217529295, 0.006494463920593262, 0.006549824237823487, 0.006844799995422363, 0.006931903839111328, 0.0068146238327026366, 0.006942336082458496, 0.007291039943695068, 0.00688640022277832, 0.0069616961479187014, 0.0067729601860046385, 0.007014111995697021, 0.00688812780380249, 0.006814176082611084, 0.006780511856079101, 0.006778528213500976, 0.006810239791870117, 0.006804416179656983, 0.006840832233428955, 0.006815999984741211, 0.006819647789001465, 0.006793824195861817 ] }, "throughput": { "unit": "tokens/s", "value": 142.12349814982878 }, "energy": { "unit": "kWh", "cpu": 7.349793320061694e-08, "ram": 4.02566368944701e-08, "gpu": 1.522970056850143e-07, "total": 2.660515757801012e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3758669.713072953 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.4794173121452333, "mean": 0.00656736044034566, "stdev": 0.00018064521715054, "p50": 0.006590464115142822, "p90": 0.006775987148284912, "p95": 0.006846464061737061, "p99": 0.006908559455871582, "values": [ 0.006838272094726563, 0.006669312000274658, 0.00667855978012085, 0.006615039825439453, 0.006590464115142822, 0.006661119937896728, 0.006723584175109864, 0.006623231887817383, 0.006813695907592773, 0.006726655960083008, 0.006746111869812011, 0.006650879859924317, 0.006707200050354004, 0.00657919979095459, 0.006574079990386963, 0.0065382399559021, 0.006664224147796631, 0.006718463897705078, 0.0067573761940002445, 0.006661087989807129, 0.006597631931304931, 0.00684441614151001, 0.006673408031463623, 0.006567935943603515, 0.006597631931304931, 0.006760447978973389, 0.00657203197479248, 0.006598656177520752, 0.006591487884521485, 0.006854656219482422, 0.0067010560035705566, 0.006722559928894043, 0.0066416640281677245, 0.0066416640281677245, 0.006618112087249756, 0.006345727920532227, 0.006643712043762207, 0.006144000053405762, 0.006181888103485108, 0.006500351905822754, 0.006852608203887939, 0.007047167778015137, 0.006779871940612793, 0.0065064640045166015, 0.00652185583114624, 0.006492159843444824, 0.006393856048583985, 0.006499328136444092, 0.006461440086364746, 0.006396927833557129, 0.006758399963378906, 0.0064204797744750975, 0.006096896171569824, 0.006155295848846436, 0.006433792114257812, 0.006512639999389648, 0.006406144142150879, 0.006524928092956543, 0.006849535942077637, 0.0064767999649047855, 0.0065484800338745115, 0.0063539199829101565, 0.0066078720092773435, 0.006479872226715088, 0.00638156795501709, 0.0063805441856384275, 0.006375423908233643, 0.006387712001800537, 0.006392831802368164, 0.006412288188934326, 0.006384640216827392, 0.006404064178466797, 0.006385663986206055 ] }, "throughput": { "unit": "tokens/s", "value": 152.26817670256682 }, "energy": null, "efficiency": null } } }