{ "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", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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": "4aa72a2fd35e7d46a674935ffaf335b1c0795600", "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": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1050.988544, "max_global_vram": 1796.820992, "max_process_vram": 292076.900352, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 57, "total": 0.504096296310425, "mean": 0.008843794672112716, "stdev": 0.000689973242023426, "p50": 0.008785588264465332, "p90": 0.009271283912658692, "p95": 0.009798964118957518, "p99": 0.011509840774536133, "values": [ 0.011627664566040039, 0.009714068412780762, 0.009639986991882324, 0.008952947616577148, 0.008492948532104493, 0.008378708839416504, 0.008317428588867188, 0.008258069038391113, 0.008332148551940918, 0.008297750473022461, 0.008298708915710449, 0.010138546943664551, 0.008206068992614746, 0.008418869018554688, 0.00845038890838623, 0.008785588264465332, 0.008480628967285157, 0.008883188247680664, 0.0081964693069458, 0.00852686882019043, 0.008176309585571289, 0.008367508888244628, 0.009082867622375488, 0.008564948081970215, 0.00911166763305664, 0.00894286823272705, 0.009124467849731446, 0.009123188018798828, 0.009110868453979492, 0.009115668296813964, 0.00911166763305664, 0.009136788368225098, 0.009146707534790039, 0.009270068168640136, 0.0091727876663208, 0.00915198802947998, 0.009147507667541504, 0.009116787910461426, 0.009095667839050293, 0.011417264938354493, 0.009273107528686524, 0.009134227752685548, 0.008055829048156738, 0.008094710350036621, 0.009105908393859862, 0.008755667686462403, 0.008494709014892578, 0.009124467849731446, 0.00880910873413086, 0.008514068603515624, 0.008449748992919922, 0.008581428527832032, 0.008294709205627441, 0.008239989280700683, 0.008087989807128906, 0.008124149322509766, 0.008071829795837402 ] }, "throughput": { "unit": "tokens/s", "value": 226.14726756452555 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1050.988544, "max_global_vram": 3534.811136, "max_process_vram": 296977.522688, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 57, "total": 0.5061737346649171, "mean": 0.008880240959033633, "stdev": 0.0005417871735586174, "p50": 0.00872622776031494, "p90": 0.009393939208984375, "p95": 0.009847794723510741, "p99": 0.01037036781311035, "values": [ 0.010118547439575196, 0.009788626670837403, 0.00942830753326416, 0.008870867729187012, 0.008484309196472167, 0.008413429260253907, 0.008331829071044922, 0.008396788597106934, 0.00835087013244629, 0.008351348876953124, 0.008324149131774903, 0.00881630802154541, 0.00855198860168457, 0.008514549255371094, 0.008872947692871093, 0.008666869163513183, 0.008635828971862793, 0.00855246925354004, 0.008160788536071778, 0.008155188560485839, 0.008332148551940918, 0.009205267906188965, 0.009217107772827148, 0.009443347930908202, 0.009149747848510742, 0.009217267990112304, 0.009337907791137695, 0.00924142837524414, 0.00922782802581787, 0.009216307640075683, 0.009212628364562988, 0.009237268447875976, 0.009371026992797852, 0.009281268119812012, 0.009213427543640136, 0.009216947555541992, 0.009194547653198243, 0.009185108184814453, 0.009215508460998535, 0.010690866470336914, 0.010084466934204101, 0.00866222858428955, 0.008152150154113769, 0.008472469329833985, 0.00922078800201416, 0.008654229164123535, 0.00872622776031494, 0.009221588134765625, 0.008648147583007812, 0.008563029289245605, 0.008627187728881837, 0.008694869041442871, 0.00828062915802002, 0.008313268661499023, 0.008276948928833008, 0.008210708618164062, 0.008171828269958496 ] }, "throughput": { "unit": "tokens/s", "value": 112.60955694932203 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.9906225414276117, "mean": 0.017689688239778793, "stdev": 0.001062629000773171, "p50": 0.017501336097717285, "p90": 0.01857157611846924, "p95": 0.019250335693359377, "p99": 0.02068393440246583, "values": [ 0.019515016555786132, 0.01918573570251465, 0.017942216873168944, 0.017061578750610353, 0.016843498229980467, 0.01669245719909668, 0.01667165756225586, 0.016729097366333007, 0.016684778213500978, 0.016667177200317383, 0.018973575592041016, 0.016835655212402344, 0.01693069839477539, 0.01736621856689453, 0.017470056533813477, 0.017145896911621095, 0.017513736724853516, 0.01638717842102051, 0.016714378356933592, 0.01649565887451172, 0.017606056213378907, 0.018328615188598633, 0.01803165626525879, 0.018299495697021485, 0.018190696716308595, 0.01849885559082031, 0.018396135330200195, 0.018369415283203124, 0.018367816925048828, 0.01836141586303711, 0.018391496658325197, 0.01852653694152832, 0.018616615295410158, 0.018429895401000977, 0.01840349578857422, 0.018382535934448243, 0.018334856033325197, 0.01833197593688965, 0.022112611770629884, 0.019444135665893553, 0.017872615814208983, 0.016243499755859377, 0.016541418075561524, 0.01836061668395996, 0.017488296508789063, 0.017212778091430663, 0.018377256393432618, 0.017488935470581054, 0.017120935440063476, 0.017138858795166016, 0.017264135360717775, 0.016632299423217773, 0.016601898193359374, 0.016390857696533204, 0.016361738204956056, 0.016275819778442384 ] }, "throughput": { "unit": "tokens/s", "value": 56.530108752923105 }, "energy": null, "efficiency": null } } }