{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.2.2+rocm5.7", "_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": false, "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 7763 64-Core Processor", "cpu_count": 128, "cpu_ram_mb": 1082015.236096, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "Advanced Micro Devices, Inc. [AMD/ATI]" ], "gpu_count": 1, "gpu_vram_mb": 68702699520, "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "d0c0a5c5918412583a4f2490ab7e3d1b48375998", "transformers_version": "4.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 901.337088, "max_global_vram": 2717.22496, "max_process_vram": 47104.217088, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.885619140625, "mean": 7.885619140625, "stdev": 0.0, "p50": 7.885619140625, "p90": 7.885619140625, "p95": 7.885619140625, "p99": 7.885619140625, "values": [ 7.885619140625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1055.8464, "max_global_vram": 2811.609088, "max_process_vram": 279066.68544, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 57, "total": 0.5108577890396119, "mean": 0.008962417351572138, "stdev": 0.00010995614849756485, "p50": 0.008922046661376953, "p90": 0.009125085830688476, "p95": 0.00918156623840332, "p99": 0.009255780525207518, "values": [ 0.008915327072143554, 0.00918668556213379, 0.009036766052246094, 0.008871807098388671, 0.008858846664428712, 0.008822047233581543, 0.0088636474609375, 0.008889086723327637, 0.008918046951293945, 0.009101085662841797, 0.0092634859085083, 0.009090846061706542, 0.008906686782836914, 0.009171485900878906, 0.00903516674041748, 0.008940926551818848, 0.00889372730255127, 0.008808287620544433, 0.008866847038269043, 0.008876928329467773, 0.008864127159118652, 0.008884926795959473, 0.009180286407470702, 0.008924607276916505, 0.008895486831665038, 0.008922046661376953, 0.008965086936950684, 0.009014845848083496, 0.008956927299499512, 0.008864446640014649, 0.008821086883544922, 0.00906380558013916, 0.009161086082458495, 0.008953726768493653, 0.008940286636352539, 0.00909180736541748, 0.0090428466796875, 0.00899628734588623, 0.009025087356567383, 0.008947007179260254, 0.00891724681854248, 0.008918367385864257, 0.008866847038269043, 0.008861086845397948, 0.009044285774230956, 0.00924972629547119, 0.009082846641540528, 0.008949247360229493, 0.00897132682800293, 0.008934367179870605, 0.008904287338256836, 0.008888127326965332, 0.008913247108459473, 0.00891788673400879, 0.00889372730255127, 0.008874847412109374, 0.008836767196655274 ] }, "throughput": { "unit": "tokens/s", "value": 223.15408014883073 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1055.8464, "max_global_vram": 2812.993536, "max_process_vram": 304332.5952, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 57, "total": 0.49242761039733884, "mean": 0.00863908088416384, "stdev": 0.00011748815614803496, "p50": 0.008601728439331055, "p90": 0.008815071105957032, "p95": 0.008883614921569825, "p99": 0.008953303871154785, "values": [ 0.00863484764099121, 0.008793247222900391, 0.008466689109802247, 0.00855116844177246, 0.008541568756103516, 0.008504128456115723, 0.008525248527526855, 0.008548288345336915, 0.008601728439331055, 0.00893260669708252, 0.00882236671447754, 0.00862012767791748, 0.008536447525024414, 0.008689727783203125, 0.00865308666229248, 0.008567808151245117, 0.008562209129333496, 0.008518848419189453, 0.008550688743591309, 0.008553888320922852, 0.008563167572021484, 0.008702848434448242, 0.008878046989440919, 0.008574527740478516, 0.008590527534484863, 0.008595808029174805, 0.00855724811553955, 0.008597887992858887, 0.008597248077392578, 0.008548129081726074, 0.008588128089904785, 0.008870368003845214, 0.008638688087463379, 0.00865068817138672, 0.00874092674255371, 0.008979645729064942, 0.008786847114562988, 0.0087588472366333, 0.00881020736694336, 0.008650527954101563, 0.008566368103027343, 0.008575807571411133, 0.008553728103637696, 0.008478049278259278, 0.008905886650085449, 0.008689408302307128, 0.008719967842102052, 0.00854508876800537, 0.008665247917175293, 0.008643327713012695, 0.008625087738037109, 0.008621408462524413, 0.008652928352355958, 0.008661567687988281, 0.008551968574523925, 0.008609726905822753, 0.008507007598876954 ] }, "throughput": { "unit": "tokens/s", "value": 115.75305445201745 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 57, "total": 0.45511639070510856, "mean": 0.007984498082545767, "stdev": 0.00011054331236862282, "p50": 0.007944931030273437, "p90": 0.00816646499633789, "p95": 0.008201121139526367, "p99": 0.008294068641662596, "values": [ 0.008018369674682618, 0.008145249366760254, 0.007849250793457031, 0.007910211086273194, 0.007876131057739258, 0.00787005090713501, 0.00792845106124878, 0.00791836977005005, 0.007919170856475831, 0.008267809867858886, 0.008155328750610352, 0.007955970764160157, 0.007885731220245362, 0.00802621078491211, 0.008004929542541504, 0.007937891006469727, 0.00792349100112915, 0.007895491123199462, 0.007944931030273437, 0.007908929824829101, 0.007876931190490722, 0.008037409782409667, 0.008192608833312989, 0.007898530006408692, 0.00790557098388672, 0.007950850009918213, 0.007911970138549804, 0.007917251110076904, 0.007891810894012452, 0.007895970821380615, 0.007924130916595459, 0.008191010475158692, 0.007980131149291992, 0.007996450901031495, 0.008049570083618163, 0.008327488899230956, 0.008183169364929199, 0.008105730056762695, 0.008123330116271973, 0.008000289916992188, 0.007906370162963867, 0.007914850234985352, 0.007881411075592041, 0.007871651172637939, 0.008235170364379882, 0.008018529891967774, 0.008037249565124511, 0.007924770832061768, 0.008046210289001465, 0.007968130111694336, 0.007958849906921387, 0.007950850009918213, 0.00798156976699829, 0.007967811107635498, 0.00793229103088379, 0.00792172908782959, 0.00789677095413208 ] }, "throughput": { "unit": "tokens/s", "value": 125.24268772585907 }, "energy": null, "efficiency": null } } }