{ "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": "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": {}, "hub_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, "latency": true, "memory": 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.2.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.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": { "prefill": { "memory": { "unit": "MB", "max_ram": 1028.845568, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 74, "total": 0.4920858221054076, "mean": 0.006649808406829834, "stdev": 0.0005336997107112194, "p50": 0.0066219520568847655, "p90": 0.007068028688430786, "p95": 0.007222406363487244, "p99": 0.008118333644866933, "values": [ 0.009963680267333984, 0.0074358081817626955, 0.007285888195037842, 0.0070685758590698245, 0.007066751956939697, 0.006925663948059082, 0.007061984062194824, 0.0070572800636291505, 0.007300543785095215, 0.0070943360328674316, 0.007029791831970215, 0.006873824119567871, 0.006741407871246338, 0.0068624958992004395, 0.006591904163360596, 0.006637951850891113, 0.0066845440864562984, 0.006914400100708008, 0.006824543952941894, 0.006709663867950439, 0.007188223838806153, 0.007006239891052246, 0.006939295768737793, 0.00685811185836792, 0.0067040958404541015, 0.006679264068603516, 0.006672639846801758, 0.006922336101531983, 0.006858528137207031, 0.006734975814819336, 0.006623424053192138, 0.006600671768188476, 0.006785215854644776, 0.0070208959579467775, 0.006458655834197998, 0.006484032154083252, 0.00648524808883667, 0.006886240005493164, 0.007182432174682617, 0.006986591815948486, 0.006620480060577393, 0.00654860782623291, 0.006998784065246582, 0.006414656162261963, 0.006396063804626465, 0.006494656085968018, 0.0063446397781372075, 0.006323455810546875, 0.006169216156005859, 0.006135776042938233, 0.006127679824829101, 0.0069212160110473635, 0.006201824188232422, 0.006115039825439453, 0.006243455886840821, 0.006298783779144287, 0.006104415893554688, 0.006275455951690673, 0.006373504161834717, 0.006151519775390625, 0.006128767967224121, 0.0061145920753479, 0.0061380801200866695, 0.006136767864227295, 0.006327775955200196, 0.006268064022064209, 0.006131999969482422, 0.006127327919006348, 0.0060900158882141115, 0.006161983966827393, 0.0061160001754760746, 0.006213344097137451, 0.00633519983291626, 0.006328512191772461 ] }, "throughput": { "unit": "tokens/s", "value": 300.76054491221964 }, "energy": { "unit": "kWh", "cpu": 7.715724505387345e-08, "ram": 4.218804214742256e-08, "gpu": 1.4861123000000042e-07, "total": 2.679565172012964e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7463897.578940184 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1028.845568, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 74, "total": 0.516094560623169, "mean": 0.0069742508192320125, "stdev": 0.0005088212772298802, "p50": 0.006985023975372314, "p90": 0.007460588693618774, "p95": 0.007558747315406799, "p99": 0.00858162762641906, "values": [ 0.009851360321044922, 0.007614208221435547, 0.007541600227355957, 0.007251488208770752, 0.008112000465393067, 0.007468671798706055, 0.007441728115081787, 0.007590591907501221, 0.00748367977142334, 0.007499231815338135, 0.007308864116668702, 0.007204351902008056, 0.007144192218780518, 0.007349664211273193, 0.00702726411819458, 0.007034848213195801, 0.0071145920753479, 0.007213823795318604, 0.007142079830169678, 0.007360127925872803, 0.007386752128601074, 0.007289535999298095, 0.007236671924591064, 0.0070635838508605955, 0.0071459197998046875, 0.0070731520652771, 0.007066175937652588, 0.007238624095916748, 0.007157599925994873, 0.007063648223876953, 0.007192607879638672, 0.007133535861968994, 0.007061312198638916, 0.006942783832550049, 0.006702527999877929, 0.006779168128967285, 0.007236447811126709, 0.007409696102142334, 0.007151072025299072, 0.006880671977996826, 0.006831615924835205, 0.006775519847869873, 0.006718143939971923, 0.00675110387802124, 0.006654816150665283, 0.006641536235809326, 0.006674560070037841, 0.006662623882293701, 0.006453824043273926, 0.006422976016998291, 0.006516960144042969, 0.007052576065063477, 0.006428383827209473, 0.006438176155090332, 0.006781375885009765, 0.006561088085174561, 0.006471776008605957, 0.006826208114624023, 0.006600607872009277, 0.006457664012908935, 0.006462944030761719, 0.00644543981552124, 0.006498144149780273, 0.006808703899383545, 0.006635295867919922, 0.006512832164764404, 0.006422719955444336, 0.0064412798881530765, 0.006449920177459717, 0.006452127933502198, 0.006383264064788818, 0.006575967788696289, 0.0066200318336486815, 0.006698495864868164 ] }, "throughput": { "unit": "tokens/s", "value": 143.3845764827422 }, "energy": { "unit": "kWh", "cpu": 7.180918739170563e-08, "ram": 3.9255592395410094e-08, "gpu": 1.4239941947499828e-07, "total": 2.53464199262114e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3945330.3579409006 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.9908940792083742, "mean": 0.013573891496005124, "stdev": 0.0007404545394752356, "p50": 0.013675488471984864, "p90": 0.014509670829772949, "p95": 0.014731065559387205, "p99": 0.015229018821716308, "values": [ 0.015255583763122558, 0.014870495796203613, 0.014348287582397461, 0.015218688011169433, 0.014442496299743653, 0.014526464462280274, 0.014613568305969238, 0.014895039558410645, 0.014615551948547363, 0.014427136421203614, 0.01409331226348877, 0.013941760063171387, 0.01425715160369873, 0.013648927688598633, 0.013675488471984864, 0.013837408065795899, 0.01414031982421875, 0.014039039611816406, 0.014049280166625976, 0.01463811206817627, 0.014365823745727539, 0.014178144454956054, 0.01399500846862793, 0.013865983963012696, 0.013788191795349122, 0.013753312110900879, 0.014183423995971679, 0.014058560371398925, 0.013842368125915527, 0.013846528053283692, 0.01376153564453125, 0.013883392333984374, 0.014062591552734375, 0.013225983619689942, 0.013283328056335449, 0.01363046360015869, 0.014350336074829101, 0.014413951873779297, 0.01393552017211914, 0.013477855682373047, 0.01340006446838379, 0.013735008239746094, 0.013196191787719726, 0.013088768005371093, 0.013148159980773925, 0.013031423568725586, 0.013029439926147461, 0.012668864250183105, 0.012588031768798828, 0.01265766429901123, 0.013955072402954101, 0.012702719688415527, 0.012588031768798828, 0.01298534393310547, 0.012923904418945312, 0.012621824264526366, 0.013127679824829102, 0.012995583534240723, 0.012644351959228516, 0.012598272323608398, 0.012608511924743653, 0.01265775966644287, 0.012949407577514649, 0.012992511749267579, 0.012798015594482421, 0.012609472274780273, 0.012583935737609863, 0.012564512252807617, 0.012638175964355469, 0.012537856101989747, 0.012796928405761718, 0.012986368179321289, 0.013047807693481446 ] }, "throughput": { "unit": "tokens/s", "value": 73.67084084135385 }, "energy": null, "efficiency": null } } }