{ "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": "10c9775dced65978a85f54ff6905a3aea7d61cca", "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": 1053.577216, "max_global_vram": 1107.509248, "max_process_vram": 269442.101248, "max_reserved": 725.614592, "max_allocated": 513.035776 }, "latency": { "unit": "s", "count": 60, "total": 0.5096978039741518, "mean": 0.008494963399569193, "stdev": 0.0006768154024928574, "p50": 0.008378296852111815, "p90": 0.009000759601593019, "p95": 0.009092182540893555, "p99": 0.010870585412979116, "values": [ 0.012591964721679687, 0.009674372673034668, 0.00934541416168213, 0.008814055442810059, 0.008417097091674805, 0.00817533779144287, 0.008206538200378418, 0.008201578140258788, 0.00812189769744873, 0.008145578384399414, 0.0082263765335083, 0.00821021842956543, 0.008154377937316895, 0.008177257537841797, 0.007988778114318848, 0.00794509792327881, 0.007943498134613038, 0.007935818195343017, 0.007886218070983888, 0.00875485610961914, 0.0085953369140625, 0.008542695999145507, 0.008595816612243653, 0.008381096839904786, 0.008194058418273927, 0.008036937713623047, 0.008400457382202148, 0.008375496864318847, 0.008503656387329101, 0.008742216110229493, 0.008573576927185059, 0.008635016441345214, 0.00851453685760498, 0.00824461841583252, 0.007967338085174561, 0.00797181797027588, 0.007946059226989747, 0.007938057899475097, 0.008045578002929687, 0.00798429822921753, 0.008022857666015624, 0.007978057861328125, 0.007929577827453613, 0.007992618083953858, 0.008018218040466308, 0.009078854560852051, 0.009004935264587403, 0.009020614624023437, 0.008592616081237793, 0.008428297042846679, 0.008988136291503907, 0.00894189453125, 0.008942855834960937, 0.009000295639038087, 0.008905735969543457, 0.008921575546264649, 0.008914694786071778, 0.008897895812988282, 0.00867453670501709, 0.008338537216186524 ] }, "throughput": { "unit": "tokens/s", "value": 235.43362177421818 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1053.577216, "max_global_vram": 1107.505152, "max_process_vram": 279134.257152, "max_reserved": 725.614592, "max_allocated": 513.25952 }, "latency": { "unit": "s", "count": 60, "total": 0.5042206811904905, "mean": 0.008403678019841512, "stdev": 0.0003623030697715582, "p50": 0.008309176921844484, "p90": 0.00884135217666626, "p95": 0.008917736387252807, "p99": 0.009361932621002197, "values": [ 0.009405734062194825, 0.009331494331359864, 0.00891309642791748, 0.008540616989135743, 0.008085737228393555, 0.008027337074279784, 0.00811933708190918, 0.008033897399902344, 0.008092297554016113, 0.008356616973876954, 0.008161097526550294, 0.008224296569824218, 0.008046696662902832, 0.007960618019104004, 0.008055497169494628, 0.008015337944030762, 0.008074698448181152, 0.008047818183898926, 0.008394536972045898, 0.008702055931091308, 0.008273897171020507, 0.008642056465148925, 0.008361576080322265, 0.007900298118591309, 0.008156777381896973, 0.008303816795349122, 0.008217897415161133, 0.008739975929260254, 0.008465737342834472, 0.008540136337280273, 0.008439175605773926, 0.008410536766052246, 0.00870845603942871, 0.008103656768798827, 0.008046217918395996, 0.008096938133239745, 0.00801613712310791, 0.008050538063049317, 0.00828253746032715, 0.00801229763031006, 0.008125576972961426, 0.008102377891540528, 0.008087336540222168, 0.008013097763061524, 0.008829094886779786, 0.008833415985107422, 0.0087614164352417, 0.008314537048339845, 0.008570055961608886, 0.008895014762878418, 0.008872454643249511, 0.009005895614624023, 0.008788935661315918, 0.008803654670715332, 0.008796295166015626, 0.008749735832214356, 0.008833415985107422, 0.008837896347045899, 0.008341417312622071, 0.008301576614379884 ] }, "throughput": { "unit": "tokens/s", "value": 118.9955157300112 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 60, "total": 0.45627297973632813, "mean": 0.007604549662272134, "stdev": 0.0003834043260424553, "p50": 0.007513499498367309, "p90": 0.008078745460510253, "p95": 0.00817247314453125, "p99": 0.008601470947265625, "values": [ 0.008655655860900878, 0.008563817024230957, 0.008059178352355957, 0.007725258827209472, 0.007326858997344971, 0.007308138847351074, 0.007315340042114257, 0.007220139980316162, 0.007311339855194092, 0.007525739192962647, 0.007323019981384278, 0.007340139865875244, 0.0072009401321411134, 0.007195340156555176, 0.007250219821929932, 0.007212621212005615, 0.007249259948730468, 0.007187180042266846, 0.007455658912658691, 0.00792157793045044, 0.00751133918762207, 0.007909418106079102, 0.007566538810729981, 0.007176939964294434, 0.007356939792633056, 0.007615659236907959, 0.00746061897277832, 0.007958538055419922, 0.007620938777923584, 0.007692618846893311, 0.00757581901550293, 0.007515659809112549, 0.007961257934570313, 0.007271180152893067, 0.007227340221405029, 0.007209740161895752, 0.007159659862518311, 0.007242061138153076, 0.007365580081939697, 0.007197259902954101, 0.0072191801071167, 0.007237420082092285, 0.007227340221405029, 0.007261099815368652, 0.008102216720581056, 0.008042858123779298, 0.008126538276672363, 0.007698218822479248, 0.007865578174591064, 0.008169897079467773, 0.008029256820678711, 0.008221418380737304, 0.00807341766357422, 0.008021097183227539, 0.007993418216705322, 0.007970377922058106, 0.008076137542724609, 0.008008777618408203, 0.00752509880065918, 0.0074610991477966305 ] }, "throughput": { "unit": "tokens/s", "value": 131.50022610296344 }, "energy": null, "efficiency": null } } }