{ "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.3", "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.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.44544, "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.22121533203125, "mean": 7.22121533203125, "stdev": 0.0, "p50": 7.22121533203125, "p90": 7.22121533203125, "p95": 7.22121533203125, "p99": 7.22121533203125, "values": [ 7.22121533203125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0085390673743353e-06, "ram": 5.366553104644822e-07, "gpu": 1.650556875995579e-06, "total": 3.1957512538343965e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1032.036352, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 72, "total": 0.4898629760742186, "mean": 0.00680365244547526, "stdev": 0.0004143104771139104, "p50": 0.0069848160743713385, "p90": 0.007240745735168456, "p95": 0.007272910380363465, "p99": 0.0076963966274261495, "values": [ 0.00758512020111084, 0.007258207798004151, 0.007090911865234375, 0.007222976207733154, 0.0070052800178527835, 0.007215007781982422, 0.007213312149047852, 0.00710207986831665, 0.007043968200683594, 0.007290880203247071, 0.007178815841674804, 0.007137951850891114, 0.00711894416809082, 0.007110432147979736, 0.006988831996917725, 0.007034560203552246, 0.006980800151824952, 0.007006303787231445, 0.007252096176147461, 0.007248544216156006, 0.006950399875640869, 0.007143871784210205, 0.0070735359191894534, 0.0070522880554199216, 0.007066751956939697, 0.007311359882354736, 0.00702396821975708, 0.0070117759704589845, 0.007070047855377197, 0.007182559967041016, 0.0072163200378417966, 0.0072427201271057125, 0.007132415771484375, 0.00796883201599121, 0.006998112201690674, 0.0067898879051208495, 0.006708511829376221, 0.006325119972229004, 0.006462624073028564, 0.007055136203765869, 0.007156511783599853, 0.007164383888244629, 0.006728672027587891, 0.00654636812210083, 0.006588287830352783, 0.006568319797515869, 0.00659497594833374, 0.0065842242240905765, 0.006546048164367676, 0.006535583972930908, 0.006523168087005616, 0.006507808208465576, 0.006501887798309326, 0.006571807861328125, 0.006541440010070801, 0.006295968055725098, 0.006210559844970703, 0.006187168121337891, 0.006250463962554932, 0.006239232063293457, 0.006282080173492432, 0.00622057580947876, 0.00619596815109253, 0.006218656063079834, 0.006273888111114502, 0.0061970877647399905, 0.006208831787109375, 0.006629471778869629, 0.006228608131408691, 0.006193120002746582, 0.0062854719161987305, 0.006215072154998779 ] }, "throughput": { "unit": "tokens/s", "value": 293.9597541214927 }, "energy": { "unit": "kWh", "cpu": 7.767005835050418e-08, "ram": 4.2452709952761194e-08, "gpu": 1.6401792351636681e-07, "total": 2.841406918196322e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7038766.560298118 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1047.678976, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 72, "total": 0.5104955840110778, "mean": 0.007090216444598303, "stdev": 0.0004374139231666069, "p50": 0.007192991971969605, "p90": 0.007574323177337646, "p95": 0.0076540623188018795, "p99": 0.00790307824134827, "values": [ 0.0077489280700683595, 0.007652607917785645, 0.007458623886108399, 0.0073696961402893064, 0.007219264030456543, 0.007450592041015625, 0.0075526080131530764, 0.0075095038414001464, 0.007329376220703125, 0.0073818559646606444, 0.007655839920043945, 0.007462175846099853, 0.007401887893676758, 0.007207007884979248, 0.007391007900238037, 0.00734339189529419, 0.0074202880859375, 0.007546463966369629, 0.007473855972290039, 0.007449408054351806, 0.007401504039764404, 0.007733439922332764, 0.007509088039398194, 0.0073316159248352055, 0.0074542717933654785, 0.007308608055114746, 0.007336639881134034, 0.0073887038230896, 0.0076154241561889645, 0.0075253438949584965, 0.007576735973358154, 0.007451776027679443, 0.00828048038482666, 0.0073361282348632815, 0.0071149120330810545, 0.007036799907684326, 0.006727615833282471, 0.006551040172576904, 0.006981791973114014, 0.007381984233856201, 0.007577824115753174, 0.007178976058959961, 0.006895232200622559, 0.006871071815490723, 0.006924960136413574, 0.006870368003845215, 0.006823616027832031, 0.006818943977355957, 0.006855040073394775, 0.006817056179046631, 0.006950175762176514, 0.006836607933044434, 0.006821568012237549, 0.006813183784484863, 0.006831647872924805, 0.006417920112609863, 0.006406879901885986, 0.006490496158599854, 0.006540192127227783, 0.006609375953674316, 0.006535615921020508, 0.006456704139709473, 0.006427840232849121, 0.006457151889801026, 0.006529759883880615, 0.006439775943756104, 0.0065344319343566895, 0.0065688958168029785, 0.006532192230224609, 0.006543231964111328, 0.00654256010055542, 0.0065079998970031736 ] }, "throughput": { "unit": "tokens/s", "value": 141.03941788150235 }, "energy": { "unit": "kWh", "cpu": 7.183805613973994e-08, "ram": 3.9295701259508234e-08, "gpu": 1.2642328105860368e-07, "total": 2.3755703845785182e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4209515.350467814 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 72, "total": 0.4772731208801269, "mean": 0.006628793345557319, "stdev": 0.0003768507152061868, "p50": 0.0067286880016326905, "p90": 0.007036313581466675, "p95": 0.0071202303647995, "p99": 0.007369646115303043, "values": [ 0.007156735897064209, 0.007121920108795166, 0.00695091199874878, 0.006865920066833496, 0.006734816074371338, 0.006912000179290771, 0.007003136157989502, 0.006999040126800537, 0.006816768169403077, 0.006821887969970703, 0.0071188478469848635, 0.00695084810256958, 0.00686300802230835, 0.006722559928894043, 0.006894591808319092, 0.006843391895294189, 0.006917119979858399, 0.006971392154693603, 0.006933504104614257, 0.0069324798583984375, 0.006818816184997558, 0.007206912040710449, 0.006996992111206054, 0.006797311782836914, 0.006938623905181885, 0.006804480075836182, 0.0068249602317810056, 0.006881279945373535, 0.007095359802246094, 0.007003136157989502, 0.007039999961853028, 0.006938623905181885, 0.007768064022064209, 0.006797311782836914, 0.00667852783203125, 0.006518784046173095, 0.006328320026397705, 0.006152256011962891, 0.006512671947479248, 0.006883232116699218, 0.007054336071014404, 0.006755328178405762, 0.006498303890228272, 0.0064767999649047855, 0.0064778242111206055, 0.006472703933715821, 0.006407167911529541, 0.006425600051879882, 0.006453248023986816, 0.0064245758056640625, 0.006550528049468994, 0.006441984176635742, 0.006426623821258545, 0.006416384220123291, 0.006436863899230957, 0.006018144130706787, 0.006033408164978027, 0.006108096122741699, 0.006161407947540283, 0.006227968215942382, 0.006146048069000244, 0.00608358383178711, 0.006035520076751709, 0.006076255798339844, 0.006142975807189942, 0.0060661759376525876, 0.006155263900756836, 0.006188096046447754, 0.006159264087677002, 0.006160384178161621, 0.006147071838378906, 0.006128640174865723 ] }, "throughput": { "unit": "tokens/s", "value": 150.85701844517595 }, "energy": null, "efficiency": null } } }