{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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": true, "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 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "NVIDIA A10G" ], "gpu_count": 1, "gpu_vram_mb": 24146608128, "optimum_benchmark_version": "0.2.1", "optimum_benchmark_commit": null, "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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1076.55168, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 56, "total": 0.4965071020126342, "mean": 0.008866198250225612, "stdev": 0.00037150266387945207, "p50": 0.008780752182006836, "p90": 0.00947761583328247, "p95": 0.009637375831604005, "p99": 0.009797684669494629, "values": [ 0.009856063842773438, 0.009749919891357421, 0.009644960403442383, 0.009585087776184081, 0.009200096130371094, 0.009312319755554199, 0.009446656227111817, 0.008784064292907715, 0.008531583786010741, 0.008520959854125976, 0.008698111534118652, 0.008876352310180665, 0.008714591979980469, 0.009454463958740235, 0.008763872146606445, 0.008548928260803222, 0.008504128456115723, 0.008491392135620118, 0.008608223915100098, 0.008472319602966308, 0.008472224235534669, 0.008710047721862794, 0.008479647636413574, 0.008473567962646485, 0.008675104141235351, 0.008641632080078124, 0.008777440071105957, 0.008466048240661621, 0.008476639747619629, 0.00848521614074707, 0.008699775695800781, 0.008732095718383789, 0.008505632400512695, 0.008473952293395997, 0.008533023834228515, 0.008549183845520019, 0.008481696128845214, 0.008720704078674316, 0.009634847640991212, 0.009500767707824707, 0.009110207557678223, 0.008957183837890625, 0.008987903594970703, 0.009026368141174317, 0.009148351669311524, 0.008912287712097167, 0.00888252830505371, 0.00887497615814209, 0.008909536361694335, 0.008926207542419434, 0.00889142417907715, 0.008949055671691894, 0.008872575759887695, 0.00894320011138916, 0.008905535697937011, 0.008956416130065918 ] }, "throughput": { "unit": "tokens/s", "value": 225.57582670217278 }, "energy": { "unit": "kWh", "cpu": 1.0523058935604265e-07, "ram": 5.7536058433212756e-08, "gpu": 1.8218057838938193e-07, "total": 3.4494722617863737e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5797988.353627933 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1076.55168, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 56, "total": 0.5116655960083007, "mean": 0.00913688564300537, "stdev": 0.0003887864341866676, "p50": 0.009122512340545653, "p90": 0.009690255641937255, "p95": 0.00991756010055542, "p99": 0.010219054651260377, "values": [ 0.009993375778198242, 0.010031840324401856, 0.009892288208007813, 0.0097642240524292, 0.009697407722473144, 0.009683103561401367, 0.010447872161865235, 0.00881110382080078, 0.008791647911071777, 0.00888864040374756, 0.009136768341064453, 0.009035615921020508, 0.009108256340026856, 0.009025759696960449, 0.009146880149841309, 0.008724160194396972, 0.008744031906127929, 0.008799455642700195, 0.00876313591003418, 0.008752351760864257, 0.009038335800170898, 0.008743871688842773, 0.008731231689453126, 0.008719200134277344, 0.008954751968383788, 0.008832863807678223, 0.009029120445251464, 0.008874367713928223, 0.008748512268066406, 0.008903871536254883, 0.008956640243530274, 0.00884012794494629, 0.008729567527770996, 0.00873311996459961, 0.008715807914733887, 0.008767040252685546, 0.008765024185180664, 0.009417535781860352, 0.009614591598510741, 0.009620223999023438, 0.00949830436706543, 0.009238368034362792, 0.00925772762298584, 0.009237215995788575, 0.009237343788146973, 0.009190239906311036, 0.009220447540283203, 0.00917427158355713, 0.009159584045410157, 0.009210016250610352, 0.009215359687805175, 0.009161151885986329, 0.009214783668518066, 0.009187487602233887, 0.00931497573852539, 0.009174592018127441 ] }, "throughput": { "unit": "tokens/s", "value": 109.44648308754282 }, "energy": { "unit": "kWh", "cpu": 9.922178336026181e-08, "ram": 5.4235692608808125e-08, "gpu": 1.709566773002717e-07, "total": 3.244141532693416e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3082479.571012304 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 55, "total": 0.9901137924194333, "mean": 0.01800206895308061, "stdev": 0.0007067784618728845, "p50": 0.01794047927856445, "p90": 0.01909653778076172, "p95": 0.019457433128356936, "p99": 0.019873546409606934, "values": [ 0.01984716796875, 0.019606527328491212, 0.019393535614013673, 0.018951168060302736, 0.01902592086791992, 0.019904512405395508, 0.017778688430786133, 0.017358848571777344, 0.01744486427307129, 0.01782067108154297, 0.017987583160400392, 0.01784217643737793, 0.018507776260375978, 0.01794047927856445, 0.017312768936157227, 0.01726361656188965, 0.017323007583618166, 0.01739571189880371, 0.017258495330810548, 0.017529855728149413, 0.017491968154907226, 0.01723494338989258, 0.017217536926269532, 0.017641471862792968, 0.017502208709716797, 0.01784115219116211, 0.017361919403076173, 0.017258495330810548, 0.01740902328491211, 0.01768448066711426, 0.01760256004333496, 0.01726464080810547, 0.01723391914367676, 0.017275903701782228, 0.017341440200805663, 0.017262592315673828, 0.018041856765747072, 0.01932089614868164, 0.01914361572265625, 0.018729984283447267, 0.018226175308227538, 0.018275327682495117, 0.018251775741577148, 0.018437120437622072, 0.01815350341796875, 0.01810736083984375, 0.018101247787475586, 0.01808793640136719, 0.01817190361022949, 0.018135040283203126, 0.018139135360717772, 0.01810534477233887, 0.018166784286499024, 0.018223104476928712, 0.01817804718017578 ] }, "throughput": { "unit": "tokens/s", "value": 55.54917063179422 }, "energy": null, "efficiency": null } } }