{ "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-211.872.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.1", "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": 792.342528, "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.45544384765625, "mean": 7.45544384765625, "stdev": 0.0, "p50": 7.45544384765625, "p90": 7.45544384765625, "p95": 7.45544384765625, "p99": 7.45544384765625, "values": [ 7.45544384765625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0015271152775698e-06, "ram": 5.329613729552476e-07, "gpu": 0.0, "total": 1.5344884882328174e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1193.04192, "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.49396098995208737, "mean": 0.006586146532694498, "stdev": 0.00023901342544483658, "p50": 0.006520287990570068, "p90": 0.006688748836517334, "p95": 0.00677765097618103, "p99": 0.007484979085922247, "values": [ 0.008298624038696288, 0.006668191909790039, 0.006536704063415527, 0.006521567821502685, 0.006532608032226562, 0.0065559039115905765, 0.006519360065460205, 0.006517407894134522, 0.006749695777893067, 0.006551392078399658, 0.006507199764251709, 0.006532095909118653, 0.006512800216674805, 0.006518239974975586, 0.006658080101013183, 0.006570591926574707, 0.006624927997589111, 0.006625279903411865, 0.006533728122711181, 0.006580607891082764, 0.0065445761680603025, 0.006515967845916748, 0.006542143821716309, 0.0065103678703308104, 0.0065493760108947755, 0.0065016961097717286, 0.006481023788452148, 0.006510464191436768, 0.006499584197998047, 0.006651040077209473, 0.006474495887756348, 0.006481120109558106, 0.006484543800354004, 0.007137152194976806, 0.006714687824249267, 0.007199103832244873, 0.006842879772186279, 0.0066665921211242676, 0.006679743766784668, 0.006644415855407715, 0.0066960639953613284, 0.006538591861724854, 0.006397600173950195, 0.006421599864959717, 0.006414303779602051, 0.006466015815734864, 0.006490272045135498, 0.006459712028503418, 0.00644159984588623, 0.006506144046783447, 0.006483327865600586, 0.006631360054016113, 0.006671711921691894, 0.006646399974822998, 0.006659327983856201, 0.006671040058135986, 0.006598239898681641, 0.0066947522163391116, 0.0066070079803466795, 0.006473152160644531, 0.0064759359359741215, 0.0064512319564819336, 0.006473120212554932, 0.006470848083496094, 0.006436255931854248, 0.0064992961883544925, 0.006521247863769532, 0.006475423812866211, 0.006461535930633545, 0.006501023769378662, 0.006481120109558106, 0.006489535808563232, 0.006503583908081055, 0.00648633623123169, 0.006520287990570068 ] }, "throughput": { "unit": "tokens/s", "value": 303.667704639084 }, "energy": { "unit": "kWh", "cpu": 8.200185728448844e-08, "ram": 4.483430733920516e-08, "gpu": 1.6813998125517443e-07, "total": 2.9497614587886805e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6780209.2743502725 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1211.449344, "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.5171841287612914, "mean": 0.006895788383483887, "stdev": 0.00020244286006321953, "p50": 0.00682473611831665, "p90": 0.00703386869430542, "p95": 0.007126521730422973, "p99": 0.007792124156951906, "values": [ 0.007181983947753906, 0.00684003210067749, 0.0068412160873413085, 0.006854656219482422, 0.006802271842956543, 0.006800767898559571, 0.006819519996643066, 0.006806431770324707, 0.007088799953460693, 0.00696943998336792, 0.006798367977142334, 0.006811583995819092, 0.0068290882110595705, 0.0068576960563659665, 0.006918176174163819, 0.006787487983703613, 0.006861760139465332, 0.006844064235687256, 0.006754015922546387, 0.006792352199554443, 0.006808063983917236, 0.006877535820007324, 0.006816959857940673, 0.006830399990081787, 0.006776927947998047, 0.006779839992523193, 0.006800960063934327, 0.006768352031707764, 0.006999040126800537, 0.0068023362159729, 0.006771135807037354, 0.00682473611831665, 0.00805942440032959, 0.007102399826049805, 0.007320032119750976, 0.007698207855224609, 0.007036287784576416, 0.007030111789703369, 0.007030240058898926, 0.0070284161567687985, 0.006992576122283936, 0.006818079948425293, 0.006709792137145996, 0.006700767993927002, 0.006721471786499024, 0.006773856163024903, 0.006761983871459961, 0.006910304069519043, 0.00678169584274292, 0.006775231838226319, 0.0071027522087097165, 0.007005887985229492, 0.006957632064819336, 0.006999743938446045, 0.006961120128631592, 0.007003392219543457, 0.006989952087402344, 0.006995423793792725, 0.006915103912353515, 0.006793856143951416, 0.006882527828216553, 0.006849215984344482, 0.0067835841178894045, 0.0068000640869140625, 0.006802112102508545, 0.006773312091827393, 0.006792768001556397, 0.006796319961547851, 0.006835519790649414, 0.006788512229919433, 0.006787936210632325, 0.00675878381729126, 0.006782911777496338, 0.006882688045501709, 0.006776127815246582 ] }, "throughput": { "unit": "tokens/s", "value": 145.01605101384803 }, "energy": { "unit": "kWh", "cpu": 7.845053989081157e-08, "ram": 4.2890393426706815e-08, "gpu": 1.6893236047454823e-07, "total": 2.9027329379206654e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3445029.292692482 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 75, "total": 0.4869661102294923, "mean": 0.006492881469726563, "stdev": 0.000186499250711746, "p50": 0.006429696083068847, "p90": 0.006634700870513916, "p95": 0.0067100671291351315, "p99": 0.007333457775115969, "values": [ 0.0067645440101623535, 0.006446080207824707, 0.00643071985244751, 0.006462463855743408, 0.006411200046539307, 0.006386688232421875, 0.0064174079895019534, 0.006416384220123291, 0.00667852783203125, 0.006568992137908935, 0.006397952079772949, 0.006418432235717773, 0.006434815883636475, 0.006427648067474365, 0.006515711784362793, 0.00639686393737793, 0.006429696083068847, 0.006451200008392334, 0.0063640961647033695, 0.006394879817962646, 0.006416384220123291, 0.006485983848571777, 0.0064245758056640625, 0.00643993616104126, 0.006385663986206055, 0.00638976001739502, 0.006409215927124024, 0.006376448154449463, 0.006600671768188476, 0.006414303779602051, 0.00637337589263916, 0.006434815883636475, 0.007510015964508057, 0.006661119937896728, 0.006903808116912841, 0.007271423816680909, 0.0066375679969787596, 0.0066304001808166506, 0.006601727962493896, 0.006627327919006347, 0.00657919979095459, 0.006429696083068847, 0.006325247764587402, 0.006310944080352783, 0.006331391811370849, 0.0063836159706115725, 0.006364160060882569, 0.006488031864166259, 0.006393856048583985, 0.006376448154449463, 0.006686719894409179, 0.006595583915710449, 0.006549503803253174, 0.006594560146331787, 0.006563839912414551, 0.0066078720092773435, 0.006591487884521485, 0.0065771517753601075, 0.006516736030578613, 0.006394879817962646, 0.006490111827850342, 0.0064481601715087895, 0.006385663986206055, 0.006375423908233643, 0.006412352085113525, 0.00638156795501709, 0.0063805441856384275, 0.006394879817962646, 0.0064440321922302245, 0.006366208076477051, 0.006396927833557129, 0.006367231845855713, 0.00637337589263916, 0.006494207859039307, 0.006385663986206055 ] }, "throughput": { "unit": "tokens/s", "value": 154.01482449087638 }, "energy": null, "efficiency": null } } }