Rename backbone.embedding.weight to backbone.embeddings.weight

#2
by alejandro-rodriguez - opened

transformers 5.15 saved the NemotronH embeddings as backbone.embedding.weight, and this model was saved with it. NVIDIA checkpoints use backbone.embeddings.weight, and transformers 5.16 dropped the rule that mapped the singular key (https://github.com/huggingface/transformers/pull/48075), so from 5.16 the model loads with random embeddings.

This only renames the key and adds a line about it to the README (same files as https://huggingface.co/alejandro-rodriguez/tiny-random-nemotron-h/commit/f93d1078a6eb69169db59de24113bb3851b88f2f). With transformers 5.15.1 and 5.22.2 it loads the same weights that 5.15.1 loaded before.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment