RuntimeError: The size of tensor a (8) must match the size of tensor b (4) at non-singleton dimension 3

用户使用 Hugging Face Transformers 库(版本 5.10.1)中的 StaticCache.early_initialization 方法,为包含线性注意力层(如 layer_types = ["full_attention", "linear_attention"] )的混








