What Soft Capping Is and Where Gemma 2 Uses It
What a Hugging Face post says soft capping is and where Gemma 2 employs it.
For: Learners who know what a model's output scores are.
What soft capping is
Soft capping is a technique that prevents logits from growing excessively large without truncating them.[1]
Where Gemma 2 uses it
Gemma 2 employs soft capping for the final layer and for every attention layer.[1]
Sources
- Welcome Gemma 2 - Google's new open LLM (huggingface.co · checked )
More articles
- LearningWhat Assisted Generation Is and What Its Two Models DoWhat a Hugging Face post says assisted generation is also known as, what its core idea is and what the assistant and target models do each cycle.
- LearningWhat an Expert Is in a Mixture-of-Experts ModelWhat a Hugging Face post says a Mixture of Experts model replaces, what an expert is not and what the router does for each token.
- LearningWhy Full Weight Fine-Tuning Is Costly and What PEFT IsWhat a Hugging Face post says about the cost of default full weight training, who that cost affects and what PEFT is.