{ "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.293824, "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.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 721.125376, "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.2317001953125, "mean": 7.2317001953125, "stdev": 0.0, "p50": 7.2317001953125, "p90": 7.2317001953125, "p95": 7.2317001953125, "p99": 7.2317001953125, "values": [ 7.2317001953125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0637233654658002e-06, "ram": 5.246578506317215e-07, "gpu": 1.8161125639945541e-06, "total": 3.404493780092076e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1024.290816, "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.4921163196563722, "mean": 0.006741319447347562, "stdev": 0.00035700308323350787, "p50": 0.00679369592666626, "p90": 0.007023590278625489, "p95": 0.007135340976715088, "p99": 0.007905277519226076, "values": [ 0.0076531519889831544, 0.00708892822265625, 0.006896448135375976, 0.006929887771606445, 0.006838304042816162, 0.006944032192230225, 0.006921247959136963, 0.007016448020935059, 0.007169248104095459, 0.006891615867614746, 0.006954432010650635, 0.00696454381942749, 0.006903903961181641, 0.006862239837646484, 0.006708799839019775, 0.006743711948394775, 0.006825791835784912, 0.006818240165710449, 0.006941088199615478, 0.007025375843048096, 0.006999680042266846, 0.006858816146850586, 0.006942560195922851, 0.006874271869659424, 0.0066341118812561035, 0.0068146238327026366, 0.007007328033447266, 0.006815904140472412, 0.006821375846862793, 0.00679369592666626, 0.0069613118171691895, 0.007112736225128174, 0.006975552082061767, 0.0069519681930542, 0.008553600311279297, 0.007055871963500977, 0.006865632057189941, 0.006787487983703613, 0.0063712320327758785, 0.006393983840942383, 0.006922239780426025, 0.006910240173339844, 0.0071990079879760745, 0.006582719802856445, 0.0065502400398254395, 0.006534560203552246, 0.006555391788482666, 0.006553343772888184, 0.006549439907073975, 0.006548543930053711, 0.006497663974761963, 0.00627888011932373, 0.006511551856994629, 0.006540128231048584, 0.006522784233093262, 0.006519711971282959, 0.006572768211364746, 0.006748415946960449, 0.006543935775756836, 0.006487328052520752, 0.0065352959632873535, 0.006530911922454834, 0.006519360065460205, 0.006258592128753662, 0.006270463943481445, 0.006336031913757324, 0.006272799968719482, 0.006241536140441895, 0.0062596797943115234, 0.006281727790832519, 0.00632531213760376, 0.006248991966247558, 0.006217535972595215 ] }, "throughput": { "unit": "tokens/s", "value": 296.677826295106 }, "energy": { "unit": "kWh", "cpu": 7.904377138173138e-08, "ram": 4.3218016935307765e-08, "gpu": 1.558464209733268e-07, "total": 2.781082092903659e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7191445.391357899 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1039.93344, "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.5123250885009765, "mean": 0.0070181518972736515, "stdev": 0.00030582478893442425, "p50": 0.007070335865020752, "p90": 0.007335379219055175, "p95": 0.007522451210021972, "p99": 0.0076881354904174805, "values": [ 0.007764927864074707, 0.007502880096435547, 0.007198048114776611, 0.007262368202209473, 0.007016863822937012, 0.007190911769866943, 0.0072878398895263674, 0.007658271789550781, 0.007070335865020752, 0.0073883838653564455, 0.007238848209381104, 0.0071363520622253415, 0.007224448204040527, 0.007223999977111816, 0.007127583980560303, 0.0070967040061950684, 0.007090464115142823, 0.007149951934814453, 0.007341248035430908, 0.007283135890960694, 0.007142496109008789, 0.007187263965606689, 0.007137152194976806, 0.007309792041778565, 0.007023327827453614, 0.0071485438346862796, 0.00713427209854126, 0.0071868162155151365, 0.007109536170959473, 0.007188032150268555, 0.0073119039535522465, 0.007303904056549073, 0.007300447940826416, 0.007219295978546142, 0.007644000053405761, 0.007404352188110351, 0.007272287845611573, 0.006776544094085693, 0.006573567867279053, 0.0069391999244689945, 0.007178656101226807, 0.007551807880401612, 0.006946208000183106, 0.006876255989074707, 0.006868095874786377, 0.00689462423324585, 0.006834943771362304, 0.006837279796600342, 0.006820576190948486, 0.006848000049591065, 0.006895296096801758, 0.0067411518096923825, 0.006698880195617676, 0.006842624187469482, 0.0068484158515930175, 0.006875296115875244, 0.006787775993347168, 0.006914559841156006, 0.006722176074981689, 0.006903776168823242, 0.006880864143371582, 0.007016191959381104, 0.006793087959289551, 0.006464831829071045, 0.006460063934326172, 0.0065372161865234375, 0.0065378880500793456, 0.006509759902954102, 0.0066078720092773435, 0.006521279811859131, 0.006475488185882569, 0.006522367954254151, 0.006545472145080567 ] }, "throughput": { "unit": "tokens/s", "value": 142.48765410570138 }, "energy": { "unit": "kWh", "cpu": 7.600187333573973e-08, "ram": 4.15496688849998e-08, "gpu": 1.4507734068896039e-07, "total": 2.626288829096999e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3807654.3178376593 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.47883874988555886, "mean": 0.006559434929939166, "stdev": 0.0002546942068204998, "p50": 0.006586368083953857, "p90": 0.006806732654571533, "p95": 0.007002726364135742, "p99": 0.00716394495010376, "values": [ 0.0072325119972229, 0.0069847040176391605, 0.006693984031677246, 0.006754303932189941, 0.006540287971496582, 0.00667852783203125, 0.0067573761940002445, 0.007137279987335205, 0.00658739185333252, 0.006859776020050049, 0.0067338237762451176, 0.0066375679969787596, 0.006717440128326416, 0.006715392112731934, 0.006645760059356689, 0.006606847763061524, 0.006585343837738037, 0.0066466560363769535, 0.006809599876403808, 0.0067717118263244626, 0.006651904106140137, 0.006647808074951172, 0.006643712043762207, 0.006766592025756836, 0.0065382399559021, 0.006586368083953857, 0.006654975891113281, 0.006625279903411865, 0.006618112087249756, 0.006651904106140137, 0.006795263767242431, 0.006771647930145263, 0.006782976150512696, 0.0066979842185974124, 0.007113728046417236, 0.006884352207183838, 0.006774752140045166, 0.006356031894683838, 0.006180863857269287, 0.006508543968200684, 0.006732800006866455, 0.007029759883880615, 0.006542335987091064, 0.00648089599609375, 0.006426623821258545, 0.006481919765472412, 0.00643891191482544, 0.00643891191482544, 0.00642252779006958, 0.006452223777770996, 0.006489088058471679, 0.006347775936126709, 0.006304800033569336, 0.0064440321922302245, 0.006446080207824707, 0.006472703933715821, 0.006395904064178467, 0.0065177597999572755, 0.006333439826965332, 0.006503424167633057, 0.0064839677810668945, 0.006595583915710449, 0.00638259220123291, 0.006089727878570556, 0.00608358383178711, 0.006149119853973388, 0.006155263900756836, 0.006113279819488526, 0.006223872184753418, 0.006137856006622314, 0.006093823909759521, 0.006131711959838867, 0.006149119853973388 ] }, "throughput": { "unit": "tokens/s", "value": 152.452156425199 }, "energy": null, "efficiency": null } } }