ValueError: Cannot `crop` a `DynamicSlidingWindowLayer` after it has seen more tokens than itssliding window (otherwise some states are lost)

用户使用 transformers 5.12.0 加载 google/gemma-4-E2B-it 模型,并传入 assistant_model 启用 MTP(Multi-Token Prediction)加速生成,同时使用了 DynamicCache 和 use_cache=True 。生成过程中








