{ "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": "8ef7b0420a1d5aa903d786290f7ab247769da879", "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": 1052.11904, "max_global_vram": 1118.4128, "max_process_vram": 298935.296, "max_reserved": 725.614592, "max_allocated": 512.832512 }, "latency": { "unit": "s", "count": 61, "total": 0.5004772477149962, "mean": 0.008204545044508137, "stdev": 0.0006936739574596724, "p50": 0.00790363121032715, "p90": 0.008576908111572266, "p95": 0.009022025108337403, "p99": 0.011496889686584471, "values": [ 0.011208571434020997, 0.009188262939453126, 0.009022025108337403, 0.008459628105163574, 0.00875178623199463, 0.008743146896362304, 0.008351629257202148, 0.008079469680786133, 0.008133230209350585, 0.008181389808654784, 0.008060110092163087, 0.008096750259399415, 0.008265389442443847, 0.011929367065429687, 0.00809243106842041, 0.007881072044372559, 0.007881872177124024, 0.00785499095916748, 0.007872111797332763, 0.007849391937255859, 0.00787739086151123, 0.007869391918182374, 0.007865711212158203, 0.008240750312805176, 0.007897071838378907, 0.007874831199645996, 0.00790363121032715, 0.00787227201461792, 0.007897551059722901, 0.007914190769195556, 0.007862351894378661, 0.007883952140808106, 0.007872110843658447, 0.007864912033081055, 0.00788747215270996, 0.007894351005554199, 0.007882351875305177, 0.007908751010894775, 0.007875792026519775, 0.007860591888427734, 0.007843152046203613, 0.00791451120376587, 0.007889391899108887, 0.007866830825805663, 0.007855472087860107, 0.008362988471984863, 0.008306509017944335, 0.00829866886138916, 0.008306188583374024, 0.008576908111572266, 0.008378188133239746, 0.00837690830230713, 0.008391629219055176, 0.008416428565979003, 0.00843642807006836, 0.00787851095199585, 0.007885231018066406, 0.007910830974578857, 0.00788971185684204, 0.007898191928863525, 0.00788651180267334 ] }, "throughput": { "unit": "tokens/s", "value": 243.76732520211303 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1052.11904, "max_global_vram": 1118.404608, "max_process_vram": 291094.339584, "max_reserved": 725.614592, "max_allocated": 513.056256 }, "latency": { "unit": "s", "count": 61, "total": 0.5016638059616089, "mean": 0.008223996819042768, "stdev": 0.0003235225821021946, "p50": 0.008028591156005859, "p90": 0.008562828063964844, "p95": 0.008680425643920898, "p99": 0.009421478462219239, "values": [ 0.009448262214660644, 0.009403622627258301, 0.008652907371520996, 0.008526026725769043, 0.008562828063964844, 0.008680425643920898, 0.00816075038909912, 0.00819258975982666, 0.008288749694824219, 0.008186989784240723, 0.008175149917602539, 0.008275149345397949, 0.00839850902557373, 0.008397068977355957, 0.008033550262451172, 0.008009711265563964, 0.007990190982818604, 0.008025711059570312, 0.008012431144714355, 0.008027630805969238, 0.008006031036376954, 0.008260429382324219, 0.007998510837554932, 0.007982991218566894, 0.007996271133422852, 0.007985230922698974, 0.008635466575622558, 0.00800299072265625, 0.008035310745239258, 0.007983790874481202, 0.007993710041046143, 0.008004751205444336, 0.007990991115570069, 0.007993391036987305, 0.007978991031646728, 0.007960752010345459, 0.00800571060180664, 0.007972111225128174, 0.007987151145935059, 0.007965550899505616, 0.008097390174865722, 0.007992270946502686, 0.007973711013793945, 0.00797291088104248, 0.00831658935546875, 0.008460268020629883, 0.008389549255371094, 0.008434349060058594, 0.00844218921661377, 0.008788745880126953, 0.008542347908020019, 0.00854506778717041, 0.008543947219848632, 0.008560907363891602, 0.008353228569030762, 0.008002031326293945, 0.008022191047668457, 0.008028591156005859, 0.007997069835662842, 0.008026989936828613, 0.007985071182250976 ] }, "throughput": { "unit": "tokens/s", "value": 121.59537777112065 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 60, "total": 0.9835496377944948, "mean": 0.016392493963241574, "stdev": 0.0007773665968838235, "p50": 0.01596702194213867, "p90": 0.01708195896148682, "p95": 0.017501011753082277, "p99": 0.01930348186492919, "values": [ 0.018552366256713866, 0.017835411071777343, 0.017050615310668947, 0.017399572372436525, 0.01748341178894043, 0.016576217651367187, 0.01630150032043457, 0.01644917869567871, 0.0164091796875, 0.01628022003173828, 0.016379579544067383, 0.01671829605102539, 0.020384355545043944, 0.016181020736694335, 0.015934142112731933, 0.015905181884765626, 0.01590646171569824, 0.015912702560424805, 0.015905502319335938, 0.015911742210388182, 0.01616278076171875, 0.01589366340637207, 0.01624806022644043, 0.01592710208892822, 0.0158880615234375, 0.016566619873046876, 0.015903101921081544, 0.015967581748962404, 0.015920862197875977, 0.015883262634277345, 0.015912861824035646, 0.015898621559143067, 0.01588886260986328, 0.01589462184906006, 0.01588390254974365, 0.015916702270507812, 0.01591030216217041, 0.015889983177185058, 0.01585222244262695, 0.01596646213531494, 0.015938623428344727, 0.015885662078857422, 0.015875423431396484, 0.016158140182495118, 0.01685189628601074, 0.016772857666015627, 0.016764537811279297, 0.016761016845703126, 0.017364051818847655, 0.01697429656982422, 0.016973655700683595, 0.01693845558166504, 0.016992536544799805, 0.016865175247192384, 0.01591190242767334, 0.015931742668151855, 0.015969660758972166, 0.015914302825927734, 0.015949021339416503, 0.01590438175201416 ] }, "throughput": { "unit": "tokens/s", "value": 61.003530167062664 }, "energy": null, "efficiency": null } } }