{ "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.224-212.876.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.2", "transformers_commit": null, "accelerate_version": "0.34.2", "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.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 800.538624, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.03367919921875, "mean": 8.03367919921875, "stdev": 0.0, "p50": 8.03367919921875, "p90": 8.03367919921875, "p95": 8.03367919921875, "p99": 8.03367919921875, "values": [ 8.03367919921875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 2.425487018055053e-06, "ram": 1.3033702649819924e-06, "gpu": 3.607225108000038e-06, "total": 7.336082391037083e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1223.528448, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 70, "total": 0.4924952654838561, "mean": 0.007035646649769374, "stdev": 0.0006850280368682469, "p50": 0.006962224006652832, "p90": 0.007512435054779053, "p95": 0.008253797101974486, "p99": 0.009450046920776372, "values": [ 0.0077404799461364745, 0.007565311908721924, 0.007506559848785401, 0.007431104183197022, 0.00702239990234375, 0.006958687782287597, 0.007045152187347412, 0.007202144145965576, 0.0073149437904357914, 0.007505536079406738, 0.0071413440704345705, 0.0074031357765197755, 0.007392320156097412, 0.0073968319892883305, 0.0072758722305297854, 0.007267199993133545, 0.007176544189453125, 0.007101151943206787, 0.007139264106750488, 0.007299967765808105, 0.006989280223846436, 0.007139200210571289, 0.00713369607925415, 0.007305856227874756, 0.008903871536254883, 0.010665727615356444, 0.007378943920135498, 0.0068354239463806156, 0.007010784149169922, 0.007124959945678711, 0.006931776046752929, 0.0069060797691345216, 0.006910624027252198, 0.006934271812438965, 0.007119359970092773, 0.007073984146118164, 0.007135807991027832, 0.006965760231018066, 0.00682860803604126, 0.00685971212387085, 0.006884064197540283, 0.006795104026794434, 0.0066488637924194335, 0.006625823974609375, 0.008361120223999024, 0.008458559989929199, 0.008122624397277832, 0.00681660795211792, 0.0066888961791992186, 0.006624063968658447, 0.006678688049316406, 0.00640499210357666, 0.006925183773040772, 0.006614016056060791, 0.006347551822662354, 0.006387680053710937, 0.006361248016357422, 0.006355296134948731, 0.006329792022705078, 0.006363071918487549, 0.006378176212310791, 0.006350304126739502, 0.006346464157104492, 0.006361152172088623, 0.006378528118133545, 0.006355296134948731, 0.00637500810623169, 0.006384704113006592, 0.006392191886901855, 0.0063405117988586425 ] }, "throughput": { "unit": "tokens/s", "value": 284.2666921121684 }, "energy": { "unit": "kWh", "cpu": 7.908501488425631e-08, "ram": 4.3218978013290553e-08, "gpu": 1.581242005733342e-07, "total": 2.8042819347088106e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7131950.519118096 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1242.144768, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 70, "total": 0.5128705291748046, "mean": 0.007326721845354353, "stdev": 0.0005809771774269779, "p50": 0.0073110079765319825, "p90": 0.00784452486038208, "p95": 0.008326358413696288, "p99": 0.009139335765838624, "values": [ 0.007887551784515381, 0.007824607849121094, 0.007839744091033935, 0.00729641580581665, 0.007372479915618896, 0.0073846402168273925, 0.007560800075531006, 0.007666687965393066, 0.007749216079711914, 0.007645631790161133, 0.007609856128692627, 0.007836575984954835, 0.007697279930114746, 0.0075898561477661134, 0.007642464160919189, 0.0077025599479675294, 0.007455872058868408, 0.007471839904785157, 0.007542111873626709, 0.007592544078826904, 0.007321631908416748, 0.00747814416885376, 0.007735936164855957, 0.008014944076538086, 0.009621408462524414, 0.007943903923034668, 0.007646336078643799, 0.007239200115203857, 0.007280191898345947, 0.007167520046234131, 0.007267295837402344, 0.007226016044616699, 0.00731331205368042, 0.007416063785552978, 0.0074234561920166016, 0.007411839962005615, 0.007289408206939697, 0.007462592124938965, 0.007258975982666015, 0.007131743907928467, 0.00696566390991211, 0.007308703899383545, 0.006690303802490235, 0.008581151962280273, 0.00879139232635498, 0.008922752380371093, 0.007320223808288574, 0.006937119960784912, 0.006959136009216309, 0.006984384059906006, 0.007028287887573243, 0.007094079971313476, 0.006748672008514404, 0.006681151866912842, 0.006683360099792481, 0.006659647941589355, 0.0066787519454956056, 0.006704832077026367, 0.006676224231719971, 0.006651455879211426, 0.006662176132202148, 0.0066730880737304685, 0.006665823936462402, 0.0067450242042541506, 0.006684351921081543, 0.006670976161956787, 0.006666016101837158, 0.00664463996887207, 0.006681407928466797, 0.0066910719871520995 ] }, "throughput": { "unit": "tokens/s", "value": 136.48668819522186 }, "energy": { "unit": "kWh", "cpu": 7.459486115740838e-08, "ram": 4.076541062383557e-08, "gpu": 1.494579543241038e-07, "total": 2.6481822610534785e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3776175.132304481 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 70, "total": 0.47912438392639156, "mean": 0.006844634056091309, "stdev": 0.0005141970351832693, "p50": 0.006810624122619629, "p90": 0.007313276958465576, "p95": 0.007745177602767943, "p99": 0.00849988645553589, "values": [ 0.0073400321006774905, 0.007271423816680909, 0.007291903972625732, 0.0067983360290527345, 0.006864895820617676, 0.006860832214355469, 0.007047167778015137, 0.007147520065307617, 0.007211008071899414, 0.00709119987487793, 0.0070860800743103025, 0.007310304164886474, 0.007177216053009033, 0.007031807899475098, 0.007122943878173828, 0.007184383869171143, 0.00695091199874878, 0.006964223861694336, 0.00703385591506958, 0.007067647933959961, 0.006802432060241699, 0.006967296123504638, 0.007185408115386963, 0.007428095817565918, 0.008893440246582032, 0.007420928001403809, 0.007124991893768311, 0.0067420158386230465, 0.006759424209594727, 0.0066938881874084475, 0.006766592025756836, 0.006729728221893311, 0.006818816184997558, 0.006879231929779053, 0.006914048194885254, 0.006896639823913574, 0.006752255916595459, 0.0069621758460998535, 0.006740992069244385, 0.006663167953491211, 0.006529024124145508, 0.006821887969970703, 0.006278143882751465, 0.008004608154296875, 0.008161279678344726, 0.00832307243347168, 0.006884352207183838, 0.006540287971496582, 0.006563839912414551, 0.006589439868927002, 0.0066109437942504885, 0.006632448196411133, 0.006344704151153564, 0.006275072097778321, 0.0062975997924804685, 0.006268928050994873, 0.0062638077735900875, 0.006312960147857666, 0.006284287929534912, 0.006254559993743897, 0.006248447895050049, 0.006289408206939697, 0.00628223991394043, 0.006359039783477783, 0.006289408206939697, 0.0062873601913452145, 0.00628326416015625, 0.0062638077735900875, 0.006287295818328858, 0.0062975997924804685 ] }, "throughput": { "unit": "tokens/s", "value": 146.0998486997359 }, "energy": null, "efficiency": null } } }