{ "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": "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": 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", "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.2.0", "optimum_benchmark_commit": "e65976e2695b67f37a76baa42b75347a3a733547", "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1049.74336, "max_global_vram": 2098.782208, "max_process_vram": 297952.70656, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 59, "total": 0.5015539178848266, "mean": 0.00850091386245469, "stdev": 0.0006121904479773324, "p50": 0.008356648445129395, "p90": 0.009251657295227051, "p95": 0.009350936794281006, "p99": 0.009856860561370851, "values": [ 0.009404648780822754, 0.009344968795776367, 0.00945056915283203, 0.009336488723754883, 0.009256009101867677, 0.009241608619689942, 0.00907184886932373, 0.009038249015808105, 0.00904592800140381, 0.009104008674621583, 0.00905392837524414, 0.009250569343566894, 0.010417929649353027, 0.009221288681030273, 0.008876969337463379, 0.008871369361877442, 0.008881288528442383, 0.008890727996826171, 0.008874728202819824, 0.008903207778930665, 0.008887687683105468, 0.008874888420104981, 0.008876008033752441, 0.008932007789611816, 0.008915529251098633, 0.008728487968444824, 0.008095368385314942, 0.007916967868804931, 0.007865767955780029, 0.00788800811767578, 0.007905608177185058, 0.007913607120513916, 0.007880967140197754, 0.007911847114562989, 0.007906567096710206, 0.00789968776702881, 0.007891047954559326, 0.00786512804031372, 0.007865286827087403, 0.007872006893157958, 0.007874406814575196, 0.00787792682647705, 0.007863848209381104, 0.007882728099822997, 0.008460968017578126, 0.008356648445129395, 0.008266887664794921, 0.008801128387451172, 0.008885767936706543, 0.008276807785034179, 0.00830080795288086, 0.008077608108520509, 0.00791152811050415, 0.00789296817779541, 0.007885286808013916, 0.007885927200317383, 0.007884006977081299, 0.007870247840881348, 0.007869607925415039 ] }, "throughput": { "unit": "tokens/s", "value": 235.26882313597375 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1049.74336, "max_global_vram": 2098.774016, "max_process_vram": 301873.123328, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 59, "total": 0.5063924775123598, "mean": 0.008582923347667113, "stdev": 0.000572180068327948, "p50": 0.008450087547302245, "p90": 0.009310408401489258, "p95": 0.009457608795166016, "p99": 0.009593852424621583, "values": [ 0.009348169326782226, 0.009650089263916016, 0.009497928619384765, 0.009453128814697266, 0.009300968170166016, 0.009234728813171387, 0.009183208465576171, 0.009127049446105958, 0.00925360870361328, 0.00914992904663086, 0.009215529441833497, 0.009402568817138673, 0.009553129196166993, 0.009067048072814941, 0.009054887771606445, 0.009033127784729004, 0.009057288169860839, 0.009046408653259277, 0.009101449012756347, 0.009005928993225098, 0.00903904914855957, 0.009036969184875489, 0.00902176856994629, 0.009003688812255859, 0.009011207580566406, 0.008013928413391113, 0.008559207916259765, 0.007986886978149414, 0.0080532865524292, 0.007966886997222901, 0.007973127841949463, 0.007995528221130371, 0.007981287956237792, 0.008004167556762695, 0.008026087760925293, 0.008005287170410156, 0.007980327129364013, 0.00797504711151123, 0.007985608100891113, 0.007999527931213378, 0.008067367553710937, 0.007975207805633546, 0.008159847259521484, 0.007991527080535889, 0.00870944881439209, 0.008450087547302245, 0.008465767860412598, 0.009047689437866211, 0.008396167755126954, 0.00838096809387207, 0.008401127815246582, 0.007988486766815186, 0.007986727237701417, 0.00800320816040039, 0.008088647842407226, 0.007995368003845215, 0.007986567020416259, 0.007988327026367188, 0.00795488691329956 ] }, "throughput": { "unit": "tokens/s", "value": 116.51041952644324 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.9911927680969236, "mean": 0.01708953048442972, "stdev": 0.0011617367120683234, "p50": 0.01679529571533203, "p90": 0.018582129096984864, "p95": 0.018825834465026857, "p99": 0.019465732326507567, "values": [ 0.01897121810913086, 0.01901873779296875, 0.018800178527832032, 0.018672658920288087, 0.018546417236328126, 0.01831537628173828, 0.0181920166015625, 0.0183150577545166, 0.01831857681274414, 0.01827569770812988, 0.018665456771850587, 0.02005825996398926, 0.01835441780090332, 0.01794753646850586, 0.01795889663696289, 0.01797105598449707, 0.017978736877441406, 0.01800929641723633, 0.017951536178588866, 0.01795569610595703, 0.017943538665771485, 0.01793281555175781, 0.01797105598449707, 0.017957775115966797, 0.016790096282958984, 0.016713775634765626, 0.015930415153503418, 0.0159456148147583, 0.015883854866027832, 0.015906254768371583, 0.015929935455322265, 0.015902255058288576, 0.01593873596191406, 0.015959375381469725, 0.015939374923706055, 0.015900175094604493, 0.01585841464996338, 0.015882895469665526, 0.015898735046386718, 0.015970895767211914, 0.015891855239868163, 0.016047534942626954, 0.01590353488922119, 0.01715313529968262, 0.01684561538696289, 0.01680049514770508, 0.017834896087646483, 0.017317935943603514, 0.016728975296020507, 0.01672929573059082, 0.01610113525390625, 0.015921295166015623, 0.01592593479156494, 0.01599809455871582, 0.01591665554046631, 0.01589889430999756, 0.015887535095214844, 0.015857134819030762 ] }, "throughput": { "unit": "tokens/s", "value": 58.515358330710164 }, "energy": null, "efficiency": null } } }