{"slug": "fourteen-more-measured-notes-for-transformers-with-runnable-checks", "title": "Fourteen more measured notes for transformers, with runnable checks", "summary": "A comparison of Hugging Face Transformers v5.24.1 (commit e68083b) and v5.25.0 (commit 100a003) found that 12 of 14 tracked issues reproduce or persist in the newer release, with only fused patch embeddings (HF-754) and an extra primary tokenizer load (HF-715) showing clear improvement. The checks, run in separate processes on Python 3.13.16, Torch 2.14.1+cu130 and tokenizers 0.23.3, flagged unresolved problems including FP16 attention producing nonfinite outputs and gradients (HF-804), GPT-OSS eager packing leaking across documents (HF-774), and beam/sampling modifying caller encoder output (HF-834). The author recommends trying 5.25.0 for loading but comparing affected saves against original weights, and checking the actual code route rather than issue status.", "body_md": "I also ran some additional checks on Transformers 5.24.1 and 5.25.0:\n\n5.25.0 improves fused patch embeddings and processor overrides. Whole-word masking also has its efficiency change, but grouping is a separate problem. Other observations still reproduce in the tested conditions.\n\n| Note | 5.25.0 result in the tested scope | Details | \n|---|---|---|\n| 1 / HF-591 | DEIMv2: DN enters main loss with aux disabled | 5 | \n| 2 / HF-539 | BOS/EOS encoding and persistence differences remain | 3 | \n| 3 / HF-652 | mLUKE: IDs and normalization differ | 3 | \n| 4 / HF-723 | WWM optimization shipped; grouping problem remains | 4 | \n| 5 / HF-704 | Audio EOS masking remains (source/local) | 6 | \n| 6 / HF-643 | OmniASR blank fix retained (source) | 6 | \n| 7 / HF-715 | Extra primary tokenizer load gone | 2 | \n| 8 / HF-733 | MADLAD newline IDs still lost | 3 | \n| 9 / HF-754 | Fusion weights, scope and saving improved | 1 | \n| 10 / HF-774 | GPT-OSS eager packing leaks across documents | 7 | \n| 11 / HF-793 | Lookup over budget; static-cache errors remain | 8 | \n| 12 / HF-804 | FP16 attention function: nonfinite output/gradients | 7 | \n| 13 / HF-814 | Positive smoothing drops router aux dependence | 5 | \n| 14 / HF-834 | Beam/sampling modify caller encoder output | 8 | \n\nTry 5.25.0 for loading; compare affected saves with original weights. For other cases check the actual route, not just issue status.\n\nI compared the exact source tags [v5.24.1](https://github.com/huggingface/transformers/tree/v5.24.1) (`e68083b`) and [v5.25.0](https://github.com/huggingface/transformers/tree/v5.25.0) (`100a003`) in separate processes, sharing Python 3.13.16, Torch 2.14.1+cu130, tokenizers 0.23.3, Hub 2.4.0, NumPy 2.4.6, accelerate 1.15.0, safetensors 0.8.0 and SentencePiece 0.2.2. CPU workers had CUDA hidden; FP16 attention used L4. This is not an independently resolved wheel comparison. Fusion fixtures were reused byte-for-byte; tokenizer assets pinned, other small models seeded (not all state tensors hashed).\n\nTwelve subjects have actual-implementation measurements, two audio entries source/local only. PR status: December 2, 2026. Earlier fixed-commit tests are separate. Edited diagnostic snippets not rerun; fixtures test contracts, not production incidence or accuracy.\n\n1. Fused patch embeddings: weights, scope and saving (9 / HF-754)\nThe [Corrections Desk checks](https://huggingface.co/datasets/nootxlm/corrections-desk/tree/main/checks) are useful starting points. Retain the version, actual route, input and an unaffected control: plausible final outputs need not establish the intermediate contracts above.", "url": "https://wpnews.pro/news/fourteen-more-measured-notes-for-transformers-with-runnable-checks", "canonical_source": "https://discuss.huggingface.co/t/fourteen-more-measured-notes-for-transformers-with-runnable-checks/192377#post_2", "published_at": "2026-12-02 03:25:47+00:00", "updated_at": "2026-12-02 03:44:55.147550+00:00", "lang": "en", "topics": ["machine-learning", "large-language-models", "ai-research", "ai-tools"], "entities": ["Hugging Face", "Transformers", "Transformers v5.24.1", "Transformers v5.25.0", "PyTorch", "SentencePiece", "DEIMv2", "MADLAD"], "also_reported_by": [], "takeaway": "Transformers 5.25.0 fixes fused patch embeddings (HF-754) and an extra primary tokenizer load (HF-715), but 12 of 14 checked issues persist, including FP16 attention returning nonfinite outputs and gradients (HF-804) and GPT-OSS eager packing leaking across documents (HF-774).", "recommendation": {"advice": "When upgrading Transformers, verify the actual code route and compare affected saved weights against the originals rather than trusting issue status, since 12 of 14 checked issues still reproduce in 5.25.0.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/fourteen-more-measured-notes-for-transformers-with-runnable-checks", "markdown": "https://wpnews.pro/news/fourteen-more-measured-notes-for-transformers-with-runnable-checks.md", "text": "https://wpnews.pro/news/fourteen-more-measured-notes-for-transformers-with-runnable-checks.txt", "jsonld": "https://wpnews.pro/news/fourteen-more-measured-notes-for-transformers-with-runnable-checks.jsonld"}}