I have a question mainly about the implementation inside kv_cache_quant.py. I noticed that in quantized_forward, there is a condition checking if isinstance(outputs, tuple) and len(outputs) >= 3:. Only if this holds, the KV quantization path is taken. However, when I actually run exp_niah.py, I found that this condition is not met — meaning the KV quantization doesn’t take effect.
I have a question mainly about the implementation inside kv_cache_quant.py. I noticed that in quantized_forward, there is a condition checking if isinstance(outputs, tuple) and len(outputs) >= 3:. Only if this holds, the KV quantization path is taken. However, when I actually run exp_niah.py, I found that this condition is not met — meaning the KV quantization doesn’t take effect.