{ "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.285632, "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.4.0", "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.797696, "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.25479541015625, "mean": 7.25479541015625, "stdev": 0.0, "p50": 7.25479541015625, "p90": 7.25479541015625, "p95": 7.25479541015625, "p99": 7.25479541015625, "values": [ 7.25479541015625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.886562824249268e-07, "ram": 5.259814096029914e-07, "gpu": 1.8400014719999538e-06, "total": 3.354639164027872e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1030.692864, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 78, "total": 0.4906773099899292, "mean": 0.006290734743460631, "stdev": 0.0002247822850397416, "p50": 0.006231823921203613, "p90": 0.0063926400184631344, "p95": 0.006660827231407164, "p99": 0.007288640499114991, "values": [ 0.007524543762207031, 0.007218175888061523, 0.006807680130004883, 0.006350399971008301, 0.0062707200050354005, 0.0063333120346069334, 0.006175648212432861, 0.006331935882568359, 0.006246335983276367, 0.006251743793487549, 0.006174272060394287, 0.006177663803100586, 0.006173279762268067, 0.006205344200134277, 0.006176799774169922, 0.006315584182739258, 0.006341343879699707, 0.006341087818145752, 0.006176928043365479, 0.0061736001968383785, 0.006187935829162597, 0.006160607814788818, 0.00615174388885498, 0.006134719848632813, 0.006155680179595948, 0.006208447933197021, 0.006398015975952148, 0.006168416023254394, 0.006255551815032959, 0.0062559680938720705, 0.006263904094696045, 0.00619209623336792, 0.006184095859527588, 0.006263008117675781, 0.006236800193786621, 0.006246335983276367, 0.006222591876983642, 0.006182112216949463, 0.006194047927856446, 0.006235775947570801, 0.006234560012817383, 0.006200575828552246, 0.006215328216552734, 0.00617955207824707, 0.006223936080932618, 0.006238783836364746, 0.006221407890319824, 0.006182047843933105, 0.006155488014221192, 0.006627007961273194, 0.006355999946594238, 0.00631660795211792, 0.006297887802124024, 0.006285408020019531, 0.006368480205535889, 0.006355264186859131, 0.0062351999282836915, 0.006169695854187012, 0.006159711837768555, 0.006186207771301269, 0.006265312194824219, 0.006157919883728027, 0.006634912014007568, 0.006947904109954834, 0.006390336036682129, 0.006275968074798584, 0.006325823783874512, 0.006348991870880127, 0.006276127815246582, 0.0061476478576660155, 0.006164735794067383, 0.006147039890289307, 0.006180960178375244, 0.006159296035766601, 0.006139232158660889, 0.006147583961486816, 0.006465023994445801, 0.006229087829589843 ] }, "throughput": { "unit": "tokens/s", "value": 317.9278862582861 }, "energy": { "unit": "kWh", "cpu": 7.656497446866874e-08, "ram": 4.1861344574262984e-08, "gpu": 1.653890212000003e-07, "total": 2.83815340242932e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7046835.446907479 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1046.335488, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 78, "total": 0.5116925754547118, "mean": 0.006560161223778358, "stdev": 0.00023119995258272098, "p50": 0.006490256071090698, "p90": 0.006647932863235474, "p95": 0.006848396825790404, "p99": 0.007670794644355775, "values": [ 0.007581952095031738, 0.007968224048614502, 0.006640511989593506, 0.006457695960998535, 0.0064839677810668945, 0.00648419189453125, 0.006467103958129883, 0.006431488037109375, 0.006535808086395264, 0.006487711906433106, 0.006465248107910156, 0.006450655937194824, 0.006480415821075439, 0.006440288066864014, 0.006506432056427002, 0.007112832069396973, 0.00663702392578125, 0.006452383995056152, 0.006424960136413574, 0.006466527938842773, 0.0064701118469238286, 0.0064572482109069825, 0.006467743873596192, 0.006514592170715332, 0.0064336638450622555, 0.006593664169311523, 0.006521344184875488, 0.006564032077789306, 0.006458816051483155, 0.0064590082168579106, 0.0064988799095153805, 0.006479008197784424, 0.006582719802856445, 0.006479008197784424, 0.006457695960998535, 0.006493343830108643, 0.006486368179321289, 0.006508255958557129, 0.0065025601387023926, 0.006473887920379639, 0.006445087909698486, 0.006564511775970459, 0.006512063980102539, 0.006492800235748291, 0.006438623905181884, 0.006447679996490478, 0.006486720085144043, 0.0064653120040893556, 0.006475999832153321, 0.006586271762847901, 0.006643680095672608, 0.006607744216918945, 0.006600543975830078, 0.006668352127075196, 0.006579360008239746, 0.006596159934997558, 0.006595359802246094, 0.006462207794189453, 0.006426176071166992, 0.006493855953216552, 0.0066022400856018066, 0.006526495933532715, 0.007038688182830811, 0.0068148159980773925, 0.006657855987548828, 0.006630847930908203, 0.006575551986694336, 0.006613664150238037, 0.006681471824645996, 0.006446303844451905, 0.006418496131896973, 0.006411007881164551, 0.006440159797668457, 0.006446623802185058, 0.006458975791931152, 0.006436511993408203, 0.006516384124755859, 0.006510591983795166 ] }, "throughput": { "unit": "tokens/s", "value": 152.43527801959186 }, "energy": { "unit": "kWh", "cpu": 7.130366526080885e-08, "ram": 3.898959505312199e-08, "gpu": 1.5428201642962984e-07, "total": 2.6457527674356075e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3779642.6495633936 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 78, "total": 0.4810875225067139, "mean": 0.006167788750086075, "stdev": 0.00020331450613511923, "p50": 0.006100992202758789, "p90": 0.006262374401092529, "p95": 0.0064446977853775, "p99": 0.007119482898712159, "values": [ 0.007050240039825439, 0.007351295948028564, 0.006242303848266601, 0.006077439785003662, 0.006103040218353272, 0.006095871925354004, 0.006088704109191895, 0.006053887844085694, 0.006157311916351318, 0.006090752124786377, 0.006073344230651856, 0.006073344230651856, 0.006095871925354004, 0.006051839828491211, 0.006121471881866455, 0.006704160213470459, 0.006255616188049316, 0.0060631041526794435, 0.006047743797302246, 0.00606822395324707, 0.00608460807800293, 0.006080512046813965, 0.006086656093597412, 0.006124544143676758, 0.006052864074707031, 0.006060031890869141, 0.006142911911010743, 0.006173696041107178, 0.006080512046813965, 0.006081535816192627, 0.006106112003326416, 0.006086656093597412, 0.006203392028808594, 0.006098944187164307, 0.006079487800598145, 0.006077439785003662, 0.006108160018920898, 0.006128640174865723, 0.006124544143676758, 0.006094848155975342, 0.006067200183868408, 0.006184959888458252, 0.006132736206054688, 0.00611737585067749, 0.006064127922058105, 0.006069248199462891, 0.006067200183868408, 0.006087679862976075, 0.006098944187164307, 0.0062044157981872555, 0.006258687973022461, 0.0062228479385375976, 0.006215712070465088, 0.006281216144561768, 0.006196224212646485, 0.006206463813781738, 0.006217728137969971, 0.006080512046813965, 0.006048768043518066, 0.006119423866271972, 0.006166528224945069, 0.006119423866271972, 0.006628352165222168, 0.006412288188934326, 0.006270976066589356, 0.006247424125671387, 0.0061931519508361815, 0.00621670389175415, 0.006303743839263916, 0.006056960105895996, 0.006041632175445556, 0.006032383918762207, 0.006054912090301514, 0.006061056137084961, 0.006074368000030517, 0.0060590081214904785, 0.006132736206054688, 0.006132736206054688 ] }, "throughput": { "unit": "tokens/s", "value": 162.13266058861765 }, "energy": null, "efficiency": null } } }