From 07404d76896514db65b08bd8810075def31594cb Mon Sep 17 00:00:00 2001 From: Francis <38564764+ssssnow@users.noreply.github.com> Date: Tue, 9 Dec 2025 07:52:40 +0800 Subject: [PATCH] [HiCache] fix condition check when use decode offload (#14489) --- python/sglang/srt/server_args.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/server_args.py b/python/sglang/srt/server_args.py index eeb68419b..68bd6709c 100644 --- a/python/sglang/srt/server_args.py +++ b/python/sglang/srt/server_args.py @@ -1668,7 +1668,10 @@ class ServerArgs: "Page first direct layout only support direct io backend" ) - if self.enable_hierarchical_cache and self.hicache_io_backend == "kernel": + if ( + self.enable_hierarchical_cache + or self.disaggregation_decode_enable_offload_kvcache + ) and self.hicache_io_backend == "kernel": # fix for the compatibility issue with FlashAttention3 decoding and HiCache kernel backend if self.decode_attention_backend is None: if not self.use_mla_backend():