{ "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": "1173614d292a81ced361d45dc81b00032c019f3c", "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.799936, "max_global_vram": 3298.36544, "max_process_vram": 46750.339072, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.3227255859375, "mean": 8.3227255859375, "stdev": 0.0, "p50": 8.3227255859375, "p90": 8.3227255859375, "p95": 8.3227255859375, "p99": 8.3227255859375, "values": [ 8.3227255859375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1056.149504, "max_global_vram": 3392.753664, "max_process_vram": 286020.243456, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 58, "total": 0.5043527278900147, "mean": 0.008695736687758873, "stdev": 0.00043363892922253694, "p50": 0.008611246585845948, "p90": 0.009152827644348145, "p95": 0.009367706775665284, "p99": 0.00992751947402954, "values": [ 0.009951960563659669, 0.00990908145904541, 0.00935964298248291, 0.009287802696228028, 0.008594845771789551, 0.0084050874710083, 0.008712606430053711, 0.008663644790649414, 0.008892765045166015, 0.009123643875122071, 0.008933085441589356, 0.008699806213378906, 0.00891276454925537, 0.00941340160369873, 0.009132603645324706, 0.00913900375366211, 0.009130683898925782, 0.009185083389282226, 0.009113404273986816, 0.009117083549499512, 0.009128124237060546, 0.009095323562622071, 0.008530205726623535, 0.00840860652923584, 0.008359967231750488, 0.008442365646362304, 0.00825660800933838, 0.008165726661682129, 0.008620925903320312, 0.008365246772766113, 0.008119647979736327, 0.008557085990905761, 0.008540446281433106, 0.008163647651672363, 0.008160926818847657, 0.008061247825622559, 0.008165887832641602, 0.008283967971801759, 0.008323166847229004, 0.008594205856323242, 0.00827228832244873, 0.008561406135559082, 0.009095325469970703, 0.00864460563659668, 0.00903116512298584, 0.008685246467590332, 0.008668126106262207, 0.008735005378723144, 0.009081084251403809, 0.008601567268371583, 0.008380766868591308, 0.008623005867004395, 0.008521406173706055, 0.008564446449279785, 0.008023967742919922, 0.00819996738433838, 0.008198047637939453, 0.00844396686553955 ] }, "throughput": { "unit": "tokens/s", "value": 229.99776463050355 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1056.149504, "max_global_vram": 3394.138112, "max_process_vram": 277199.347712, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 58, "total": 0.5017426557540894, "mean": 0.008650735444036025, "stdev": 0.00035277750666169933, "p50": 0.008608125686645507, "p90": 0.009150827693939208, "p95": 0.009189363908767699, "p99": 0.009523836193084717, "values": [ 0.009664921760559083, 0.009247163772583007, 0.009046843528747558, 0.008823164939880371, 0.008476926803588867, 0.008525886535644532, 0.008708765983581543, 0.008642366409301758, 0.008639645576477051, 0.00941740322113037, 0.008612445831298828, 0.008699805259704589, 0.00911500358581543, 0.009175643920898438, 0.009060283660888672, 0.009179163932800292, 0.009107644081115723, 0.009150203704833984, 0.009114684104919434, 0.009152283668518066, 0.009033723831176758, 0.009114204406738281, 0.008609565734863281, 0.008657885551452636, 0.008284607887268066, 0.008513887405395508, 0.00839804744720459, 0.008516766548156739, 0.008388445854187012, 0.00831628704071045, 0.008713725090026856, 0.008388446807861329, 0.008159808158874512, 0.008341727256774902, 0.008332926750183106, 0.008629085540771485, 0.008512125968933106, 0.008465725898742676, 0.008523486137390136, 0.00869100570678711, 0.008485726356506348, 0.008784605979919433, 0.008529086112976075, 0.008606685638427734, 0.00849388599395752, 0.008407647132873536, 0.00866364574432373, 0.008683165550231934, 0.008701886177062988, 0.008532285690307617, 0.00835772705078125, 0.008249406814575195, 0.008361407279968262, 0.008157888412475585, 0.008158528327941894, 0.00812012767791748, 0.00805452823638916, 0.008242686271667481 ] }, "throughput": { "unit": "tokens/s", "value": 115.59710806893514 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.455040121078491, "mean": 0.007845519328939505, "stdev": 0.0003320543935552648, "p50": 0.007751569032669067, "p90": 0.008268383502960205, "p95": 0.008375510549545287, "p99": 0.008619442663192749, "values": [ 0.008839324951171875, 0.008453566551208496, 0.00824428653717041, 0.007977249145507813, 0.007699329853057862, 0.0076860499382019045, 0.007786048889160156, 0.00769228982925415, 0.007759489059448242, 0.008446366310119628, 0.007780929088592529, 0.007776608943939209, 0.008363006591796875, 0.008268287658691406, 0.008237567901611328, 0.008318367004394532, 0.008268607139587403, 0.00826268768310547, 0.008238368034362793, 0.00824588680267334, 0.008227167129516601, 0.008262046813964844, 0.007718850135803223, 0.007743649005889893, 0.007444770812988282, 0.007669089794158935, 0.007499169826507568, 0.007719009876251221, 0.0075889301300048825, 0.007457571029663086, 0.007844608783721924, 0.007544130802154541, 0.007360610961914062, 0.00742972993850708, 0.007477890968322754, 0.007676449775695801, 0.007633729934692383, 0.007632288932800293, 0.007641729831695557, 0.007865728855133057, 0.007635169982910156, 0.008150688171386719, 0.00787260913848877, 0.007928927898406983, 0.00787260913848877, 0.007734048843383789, 0.007987648963928222, 0.008023968696594238, 0.00806764793395996, 0.007863327980041504, 0.007666849136352539, 0.007583809852600098, 0.007644609928131103, 0.0074553308486938474, 0.007415171146392822, 0.007465091228485108, 0.0073201308250427245, 0.007571010112762451 ] }, "throughput": { "unit": "tokens/s", "value": 127.46128816627008 }, "energy": null, "efficiency": null } } }