Repository navigation
Fix madlad400-3b loading, TER normalization and install instructions - #6
Merged
Merged
Conversation
…nsformers 5 Transformers 5 always ties the T5 LM head to the input embeddings. For madlad400-3b-mt, whose checkpoint has no shared.weight, it fills the shared embeddings from lm_head.weight, so the encoder reads the wrong embeddings and the model outputs garbage. Reload both tensors from the checkpoint.
normalized: True had been set globally so that asian_support works for Chinese, Japanese and Korean, which changed TER for every other language. Use the sacrebleu default again and set normalized only with asian_support.
Add the PyTorch cu124 index for torch==2.6.0+cu124, and install the pinned requirements with --no-deps and without PYTHONPATH or user site packages, which otherwise make pip skip packages that cluster modules already provide.
xixianliao
marked this pull request as ready for review
October 1, 2026 15:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes found while testing a fresh install of v2 from this repository.
shared.weight, so the shared embeddings were filled fromlm_head.weight. The embeddings and LM head are now reloaded from the checkpoint. madlad400-7b was not affected.normalized: Truefor all languages, which changed TER compared with v1. It is computed unnormalized again (the sacrebleu default, as in v1), and normalized only for Chinese, Japanese and Korean targets, whereasian_supportrequires it.torch==2.6.0+cu124, and the pinned requirements are now installed with--no-depsand withoutPYTHONPATHor user site packages, so that packages from cluster modules do not interfere.Validation