{ "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, "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": "bc4d55acdaf328bd5108ceb452b0f0a0c042200e", "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": 899.248128, "max_global_vram": 1011.744768, "max_process_vram": 46100.361216, "max_reserved": 725.614592, "max_allocated": 666.339328 }, "latency": { "unit": "s", "count": 1, "total": 7.42910400390625, "mean": 7.42910400390625, "stdev": 0.0, "p50": 7.42910400390625, "p90": 7.42910400390625, "p95": 7.42910400390625, "p99": 7.42910400390625, "values": [ 7.42910400390625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1053.556736, "max_global_vram": 1107.480576, "max_process_vram": 285378.506752, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 59, "total": 0.5005449161529543, "mean": 0.008483812138185661, "stdev": 0.0007124104960165958, "p50": 0.008350855827331543, "p90": 0.009111172676086427, "p95": 0.009544786834716797, "p99": 0.010816928367614751, "values": [ 0.009629891395568848, 0.009667812347412109, 0.009535330772399903, 0.009183491706848144, 0.009240772247314453, 0.009093092918395997, 0.008531654357910156, 0.008683493614196777, 0.008350855827331543, 0.008272134780883789, 0.008639174461364746, 0.008421255111694335, 0.012403802871704101, 0.008433895111083984, 0.008225094795227051, 0.00783021593093872, 0.007892615795135498, 0.007881737232208252, 0.007850377082824708, 0.007867337226867676, 0.008025575637817382, 0.0083556547164917, 0.008163496017456055, 0.008071335792541504, 0.007878376960754394, 0.007891016960144043, 0.007887977123260498, 0.007899336814880371, 0.007925096035003663, 0.008140616416931153, 0.008097736358642579, 0.007892295837402344, 0.008090375900268554, 0.007896936893463135, 0.007873095989227296, 0.007897896766662598, 0.007907017230987549, 0.007897256851196289, 0.007949096202850342, 0.00790205717086792, 0.008482694625854492, 0.008302375793457032, 0.00813853645324707, 0.00865085506439209, 0.00822813606262207, 0.008695014953613281, 0.008835973739624024, 0.008891813278198242, 0.008841733932495117, 0.00883021354675293, 0.008838374137878418, 0.008824294090270995, 0.008830533981323243, 0.00882253360748291, 0.008804614067077637, 0.00880013370513916, 0.008826053619384766, 0.008817254066467285, 0.008807494163513183 ] }, "throughput": { "unit": "tokens/s", "value": 235.74307957598384 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1053.556736, "max_global_vram": 1107.51744, "max_process_vram": 307244.150784, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 59, "total": 0.49722940969467133, "mean": 0.00842761711346901, "stdev": 0.00035110462209494016, "p50": 0.008418695449829101, "p90": 0.008811526107788086, "p95": 0.008981797981262207, "p99": 0.009378000812530518, "values": [ 0.00937101173400879, 0.009387652397155761, 0.00898013401031494, 0.008996773719787597, 0.008861574172973632, 0.008780613899230957, 0.008612614631652832, 0.008248135566711426, 0.00828189468383789, 0.00865629482269287, 0.00843741512298584, 0.008491174697875976, 0.00869917392730713, 0.008469574928283692, 0.008035496711730957, 0.007943656921386719, 0.00801629638671875, 0.008134535789489746, 0.007959176063537597, 0.00796669578552246, 0.008418695449829101, 0.008386375427246094, 0.008368775367736817, 0.007945257186889649, 0.007911656856536865, 0.007914377212524413, 0.008027655601501465, 0.008036935806274414, 0.008049896240234375, 0.008318856239318847, 0.008258536338806152, 0.00814189624786377, 0.008029576301574706, 0.008144776344299316, 0.008014857292175293, 0.00829549503326416, 0.008181095123291016, 0.008163816452026367, 0.008139656066894532, 0.008116455078125, 0.008691333770751953, 0.008546053886413574, 0.008325895309448243, 0.008799014091491699, 0.008287336349487305, 0.008726214408874512, 0.008681894302368164, 0.008611655235290528, 0.008891013145446778, 0.008672134399414062, 0.008681254386901855, 0.008656614303588868, 0.008667174339294434, 0.008655014038085938, 0.008657254219055176, 0.008607974052429199, 0.008612934112548829, 0.008651973724365235, 0.008612133979797364 ] }, "throughput": { "unit": "tokens/s", "value": 118.65750265300981 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 59, "total": 0.4513247423171997, "mean": 0.007649571903681351, "stdev": 0.00039672479442452534, "p50": 0.007631017208099365, "p90": 0.008108616065979004, "p95": 0.008290232372283936, "p99": 0.008592739429473877, "values": [ 0.008607495307922363, 0.008582054138183593, 0.008290375709533691, 0.008290216445922852, 0.008194375991821289, 0.008035016059875489, 0.007855017185211182, 0.007540137767791748, 0.007489256858825684, 0.007854697227478027, 0.007705417156219483, 0.007720296859741211, 0.007863496780395508, 0.00770557689666748, 0.007171978950500488, 0.007176778793334961, 0.0072078189849853515, 0.007263978958129883, 0.007150057792663574, 0.0071670179367065425, 0.007631017208099365, 0.007535178184509278, 0.007525897979736328, 0.007130218982696533, 0.007140618801116943, 0.007127338886260986, 0.007168299198150635, 0.0071455779075622556, 0.007197578907012939, 0.007412298202514649, 0.007462858200073242, 0.007261259078979492, 0.007203498840332031, 0.00724141788482666, 0.0072095789909362796, 0.007385578155517578, 0.007257418155670166, 0.007381577968597412, 0.007269419193267822, 0.007254858016967774, 0.007808937072753906, 0.007747497081756592, 0.0075254178047180174, 0.00809213638305664, 0.007588138103485107, 0.008032296180725098, 0.008044136047363282, 0.007904137134552002, 0.008174534797668456, 0.007994855880737305, 0.007960296154022217, 0.007988776206970215, 0.007970695972442626, 0.00794877576828003, 0.007970217227935792, 0.007939655780792237, 0.007925576210021972, 0.007974535942077636, 0.007921576023101807 ] }, "throughput": { "unit": "tokens/s", "value": 130.7262697300421 }, "energy": null, "efficiency": null } } }