{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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.25696, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.220-209.869.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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "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": 790.175744, "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.37164208984375, "mean": 7.37164208984375, "stdev": 0.0, "p50": 7.37164208984375, "p90": 7.37164208984375, "p95": 7.37164208984375, "p99": 7.37164208984375, "values": [ 7.37164208984375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.97551641666937e-07, "ram": 5.185132507381543e-07, "gpu": 1.8208347899999634e-06, "total": 3.3368996824050546e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1199.607808, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 76, "total": 0.4923675184249879, "mean": 0.006478519979276155, "stdev": 0.0003143818561476559, "p50": 0.006449023962020874, "p90": 0.006645120143890381, "p95": 0.006856791973114014, "p99": 0.007782623887062073, "values": [ 0.007425759792327881, 0.007578239917755127, 0.006428736209869385, 0.0069183998107910155, 0.006509376049041748, 0.0062988801002502445, 0.0068362560272216795, 0.00839577579498291, 0.006656256198883057, 0.006587647914886475, 0.006589439868927002, 0.00650435209274292, 0.0065426878929138186, 0.0063294081687927245, 0.006279200077056885, 0.006502272129058838, 0.006529695987701416, 0.006440288066864014, 0.006487199783325195, 0.0065231361389160155, 0.006449440002441406, 0.006503647804260254, 0.006509183883666992, 0.0064486079216003415, 0.0064966402053833, 0.006485568046569824, 0.006457600116729736, 0.006480544090270996, 0.006326240062713623, 0.006270944118499756, 0.006282623767852783, 0.006310143947601318, 0.006330431938171387, 0.00630185604095459, 0.006291359901428223, 0.006304671764373779, 0.006311135768890381, 0.0063053760528564455, 0.00625055980682373, 0.0062837438583374025, 0.0063192639350891115, 0.006302527904510498, 0.00626636791229248, 0.006261760234832763, 0.0062928318977355955, 0.0062847681045532225, 0.006296319961547852, 0.006260447978973389, 0.006391295909881592, 0.006302976131439209, 0.006509183883666992, 0.006633984088897705, 0.006632512092590332, 0.006676064014434814, 0.0067132158279418945, 0.00650105619430542, 0.006537439823150634, 0.006515071868896484, 0.006460031986236572, 0.006494815826416016, 0.006502783775329589, 0.006489855766296387, 0.006500768184661865, 0.006320767879486084, 0.006280735969543457, 0.0062806720733642575, 0.006317696094512939, 0.006291264057159423, 0.006494944095611572, 0.0065452480316162106, 0.006484255790710449, 0.00628326416015625, 0.006273632049560547, 0.006296319961547852, 0.006288159847259522, 0.006301887989044189 ] }, "throughput": { "unit": "tokens/s", "value": 308.7124847029429 }, "energy": { "unit": "kWh", "cpu": 7.95159481203711e-08, "ram": 4.3361160957104315e-08, "gpu": 1.5388160458666759e-07, "total": 2.76758713664143e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7226511.402372951 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1218.015232, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 76, "total": 0.5156397423744203, "mean": 0.006784733452295003, "stdev": 0.00017879619624912608, "p50": 0.006797343969345093, "p90": 0.0069961600303649904, "p95": 0.007081784129142761, "p99": 0.007329071879386902, "values": [ 0.007514495849609375, 0.006993184089660645, 0.006705696105957031, 0.0072672638893127445, 0.006662399768829346, 0.0068533759117126464, 0.007206016063690186, 0.006999135971069336, 0.0070713281631469725, 0.00686406421661377, 0.006882688045501709, 0.006905695915222168, 0.00682096004486084, 0.006649407863616943, 0.006837920188903808, 0.006787424087524414, 0.006860064029693603, 0.006831520080566407, 0.006786911964416504, 0.006879519939422607, 0.006850912094116211, 0.006887455940246582, 0.0068329920768737794, 0.006845024108886719, 0.006848031997680664, 0.006834112167358399, 0.006849792003631592, 0.0067968001365661624, 0.006631648063659668, 0.006623392105102539, 0.006630847930908203, 0.006586656093597412, 0.006578783988952636, 0.006611519813537597, 0.006703775882720947, 0.006607999801635742, 0.006574016094207763, 0.006625279903411865, 0.006614751815795898, 0.006634335994720459, 0.00661516809463501, 0.006616064071655273, 0.006614719867706299, 0.006608511924743652, 0.006579840183258056, 0.006593376159667969, 0.0066497278213500976, 0.00670854377746582, 0.006600096225738526, 0.006722015857696533, 0.007009407997131348, 0.006937759876251221, 0.007023327827453614, 0.007113152027130127, 0.006903135776519775, 0.006908224105834961, 0.0068256320953369145, 0.006849696159362793, 0.006893792152404785, 0.0067983040809631344, 0.006937151908874512, 0.006850175857543946, 0.006797887802124023, 0.0066059517860412595, 0.006621632099151611, 0.006619872093200684, 0.0065977277755737305, 0.006760735988616943, 0.006919007778167724, 0.006812160015106201, 0.00686191987991333, 0.006614463806152344, 0.0066076798439025876, 0.006673247814178467, 0.006616543769836425, 0.0066258878707885745 ] }, "throughput": { "unit": "tokens/s", "value": 147.38972533427088 }, "energy": { "unit": "kWh", "cpu": 7.274497249038276e-08, "ram": 3.988698994024551e-08, "gpu": 1.4530666895179216e-07, "total": 2.5793863138242034e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3876891.160662933 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 76, "total": 0.4851136317253114, "mean": 0.0063830741016488324, "stdev": 0.0001592168016893059, "p50": 0.0064020478725433354, "p90": 0.006589951992034913, "p95": 0.006670847773551941, "p99": 0.006831615924835205, "values": [ 0.0069928960800170895, 0.00658739185333252, 0.0063211522102355954, 0.00677785587310791, 0.006277088165283203, 0.00643891191482544, 0.006713344097137451, 0.006592512130737305, 0.006672383785247803, 0.006475776195526123, 0.006490111827850342, 0.006504447937011719, 0.00642252779006958, 0.006238175868988037, 0.006448128223419189, 0.006398975849151611, 0.006434815883636475, 0.0064430079460144046, 0.006398975849151611, 0.006435840129852295, 0.006461440086364746, 0.006498303890228272, 0.006421504020690918, 0.006453248023986816, 0.006455296039581298, 0.006440959930419922, 0.006459392070770263, 0.006405119895935059, 0.0062228479385375976, 0.006242303848266601, 0.006250495910644531, 0.0062044157981872555, 0.0061931519508361815, 0.006228991985321045, 0.006318079948425293, 0.006221824169158936, 0.006194176197052002, 0.006243328094482422, 0.00623308801651001, 0.006251520156860352, 0.00623308801651001, 0.006205440044403076, 0.006235136032104492, 0.006227968215942382, 0.006201344013214111, 0.006206463813781738, 0.006254591941833496, 0.006326272010803223, 0.006209536075592041, 0.006318079948425293, 0.006598656177520752, 0.006511616230010986, 0.006593535900115967, 0.006670335769653321, 0.006445055961608887, 0.006507487773895264, 0.006423552036285401, 0.006445087909698486, 0.006486911773681641, 0.006397952079772949, 0.0065413122177124024, 0.006461440086364746, 0.006408192157745361, 0.006201344013214111, 0.006239232063293457, 0.006240255832672119, 0.006206463813781738, 0.006322175979614258, 0.006516736030578613, 0.006412288188934326, 0.006405119895935059, 0.006231008052825927, 0.006228991985321045, 0.006285312175750732, 0.006207488059997559, 0.006244351863861084 ] }, "throughput": { "unit": "tokens/s", "value": 156.6643256956216 }, "energy": null, "efficiency": null } } }