{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+rocm6.1", "_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": {}, "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.256576, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-101-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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1385.156608, "max_global_vram": 0.0, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.51254052734375, "mean": 7.51254052734375, "stdev": 0.0, "p50": 7.51254052734375, "p90": 7.51254052734375, "p95": 7.51254052734375, "p99": 7.51254052734375, "values": [ 7.51254052734375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1544.13056, "max_global_vram": 0.0, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 66, "total": 0.4827639656066895, "mean": 0.007314605539495295, "stdev": 0.00048545778773113527, "p50": 0.006962383031845093, "p90": 0.008075020313262939, "p95": 0.00819878077507019, "p99": 0.008295131921768187, "values": [ 0.00806174087524414, 0.008221099853515625, 0.00843262004852295, 0.008088299751281738, 0.00799022102355957, 0.008210061073303222, 0.008178380966186524, 0.008126540184020996, 0.00783470106124878, 0.00761070203781128, 0.008205580711364745, 0.00782654094696045, 0.007852941036224366, 0.007857421875, 0.007882221221923828, 0.00783678102493286, 0.007881101131439208, 0.007849101066589356, 0.007679501056671143, 0.006901103019714356, 0.007230062961578369, 0.007154862880706787, 0.006928944110870362, 0.007095983028411865, 0.006916624069213867, 0.0069046239852905275, 0.006927662849426269, 0.006914382934570313, 0.0069207830429077145, 0.006907022953033447, 0.006906064033508301, 0.006918863773345947, 0.006915503978729248, 0.006909743785858154, 0.00715630292892456, 0.006926863193511963, 0.006942543029785156, 0.006943822860717774, 0.006934382915496826, 0.0071268630027770995, 0.0069628629684448246, 0.0069513430595397946, 0.006938703060150146, 0.006953262805938721, 0.006908143997192383, 0.006918543815612793, 0.006912303924560547, 0.006961903095245361, 0.006930862903594971, 0.007410383224487305, 0.006917582988739014, 0.006895503997802734, 0.006940944194793701, 0.006909584045410156, 0.006928624153137207, 0.006937902927398681, 0.006992303848266602, 0.006903822898864746, 0.006887663841247558, 0.006865903854370117, 0.0078107008934021, 0.007819021224975586, 0.0072975831031799315, 0.00754030179977417, 0.007330381870269775, 0.00782926082611084 ] }, "throughput": { "unit": "tokens/s", "value": 273.42554416652786 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1544.290304, "max_global_vram": 0.0, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 66, "total": 0.5189267582893371, "mean": 0.007862526640747533, "stdev": 0.0014017203025267798, "p50": 0.007371982574462891, "p90": 0.008449659824371337, "p95": 0.00859409999847412, "p99": 0.014157942295074437, "values": [ 0.008464779853820801, 0.008539500236511231, 0.008276619911193848, 0.008434539794921874, 0.008612299919128418, 0.008476300239562988, 0.008402379989624023, 0.008071340560913087, 0.008029101371765136, 0.009777735710144043, 0.008194379806518555, 0.008203340530395507, 0.008158539772033692, 0.008181739807128906, 0.008186540603637694, 0.008135180473327636, 0.008186060905456543, 0.008143341064453125, 0.00738286304473877, 0.007570382118225098, 0.007261261940002441, 0.0074015817642211915, 0.007541902065277099, 0.007238862037658692, 0.00725566291809082, 0.00721694278717041, 0.007220623016357422, 0.007232462882995606, 0.007272142887115479, 0.007239023208618164, 0.007279181957244873, 0.007251182079315186, 0.007258542060852051, 0.007279662132263184, 0.0072406229972839355, 0.0073329429626464845, 0.007230702877044678, 0.007250543117523193, 0.012533889770507813, 0.007263662815093994, 0.007224623203277588, 0.007207182884216309, 0.007230062961578369, 0.007246383190155029, 0.0072468619346618655, 0.007233582019805908, 0.007208463191986084, 0.0072100629806518554, 0.007830380916595459, 0.007361102104187012, 0.007227343082427978, 0.007224301815032959, 0.007232622146606445, 0.007237903118133545, 0.0072051029205322265, 0.007386221885681153, 0.007383341789245605, 0.007258223056793213, 0.007238701820373535, 0.007404461860656738, 0.008083821296691895, 0.00791486120223999, 0.017174039840698242, 0.007595982074737549, 0.008052459716796875, 0.008080301284790039 ] }, "throughput": { "unit": "tokens/s", "value": 127.18557859219216 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 66, "total": 0.48624539947509765, "mean": 0.0073673545375014795, "stdev": 0.0013999874292589946, "p50": 0.006881023645401002, "p90": 0.007888860940933228, "p95": 0.008016020894050598, "p99": 0.013746223306655857, "values": [ 0.00782414197921753, 0.007934541225433349, 0.007813580989837646, 0.007980141162872314, 0.00802798080444336, 0.007923181056976319, 0.007854540824890137, 0.007500301837921142, 0.0074817419052124025, 0.009095337867736817, 0.0076519808769226075, 0.00766030216217041, 0.007637422084808349, 0.007671501159667969, 0.0076548619270324705, 0.007621421813964844, 0.007669742107391357, 0.007617102146148681, 0.006900623798370361, 0.007080782890319824, 0.0067899031639099125, 0.0069303841590881345, 0.007071662902832032, 0.006774864196777344, 0.006787983894348144, 0.0067499041557312015, 0.006753424167633057, 0.006760464191436767, 0.006799344062805176, 0.006771183967590332, 0.006796143054962158, 0.006760783195495605, 0.00678334379196167, 0.00679310417175293, 0.00676862382888794, 0.006871344089508057, 0.006773583889007569, 0.00676862382888794, 0.012142050743103027, 0.006791664123535156, 0.006759024143218994, 0.0067412638664245605, 0.006757904052734375, 0.0067719841003417965, 0.00675294303894043, 0.006745903968811035, 0.006743504047393799, 0.006761263847351074, 0.007300142765045166, 0.006896462917327881, 0.006742224216461181, 0.006755342960357666, 0.006730224132537842, 0.0067532639503479, 0.006723824024200439, 0.006852784156799316, 0.006890703201293946, 0.006759344100952148, 0.006767023086547852, 0.006904782772064209, 0.007593582153320313, 0.007472622871398926, 0.016725400924682617, 0.0071463828086853025, 0.007561901092529297, 0.007595982074737549 ] }, "throughput": { "unit": "tokens/s", "value": 135.73393202536633 }, "energy": null, "efficiency": null } } }