{ "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 7643 48-Core Processor", "cpu_count": 96, "cpu_ram_mb": 1082028.982272, "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.4.0", "optimum_benchmark_commit": "a4519acdcbbeba6e03efbda65aae011ed2a194fb", "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": 901.914624, "max_global_vram": 1011.748864, "max_process_vram": 42928.676864, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 6.60911572265625, "mean": 6.60911572265625, "stdev": 0.0, "p50": 6.60911572265625, "p90": 6.60911572265625, "p95": 6.60911572265625, "p99": 6.60911572265625, "values": [ 6.60911572265625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1056.07168, "max_global_vram": 1104.453632, "max_process_vram": 274563.104768, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 67, "total": 0.5149498314857482, "mean": 0.0076858183803843036, "stdev": 0.0006237472993904203, "p50": 0.007586757183074951, "p90": 0.007795749950408936, "p95": 0.007844085788726807, "p99": 0.009628375682830826, "values": [ 0.007661156177520752, 0.007595876216888428, 0.0075673961639404295, 0.007574757099151611, 0.0075629158020019535, 0.007641316890716553, 0.007819557189941406, 0.007591236114501953, 0.007589315891265869, 0.007528037071228027, 0.007528835773468017, 0.00752531623840332, 0.0075483560562133786, 0.007720517158508301, 0.00759779691696167, 0.007525156021118164, 0.007561956882476807, 0.007525956153869629, 0.007533636093139649, 0.007512196063995362, 0.007527875900268555, 0.007550916194915771, 0.012681180953979493, 0.007687236785888672, 0.0075352368354797365, 0.007543396949768066, 0.007534756183624268, 0.007537637233734131, 0.007519395828247071, 0.00755763578414917, 0.007538115978240967, 0.007533795833587646, 0.007535396099090576, 0.007540036201477051, 0.007528835773468017, 0.0075293159484863285, 0.00753299617767334, 0.007608996868133545, 0.007602275848388672, 0.007608516216278076, 0.0076441969871520994, 0.007608995914459228, 0.0076245169639587405, 0.007616676807403564, 0.007595236778259277, 0.008055718421936035, 0.007969318866729736, 0.007792997837066651, 0.007809476852416992, 0.007854598045349121, 0.007799878120422364, 0.007610276222229004, 0.007626276016235351, 0.007569476127624512, 0.007590435981750489, 0.00760163688659668, 0.007581796169281006, 0.007604996204376221, 0.007575555801391602, 0.00762019681930542, 0.007586757183074951, 0.007582595825195312, 0.007592996120452881, 0.0075648360252380375, 0.0076123571395874026, 0.0077382769584655765, 0.00757491683959961 ] }, "throughput": { "unit": "tokens/s", "value": 260.2195239357187 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1056.29696, "max_global_vram": 1107.521536, "max_process_vram": 260722.499584, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 67, "total": 0.48329527759552005, "mean": 0.00721336235217194, "stdev": 8.236342957473746e-05, "p50": 0.007195553779602051, "p90": 0.007332483100891113, "p95": 0.007415218830108643, "p99": 0.007433270959854126, "values": [ 0.007100995063781738, 0.007132674217224121, 0.007149953842163086, 0.007150914192199707, 0.007209314823150635, 0.007206913948059082, 0.007142273902893066, 0.00717043399810791, 0.0071297941207885745, 0.007162593841552735, 0.0071645150184631344, 0.007125793933868408, 0.00711731481552124, 0.007157633781433106, 0.007131393909454346, 0.007263875007629395, 0.00719011402130127, 0.007182594776153565, 0.007144834041595459, 0.007237634181976318, 0.007156993865966797, 0.007154594898223877, 0.007250275135040283, 0.007200674057006836, 0.0072513937950134276, 0.007057633876800537, 0.0071744341850280766, 0.007168993949890136, 0.007192355155944824, 0.007122593879699707, 0.007226434230804444, 0.007158274173736572, 0.0072109150886535646, 0.007231235027313232, 0.007138434886932373, 0.007122114181518555, 0.007220835208892822, 0.007233794212341309, 0.007233475208282471, 0.007211874961853027, 0.007274274826049805, 0.00717955493927002, 0.007345634937286377, 0.007225153923034668, 0.007240835189819336, 0.007430116176605225, 0.007428034782409668, 0.007315235137939453, 0.007384195804595948, 0.00738531494140625, 0.0074297947883605955, 0.007323715209960937, 0.0071950750350952145, 0.007203074932098388, 0.007229155063629151, 0.0072635550498962404, 0.007210275173187256, 0.007164834976196289, 0.0071729950904846195, 0.007202434062957764, 0.007439394950866699, 0.007187395095825195, 0.007256194114685059, 0.007188835144042969, 0.007195553779602051, 0.007247875213623047, 0.007187873840332031 ] }, "throughput": { "unit": "tokens/s", "value": 138.6316049545051 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 67, "total": 0.44836103105545033, "mean": 0.006691955687394783, "stdev": 8.214276323270574e-05, "p50": 0.0066696319580078125, "p90": 0.006810433101654053, "p95": 0.006881681060791015, "p99": 0.00696362063407898, "values": [ 0.006613632202148437, 0.006618112087249756, 0.0066409921646118164, 0.006641632080078125, 0.006651552200317383, 0.006638271808624268, 0.006658112049102783, 0.006632991790771484, 0.00661843204498291, 0.006623550891876221, 0.006647871971130371, 0.006594750881195068, 0.006618752002716065, 0.006641151905059814, 0.00663267183303833, 0.006739552974700928, 0.006641790866851806, 0.0066501121520996095, 0.006627711772918701, 0.006715551853179931, 0.006637472152709961, 0.00663043212890625, 0.006729951858520508, 0.006684832096099854, 0.006718751907348633, 0.006628671169281006, 0.006653471946716309, 0.006655871868133545, 0.006663072109222412, 0.006611072063446045, 0.0067235522270202635, 0.006610751152038574, 0.006635712146759033, 0.0066976318359375, 0.006592031955718994, 0.006637472152709961, 0.006696991920471192, 0.006708992004394531, 0.006715871810913086, 0.006701952934265136, 0.006721951961517334, 0.006678271770477295, 0.0067784318923950196, 0.006710432052612305, 0.0067638721466064455, 0.006970273971557617, 0.006960193157196045, 0.006828193187713623, 0.006867232799530029, 0.006841793060302735, 0.0068878731727600095, 0.006798593044281006, 0.006694272041320801, 0.006657631874084473, 0.006708192825317383, 0.006674111843109131, 0.00666707181930542, 0.006650911808013916, 0.0066789121627807615, 0.006688831806182861, 0.006896993160247803, 0.00665123176574707, 0.0066696319580078125, 0.006676032066345215, 0.006675392150878906, 0.0067029128074646, 0.006680031776428222 ] }, "throughput": { "unit": "tokens/s", "value": 149.43314730604646 }, "energy": null, "efficiency": null } } }