{ "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": {}, "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", "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": "505b3e98eac8c3f1b6ed5342e4f6e5336d513f21", "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": { "prefill": { "memory": { "unit": "MB", "max_ram": 1183.105024, "max_global_vram": 1096.015872, "max_process_vram": 194416.939008, "max_reserved": 713.03168, "max_allocated": 500.44672 }, "latency": { "unit": "s", "count": 60, "total": 0.5207999744415281, "mean": 0.00867999957402547, "stdev": 0.0006628244776520336, "p50": 0.008579381465911865, "p90": 0.009263601016998291, "p95": 0.0093265851020813, "p99": 0.011351346035003658, "values": [ 0.010821367263793945, 0.009279296875, 0.00921545696258545, 0.009107458114624023, 0.009094178199768066, 0.009019938468933106, 0.00926185703277588, 0.009146657943725586, 0.009322655677795411, 0.009325857162475587, 0.00922793674468994, 0.009214177131652831, 0.009340415954589844, 0.012113998413085938, 0.00882505989074707, 0.008639781951904298, 0.00862074089050293, 0.008577061653137206, 0.008558820724487305, 0.008597221374511719, 0.008602822303771972, 0.008583621025085449, 0.008579462051391602, 0.00857898235321045, 0.008552581787109374, 0.008557861328125, 0.008163145065307617, 0.007922346115112305, 0.008379302978515624, 0.00796682596206665, 0.007937225818634033, 0.008187624931335449, 0.00835930347442627, 0.007836105823516846, 0.00851290225982666, 0.0079892258644104, 0.007912586212158203, 0.007995625019073487, 0.008588260650634765, 0.008610501289367675, 0.008590980529785157, 0.008586661338806152, 0.008579141616821289, 0.008058505058288574, 0.008551941871643067, 0.00873194122314453, 0.00853642177581787, 0.008510501861572265, 0.008591301918029785, 0.008119304656982422, 0.007839626789093017, 0.00859098243713379, 0.00857930088043213, 0.008637862205505371, 0.008572100639343262, 0.00857242202758789, 0.008615301132202149, 0.008567781448364257, 0.008467302322387696, 0.00837434196472168 ] }, "throughput": { "unit": "tokens/s", "value": 230.41475785147674 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1183.105024, "max_global_vram": 1096.00768, "max_process_vram": 196332.38016, "max_reserved": 713.03168, "max_allocated": 500.670464 }, "latency": { "unit": "s", "count": 60, "total": 0.48304712104797354, "mean": 0.008050785350799559, "stdev": 0.0006824855898361565, "p50": 0.007906186580657958, "p90": 0.008699636840820313, "p95": 0.008804123830795289, "p99": 0.010389913396835317, "values": [ 0.00928521728515625, 0.00880762004852295, 0.008580741882324218, 0.008628101348876953, 0.008537382125854491, 0.008546662330627442, 0.00876714038848877, 0.008682821273803711, 0.008753061294555664, 0.008803939819335938, 0.008693700790405273, 0.008655301094055176, 0.008626181602478028, 0.008375303268432617, 0.007951146125793456, 0.00792970609664917, 0.007930985927581787, 0.007886506080627442, 0.007899306774139404, 0.007911466121673583, 0.00790234613418579, 0.007918506145477296, 0.007896585941314697, 0.007908586025238038, 0.0079029860496521, 0.007921226978302002, 0.00758154821395874, 0.00777290678024292, 0.007351950168609619, 0.007347630023956299, 0.0073868298530578615, 0.007711146831512451, 0.0075468292236328125, 0.007915466785430909, 0.007333711147308349, 0.007061872005462646, 0.0075401091575622555, 0.007408430099487304, 0.00801866626739502, 0.007925226211547851, 0.00790378713607788, 0.0076135478019714355, 0.0076961078643798825, 0.007863626956939698, 0.007990664958953857, 0.007921226024627685, 0.007576268196105957, 0.00786938714981079, 0.007567468166351318, 0.00736122989654541, 0.007825866222381591, 0.008055624961853027, 0.007893706798553467, 0.007933385848999023, 0.007923466205596924, 0.007897066116333009, 0.007875627040863037, 0.007896906852722168, 0.007797707080841065, 0.011979598045349121 ] }, "throughput": { "unit": "tokens/s", "value": 124.21148452314476 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 60, "total": 0.4562817006111147, "mean": 0.007604695010185241, "stdev": 0.0006036058056838624, "p50": 0.007503628969192505, "p90": 0.008118136596679688, "p95": 0.008143025159835816, "p99": 0.009740960559844962, "values": [ 0.008706980705261231, 0.008186345100402831, 0.008014825820922852, 0.00804410457611084, 0.00797066593170166, 0.007965385913848877, 0.008140745162963868, 0.00807514476776123, 0.008134184837341308, 0.008133544921875, 0.008116424560546875, 0.008092905044555664, 0.00801978588104248, 0.00791434621810913, 0.007528588771820068, 0.007527469158172607, 0.0075282688140869145, 0.007484108924865723, 0.0075020289421081545, 0.007498508930206299, 0.007504108905792236, 0.007510028839111328, 0.007498508930206299, 0.007508109092712403, 0.007503149032592774, 0.007568589210510254, 0.007230350971221924, 0.0073818697929382325, 0.0069972329139709475, 0.00699403190612793, 0.0070079522132873535, 0.007297709941864013, 0.007140592098236084, 0.007521228790283203, 0.006932433128356934, 0.006657555103302002, 0.007176910877227783, 0.007050032138824463, 0.007593228816986084, 0.007521549224853516, 0.007491789817810059, 0.007211950778961182, 0.007297229766845703, 0.007450829982757568, 0.007590668201446533, 0.0075082688331604, 0.007179471015930175, 0.007464108943939209, 0.007213390827178955, 0.007001071929931641, 0.0074170689582824705, 0.007648588180541992, 0.007473549842834473, 0.007506828784942627, 0.007520749092102051, 0.007497068881988526, 0.007471630096435547, 0.007489069938659668, 0.007439949035644531, 0.011228882789611816 ] }, "throughput": { "unit": "tokens/s", "value": 131.49771274990832 }, "energy": null, "efficiency": null } } }