{ "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.1", "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.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.945152, "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.23302099609375, "mean": 7.23302099609375, "stdev": 0.0, "p50": 7.23302099609375, "p90": 7.23302099609375, "p95": 7.23302099609375, "p99": 7.23302099609375, "values": [ 7.23302099609375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.83283089266883e-07, "ram": 5.231089950740397e-07, "gpu": 1.6277790800000875e-06, "total": 3.1341711643410104e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1022.230528, "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.4920855350494384, "mean": 0.006649804527695114, "stdev": 0.0003735311197967681, "p50": 0.006772511959075928, "p90": 0.007071817684173584, "p95": 0.007152548933029175, "p99": 0.007273468227386474, "values": [ 0.0073001918792724605, 0.00710697603225708, 0.0070249919891357425, 0.006889152050018311, 0.006943552017211914, 0.006858719825744629, 0.0068702402114868165, 0.007051360130310058, 0.006939263820648194, 0.006786719799041748, 0.007052159786224365, 0.007263584136962891, 0.007000671863555908, 0.006884704113006592, 0.007007999897003174, 0.006692671775817871, 0.0067925119400024415, 0.006800320148468018, 0.006882847785949707, 0.006936255931854248, 0.007246208190917969, 0.006890367984771728, 0.006873087882995605, 0.006990047931671142, 0.006898784160614014, 0.006758304119110108, 0.006842495918273926, 0.007052351951599121, 0.006881087779998779, 0.006828671932220459, 0.006849376201629639, 0.007189760208129883, 0.007094816207885742, 0.007080160140991211, 0.006930335998535157, 0.006731167793273925, 0.006941055774688721, 0.006702176094055176, 0.006664703845977784, 0.006518720149993896, 0.006650368213653565, 0.006725312232971192, 0.006845215797424317, 0.007132512092590332, 0.006848671913146973, 0.006675615787506104, 0.006701344013214111, 0.006722271919250488, 0.006394847869873047, 0.0063927040100097655, 0.006378367900848388, 0.0061654081344604495, 0.006223807811737061, 0.006174399852752686, 0.006172607898712159, 0.0061402878761291505, 0.0061736001968383785, 0.006160255908966065, 0.0061357121467590335, 0.006113440036773682, 0.006151040077209472, 0.0061383042335510256, 0.006155968189239502, 0.006168191909790039, 0.0062706880569458005, 0.00614031982421875, 0.006148384094238281, 0.006145215988159179, 0.006136799812316894, 0.0061413440704345705, 0.006154047966003418, 0.006113887786865235, 0.006105120182037353, 0.006140895843505859 ] }, "throughput": { "unit": "tokens/s", "value": 300.76072035958316 }, "energy": { "unit": "kWh", "cpu": 7.648160594338585e-08, "ram": 4.1814790492723486e-08, "gpu": 1.5017395526451486e-07, "total": 2.6847035170062417e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7449612.172558383 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1037.873152, "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.514456639289856, "mean": 0.006952116747160216, "stdev": 0.0004097858075080376, "p50": 0.007097775936126709, "p90": 0.0074075294017791745, "p95": 0.007610766220092773, "p99": 0.007744920225143431, "values": [ 0.00741107177734375, 0.007423871994018554, 0.007195648193359375, 0.007222496032714844, 0.0070694079399108885, 0.007124800205230713, 0.0072401599884033205, 0.007306367874145508, 0.007175903797149658, 0.007227583885192871, 0.007677055835723877, 0.007575071811676025, 0.007193408012390137, 0.007266496181488037, 0.0073017277717590335, 0.007011199951171875, 0.007135359764099121, 0.007252416133880615, 0.007237247943878174, 0.007399263858795166, 0.0073712639808654785, 0.007067296028137207, 0.007677951812744141, 0.007297215938568115, 0.0072605757713317875, 0.00709116792678833, 0.007165056228637695, 0.007104383945465088, 0.007108352184295654, 0.007459871768951416, 0.007201087951660156, 0.007922175884246827, 0.007391712188720703, 0.007269728183746338, 0.007236703872680664, 0.007115424156188965, 0.0071413440704345705, 0.006735392093658447, 0.007135392189025879, 0.006565728187561035, 0.006961440086364746, 0.007214079856872559, 0.0071159682273864745, 0.007679359912872314, 0.00689631986618042, 0.006915200233459473, 0.006957536220550537, 0.0067478718757629395, 0.006697760105133056, 0.006588736057281494, 0.006685056209564209, 0.0064542717933654785, 0.006523871898651123, 0.006408224105834961, 0.006388319969177246, 0.006399519920349121, 0.00649455976486206, 0.006423488140106202, 0.006553887844085693, 0.006492991924285888, 0.006448480129241943, 0.006403071880340576, 0.006451776027679443, 0.006422848224639893, 0.006415999889373779, 0.00641871976852417, 0.0064299521446228025, 0.006409056186676025, 0.006485568046569824, 0.0064336957931518555, 0.006395071983337402, 0.006557439804077149, 0.006428192138671875, 0.006393919944763184 ] }, "throughput": { "unit": "tokens/s", "value": 143.8410827045558 }, "energy": { "unit": "kWh", "cpu": 7.137733883306809e-08, "ram": 3.9016408890290134e-08, "gpu": 1.3511776816758416e-07, "total": 2.455115158909424e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4073128.6936626043 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 74, "total": 0.48065010929107665, "mean": 0.006495271747176711, "stdev": 0.0003503640345435203, "p50": 0.006591487884521485, "p90": 0.006884761571884155, "p95": 0.007073771119117736, "p99": 0.007234139957427978, "values": [ 0.0068853759765625, 0.006922239780426025, 0.00669484806060791, 0.0067123198509216305, 0.0065771517753601075, 0.006612991809844971, 0.006708223819732666, 0.0067573761940002445, 0.00667852783203125, 0.006677504062652588, 0.00714035177230835, 0.007037919998168945, 0.006658048152923584, 0.006758399963378906, 0.006812672138214112, 0.006532095909118653, 0.006636544227600098, 0.0067358717918396, 0.006726655960083008, 0.006883327960968018, 0.00683622407913208, 0.006589439868927002, 0.007161856174468994, 0.006799359798431396, 0.006755328178405762, 0.006593535900115967, 0.006653952121734619, 0.006614016056060791, 0.006607935905456543, 0.00690176010131836, 0.006676447868347168, 0.007396351814270019, 0.0068700480461120605, 0.0067634878158569335, 0.006708223819732666, 0.006583295822143555, 0.006642687797546387, 0.006318079948425293, 0.006638591766357422, 0.006176767826080322, 0.006525951862335205, 0.006717440128326416, 0.006650879859924317, 0.007174143791198731, 0.006471680164337158, 0.006490111827850342, 0.006519743919372559, 0.006362112045288086, 0.006309887886047363, 0.006205440044403076, 0.006305791854858398, 0.006069248199462891, 0.006135807991027832, 0.006031360149383545, 0.006005760192871094, 0.006024191856384278, 0.006113279819488526, 0.006045695781707764, 0.006169600009918213, 0.006114304065704346, 0.006072319984436035, 0.0060282878875732426, 0.006037504196166992, 0.006047743797302246, 0.006039552211761475, 0.006038527965545654, 0.006052864074707031, 0.006032383918762207, 0.006103040218353272, 0.006055935859680176, 0.006017024040222168, 0.006173696041107178, 0.006052864074707031, 0.006020095825195313 ] }, "throughput": { "unit": "tokens/s", "value": 153.95814662175889 }, "energy": null, "efficiency": null } } }