Skip to content

Analysis of Why KV Cache Quantization Logic in kv_cache_quant.py Is Not Taking Effect #1

Description

@MELANCHOLY828

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions