{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.2.2", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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": {}, "hub_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, "latency": true, "memory": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "gpu": [ "NVIDIA A10G" ], "gpu_count": 1, "gpu_vram_mb": 24146608128, "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.0", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1067.462656, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 58, "total": 0.4982219495773314, "mean": 0.008590033613402269, "stdev": 0.00036074888742507015, "p50": 0.008627887725830077, "p90": 0.00902956771850586, "p95": 0.009131192207336427, "p99": 0.009389777860641478, "values": [ 0.009162336349487306, 0.009356767654418945, 0.009072799682617188, 0.00896406364440918, 0.008959808349609376, 0.008865504264831544, 0.00863871955871582, 0.00878774356842041, 0.008672127723693848, 0.008888704299926758, 0.00872111988067627, 0.008648608207702637, 0.0094335355758667, 0.008930015563964843, 0.008905695915222169, 0.008956416130065918, 0.009101119995117188, 0.009125696182250977, 0.008896384239196777, 0.00874342441558838, 0.008697888374328614, 0.008688384056091309, 0.008784319877624512, 0.008581151962280273, 0.008617055892944337, 0.008749823570251464, 0.008958527565002442, 0.008810272216796875, 0.00896332836151123, 0.009011039733886719, 0.008438847541809081, 0.008534079551696777, 0.008382911682128907, 0.008613375663757325, 0.008726207733154297, 0.008314592361450195, 0.008165375709533691, 0.008174528121948242, 0.008139871597290039, 0.008257887840270995, 0.008204095840454102, 0.00815827178955078, 0.008353759765625, 0.008132479667663573, 0.00815436840057373, 0.008176959991455079, 0.008157952308654785, 0.00816153621673584, 0.008131232261657715, 0.008130559921264649, 0.008115008354187011, 0.008261728286743163, 0.00832153606414795, 0.008188480377197266, 0.008366111755371095, 0.008422847747802734, 0.008166272163391114, 0.008178688049316407 ] }, "throughput": { "unit": "tokens/s", "value": 232.82795970432258 }, "energy": { "unit": "kWh", "cpu": 1.0055252780573069e-07, "ram": 5.4978231081943286e-08, "gpu": 1.7544976371185984e-07, "total": 3.309805225995338e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6042651.646966785 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1067.462656, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 58, "total": 0.5157262048721315, "mean": 0.008891831118485021, "stdev": 0.00037493405667215807, "p50": 0.008913375854492187, "p90": 0.009345990180969238, "p95": 0.009534793901443482, "p99": 0.009789575119018555, "values": [ 0.009534848213195802, 0.009611328125, 0.009534784317016601, 0.009280703544616698, 0.009312255859375, 0.009239487648010254, 0.009054335594177246, 0.009090656280517579, 0.009059967994689942, 0.009043871879577637, 0.009112223625183106, 0.00910755157470703, 0.010025856018066406, 0.009277440071105958, 0.009249247550964356, 0.009301535606384278, 0.009424703598022461, 0.009479904174804687, 0.00904428768157959, 0.008971839904785157, 0.008914527893066406, 0.008971263885498047, 0.00892422389984131, 0.008952320098876953, 0.008913536071777344, 0.009116064071655274, 0.009067968368530273, 0.008985952377319336, 0.00920518398284912, 0.00891321563720703, 0.008845631599426269, 0.00860547161102295, 0.008792320251464843, 0.008901568412780761, 0.008855423927307128, 0.008468671798706055, 0.008435615539550781, 0.008477120399475098, 0.008429216384887696, 0.008543456077575683, 0.00843616008758545, 0.0084334077835083, 0.008642335891723633, 0.008410783767700195, 0.008441184043884277, 0.00842243194580078, 0.00867523193359375, 0.008422975540161132, 0.008405632019042968, 0.008415167808532714, 0.00867948818206787, 0.008481823921203613, 0.008654080390930175, 0.008534079551696777, 0.008687552452087402, 0.008705856323242188, 0.00842966365814209, 0.008772768020629883 ] }, "throughput": { "unit": "tokens/s", "value": 112.46277472826976 }, "energy": { "unit": "kWh", "cpu": 9.65251083788575e-08, "ram": 5.269758468757563e-08, "gpu": 2.0219625789471545e-07, "total": 3.5141895096114857e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2845606.3546514767 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 57, "total": 0.997058557510376, "mean": 0.017492255394918877, "stdev": 0.0007172593294122536, "p50": 0.017563648223876953, "p90": 0.018314649963378907, "p95": 0.01862737998962402, "p99": 0.01923031005859375, "values": [ 0.01902079963684082, 0.01862144088745117, 0.018333696365356447, 0.018301952362060548, 0.018142208099365235, 0.017717248916625978, 0.017920000076293945, 0.017703935623168944, 0.018020351409912108, 0.01782681655883789, 0.01780838394165039, 0.0194969596862793, 0.01823641586303711, 0.018158592224121094, 0.01827737617492676, 0.018580480575561522, 0.018651136398315428, 0.01797324752807617, 0.017733631134033204, 0.017670143127441407, 0.017645631790161133, 0.01778374481201172, 0.017563648223876953, 0.017559551239013673, 0.01786675262451172, 0.018067455291748045, 0.01784320068359375, 0.018176000595092775, 0.01798041534423828, 0.017314815521240236, 0.01726361656188965, 0.017131519317626954, 0.017508352279663086, 0.017671167373657228, 0.016881664276123046, 0.016627775192260743, 0.01664102363586426, 0.016627647399902343, 0.016827392578125, 0.016662527084350585, 0.01661849594116211, 0.01700864028930664, 0.01659699249267578, 0.01661644744873047, 0.01662873649597168, 0.016845823287963867, 0.01661952018737793, 0.016562175750732423, 0.016545791625976563, 0.01682329559326172, 0.01676288032531738, 0.01701888084411621, 0.016754751205444337, 0.017067968368530275, 0.017128448486328125, 0.016656383514404297, 0.01696460723876953 ] }, "throughput": { "unit": "tokens/s", "value": 57.168156845599135 }, "energy": null, "efficiency": null } } }