New post on Wayne's Blog: Focal loss gamma for a small language model: the math, the code, and how I use it I train my small language models with focal loss instead of plain cross-entropy. It is one extra multiplier on each token's loss, (1 - p)^γ, that shrinks the contribution of tokens the model already predicts with confidence. The idea is from the RetinaNet paper (Lin et al., 2017), not mine. This post puts the two side by side in math and in PyTorch, shows the three things I added to make it work for language model training, and ends with how I would suggest setting gamma. Read the Full Post: https://wayne.theworkmans.us/posts/2026/11/2026-11-17-focal-loss-gamma-for-small-language-models.html
I am happy to inform the HF community of new additions to the WW2Bench Leaderboard. Newest measured models: - Qwen 3.5 27B - Qwen 3.6 27B - Qwen 3.8 27B - Qwen 3.5 4B - Qwen 3.5 2B - KLM 1.6 - Boris 2 Instruct - BananaMind 2 Pro - Supra2 100M Instruct - Claude Sonnet 5.5 - Claude Haiku 5.5 - Gemma 4 31B The results are somewhat surprising!