{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+cu124", "_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.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.225-213.878.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.5.0", "optimum_benchmark_commit": null, "transformers_version": "4.45.2", "transformers_commit": null, "accelerate_version": "1.0.0", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.13.0", "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 803.96288, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "values": [ 0.07822950744628906 ], "count": 1, "total": 0.07822950744628906, "mean": 0.07822950744628906, "p50": 0.07822950744628906, "p90": 0.07822950744628906, "p95": 0.07822950744628906, "p99": 0.07822950744628906, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1224.454144, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.410496 }, "latency": { "unit": "s", "values": [ 0.007252287864685058, 0.007029632091522217, 0.0069820799827575684, 0.007062975883483887, 0.0070730881690979006, 0.007036863803863525, 0.007204895973205567, 0.0075268478393554685, 0.007709343910217285, 0.008725503921508788, 0.007638016223907471, 0.007427711963653564, 0.007614975929260254, 0.007288352012634277, 0.007145952224731445, 0.0071521601676940915, 0.007079999923706054, 0.007088736057281494, 0.0070874238014221195, 0.007074143886566162, 0.00714470386505127, 0.007261663913726807, 0.007344192028045655, 0.007185632228851318, 0.007087071895599365, 0.006959072113037109, 0.007107583999633789, 0.006939008235931397, 0.006878655910491943, 0.00690009593963623, 0.006937119960784912, 0.0071541438102722165, 0.007201663970947266, 0.0074200000762939455, 0.007062335968017578, 0.007071616172790528, 0.007186048030853272, 0.007149312019348144, 0.006936831951141358, 0.006778463840484619, 0.006900896072387695, 0.0067873277664184575, 0.006816383838653565, 0.006815936088562012, 0.006815455913543701, 0.006862783908843994, 0.006811808109283448, 0.006806911945343018, 0.006886112213134766, 0.006824992179870606, 0.006797120094299316, 0.006842016220092773, 0.006809728145599365, 0.00644543981552124, 0.0064748477935791015, 0.00643507194519043, 0.006450240135192871, 0.006823423862457275, 0.006766367912292481, 0.0067925119400024415, 0.0068278079032897945, 0.006830687999725342, 0.006800320148468018, 0.00706774377822876, 0.006900032043457031, 0.006852640151977539, 0.007107168197631836, 0.006858943939208984, 0.006821280002593994, 0.006793471813201904 ], "count": 70, "total": 0.4917316794395449, "mean": 0.007024738277707782, "p50": 0.006970576047897339, "p90": 0.007351772832870484, "p95": 0.0075753182888031005, "p99": 0.008024353513717653, "stdev": 0.00032905637854001573, "stdev_": 4.684251078566716 }, "throughput": { "unit": "tokens/s", "value": 284.7081159374685 }, "energy": { "unit": "kWh", "cpu": 8.08234948837856e-08, "ram": 4.413417853653879e-08, "gpu": 1.5381720544217503e-07, "total": 2.7877487886249947e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7174247.57984188 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1224.454144, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.458112 }, "latency": { "unit": "s", "values": [ 0.007363264083862305, 0.0071149120330810545, 0.007396160125732422, 0.007255616188049316, 0.007310783863067627, 0.0072772479057312016, 0.007489759922027588, 0.007831136226654052, 0.009173248291015625, 0.00777561616897583, 0.007845952033996581, 0.00772764778137207, 0.007712031841278076, 0.00766700792312622, 0.007258975982666015, 0.0075680317878723145, 0.007268671989440918, 0.007316768169403076, 0.007182400226593017, 0.0072394881248474124, 0.007516064167022705, 0.007388256072998047, 0.007535391807556152, 0.007356031894683838, 0.007355711936950684, 0.007278816223144531, 0.007087840080261231, 0.006890528202056885, 0.007390624046325684, 0.00715008020401001, 0.007121695995330811, 0.00745798397064209, 0.007541088104248047, 0.007719327926635742, 0.007173727989196777, 0.007507199764251709, 0.00719382381439209, 0.0071502399444580075, 0.007046463966369629, 0.00703113603591919, 0.007073952198028565, 0.007139232158660889, 0.007028992176055908, 0.007017375946044922, 0.007059552192687988, 0.007064767837524414, 0.007018752098083496, 0.007082687854766846, 0.007054240226745606, 0.007098400115966797, 0.007003583908081055, 0.007040031909942627, 0.007040448188781738, 0.0066202239990234375, 0.006736703872680664, 0.0066418561935424805, 0.006611743927001953, 0.007051712036132813, 0.006999680042266846, 0.0070687360763549804, 0.007020063877105713, 0.007016575813293457, 0.0072740478515625, 0.007052671909332275, 0.007018496036529541, 0.007022111892700195, 0.00716051197052002, 0.007470143795013428, 0.00700710391998291, 0.00704963207244873 ], "count": 70, "total": 0.5072107849121095, "mean": 0.007245868355887276, "p50": 0.007155375957489014, "p90": 0.007671510314941406, "p95": 0.007754030394554138, "p99": 0.008257413873672488, "stdev": 0.00035686956291313077, "stdev_": 4.925145550335231 }, "throughput": { "unit": "tokens/s", "value": 138.0096837099585 }, "energy": { "unit": "kWh", "cpu": 7.390506827458395e-08, "ram": 4.041859596582938e-08, "gpu": 1.433114593889932e-07, "total": 2.576351236294065e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3881458.3427624693 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.006840320110321045, 0.00662937593460083, 0.006866943836212158, 0.00675328016281128, 0.0067758078575134275, 0.006773759841918945, 0.006968319892883301, 0.007236608028411865, 0.00862003231048584, 0.007233535766601563, 0.007308288097381592, 0.007180287837982178, 0.007162879943847656, 0.007131135940551757, 0.006737919807434082, 0.007037951946258545, 0.006759424209594727, 0.006809567928314209, 0.00667852783203125, 0.0067348480224609375, 0.006920191764831543, 0.006872064113616944, 0.007002111911773682, 0.0068351998329162595, 0.006853631973266602, 0.0067573761940002445, 0.00659660816192627, 0.006457344055175781, 0.006881279945373535, 0.006725632190704346, 0.006657023906707763, 0.006937600135803222, 0.00703385591506958, 0.007167935848236084, 0.006737984180450439, 0.006998015880584717, 0.006739967823028564, 0.006733856201171875, 0.006609920024871826, 0.006627327919006347, 0.006658048152923584, 0.006729728221893311, 0.006620160102844238, 0.006609920024871826, 0.006624256134033203, 0.006657023906707763, 0.006598656177520752, 0.006668288230895996, 0.0066304001808166506, 0.006692863941192627, 0.006598656177520752, 0.006636544227600098, 0.006627327919006347, 0.00623308801651001, 0.00633951997756958, 0.006244351863861084, 0.006217728137969971, 0.006633471965789795, 0.00657919979095459, 0.006654975891113281, 0.006605823993682861, 0.006594560146331787, 0.006859776020050049, 0.0066447358131408694, 0.006602752208709717, 0.006614016056060791, 0.006739967823028564, 0.007047167778015137, 0.00657919979095459, 0.006636544227600098 ], "count": 70, "total": 0.4745624961853027, "mean": 0.006779464231218609, "p50": 0.006731792211532593, "p90": 0.007134310340881347, "p95": 0.007209574198722839, "p99": 0.0077149288034439115, "stdev": 0.00031572921966433425, "stdev_": 4.657141167740654 }, "throughput": { "unit": "tokens/s", "value": 147.50428144382286 }, "energy": null, "efficiency": null } } }