{ "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.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.223-212.873.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.33.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.007232, "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.44266943359375, "mean": 7.44266943359375, "stdev": 0.0, "p50": 7.44266943359375, "p90": 7.44266943359375, "p95": 7.44266943359375, "p99": 7.44266943359375, "values": [ 7.44266943359375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.830837090280258e-07, "ram": 5.227482544414625e-07, "gpu": 1.6602791060001468e-06, "total": 3.166111069469635e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1221.398528, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 75, "total": 0.4909563221931458, "mean": 0.00654608429590861, "stdev": 0.00023619602614455873, "p50": 0.006488031864166259, "p90": 0.0066889087677001954, "p95": 0.006866681575775146, "p99": 0.007770508098602295, "values": [ 0.007789760112762451, 0.007763743877410889, 0.006641439914703369, 0.006532000064849853, 0.006515103816986084, 0.006494016170501709, 0.006522719860076904, 0.006496928215026856, 0.006465727806091308, 0.006503712177276611, 0.00648902416229248, 0.006466752052307129, 0.006512703895568847, 0.006487520217895508, 0.006465760231018067, 0.006954624176025391, 0.006480063915252686, 0.006518943786621094, 0.006488031864166259, 0.006449535846710205, 0.0064676799774169924, 0.006486688137054443, 0.006482880115509033, 0.0064362878799438476, 0.006473023891448975, 0.00645088005065918, 0.0064858560562133785, 0.006480576038360596, 0.0065033278465271, 0.006451295852661133, 0.006491168022155762, 0.006458240032196045, 0.006453472137451172, 0.006500256061553955, 0.006476672172546387, 0.00645088005065918, 0.00649513578414917, 0.0066135039329528805, 0.006828991889953613, 0.006713247776031494, 0.006510015964508057, 0.006503200054168701, 0.006502208232879639, 0.006459328174591064, 0.006499872207641601, 0.006434207916259766, 0.006437312126159668, 0.006481664180755615, 0.0064778561592102055, 0.006666751861572265, 0.006644703865051269, 0.006589407920837402, 0.006631296157836914, 0.006559264183044433, 0.00648035192489624, 0.006557184219360352, 0.006493152141571045, 0.006340479850769043, 0.006358463764190674, 0.006373600006103515, 0.006337088108062744, 0.006366047859191894, 0.006393887996673584, 0.0063770880699157715, 0.0063517122268676755, 0.006394464015960694, 0.0063705921173095705, 0.006360288143157959, 0.006467872142791748, 0.00675212812423706, 0.0069593281745910646, 0.006703680038452149, 0.006617824077606201, 0.006662720203399658, 0.006603104114532471 ] }, "throughput": { "unit": "tokens/s", "value": 305.52616031083295 }, "energy": { "unit": "kWh", "cpu": 8.287463650446639e-08, "ram": 4.529026397276917e-08, "gpu": 1.5974760254545448e-07, "total": 2.8791250302269e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6946554.869978615 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1240.076288, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 75, "total": 0.5147668170928955, "mean": 0.006863557561238607, "stdev": 0.00016765898211937858, "p50": 0.0068150081634521485, "p90": 0.0070033855438232425, "p95": 0.007109094429016113, "p99": 0.00750143810272217, "values": [ 0.007907999992370605, 0.007107903957366943, 0.006861504077911377, 0.006826687812805176, 0.006835775852203369, 0.006827199935913086, 0.006787487983703613, 0.00682147216796875, 0.00711187219619751, 0.006810624122619629, 0.00680787181854248, 0.006823455810546875, 0.00681276798248291, 0.006819424152374268, 0.006800447940826416, 0.0067972478866577144, 0.006818943977355957, 0.006776832103729248, 0.006794655799865722, 0.006819263935089111, 0.006788864135742188, 0.0069064640998840335, 0.006806335926055908, 0.006788991928100586, 0.006783679962158203, 0.006808063983917236, 0.006789375782012939, 0.006900959968566894, 0.006835487842559815, 0.006805791854858399, 0.006781023979187012, 0.006796895980834961, 0.006818687915802002, 0.006778848171234131, 0.006891456127166748, 0.00682041597366333, 0.006791200160980225, 0.007144927978515625, 0.006990784168243408, 0.006867360115051269, 0.0068130559921264645, 0.00678656005859375, 0.006804416179656983, 0.006787936210632325, 0.006766304016113282, 0.006793024063110352, 0.006798208236694336, 0.00689788818359375, 0.006798943996429443, 0.006981791973114014, 0.006979072093963623, 0.006961440086364746, 0.006933216094970703, 0.006900512218475342, 0.006855904102325439, 0.0068624958992004395, 0.00670959997177124, 0.00674294376373291, 0.006698080062866211, 0.006728896141052246, 0.0068421120643615725, 0.006711616039276123, 0.006705952167510986, 0.006736095905303955, 0.006719679832458496, 0.006678271770477295, 0.006726047992706299, 0.0068973441123962404, 0.0068150081634521485, 0.00735859203338623, 0.007002560138702393, 0.007003935813903808, 0.006999072074890137, 0.007092671871185303, 0.00701251220703125 ] }, "throughput": { "unit": "tokens/s", "value": 145.69703700707927 }, "energy": { "unit": "kWh", "cpu": 7.725285981683363e-08, "ram": 4.225428045253622e-08, "gpu": 1.5173913313021688e-07, "total": 2.7124627339958676e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3686686.5946830865 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 75, "total": 0.48444636869430563, "mean": 0.006459284915924074, "stdev": 0.0001493629782985224, "p50": 0.006419456005096436, "p90": 0.006602547264099121, "p95": 0.0066927617073059085, "p99": 0.007003504762649539, "values": [ 0.007371776103973389, 0.006691840171813965, 0.006462463855743408, 0.006432767868041992, 0.006443071842193604, 0.00643174409866333, 0.006393856048583985, 0.006428671836853027, 0.0067051520347595215, 0.006408192157745361, 0.006412288188934326, 0.00643174409866333, 0.006409215927124024, 0.006415359973907471, 0.006408192157745361, 0.00638259220123291, 0.006425600051879882, 0.0063805441856384275, 0.00637337589263916, 0.006428671836853027, 0.006397952079772949, 0.006493184089660644, 0.006412288188934326, 0.006396927833557129, 0.00637337589263916, 0.0064143362045288085, 0.006398975849151611, 0.006465536117553711, 0.0064430079460144046, 0.006415359973907471, 0.006388735771179199, 0.006404096126556396, 0.006425600051879882, 0.006376448154449463, 0.006499328136444092, 0.006429696083068847, 0.006386688232421875, 0.006694911956787109, 0.006551551818847656, 0.006466559886932373, 0.006419456005096436, 0.0063805441856384275, 0.0064133119583129885, 0.006394879817962646, 0.006363135814666748, 0.006392831802368164, 0.006404096126556396, 0.006494207859039307, 0.006392831802368164, 0.00657203197479248, 0.006532095909118653, 0.006553599834442139, 0.006535168170928955, 0.006501376152038574, 0.006463488101959228, 0.0064542717933654785, 0.0063211522102355954, 0.006347775936126709, 0.006307839870452881, 0.0063170561790466305, 0.0064542717933654785, 0.006322175979614258, 0.006308864116668702, 0.006334464073181153, 0.006326335906982422, 0.0062904319763183595, 0.006306816101074219, 0.006500351905822754, 0.00642252779006958, 0.006874112129211426, 0.006594624042510986, 0.006603775978088379, 0.0066007041931152345, 0.006662112236022949, 0.0066119680404663084 ] }, "throughput": { "unit": "tokens/s", "value": 154.81589882104444 }, "energy": null, "efficiency": null } } }