Faster Text Generation with Self-Speculative Decoding★ 78
Hugging Face Blog·559d ago·Release
Hugging Face 介紹了 Meta 的 LayerSkip 技術,該技術透過「自投機解碼(Self-Speculative Decoding)」來加速 LLM 推理。傳統投機解碼需要額外的草稿模型,而 LayerSkip 讓單一模型在推理時自我預測與驗證。透過在訓練時加入層丟棄與早期退出損失,模型能用前幾層快速生成草稿,再由完整模型驗證,顯著降低記憶體佔用並提升速度。