Skip to content

Fix Theseus checkpoint loading - #93

Merged
JulesBelveze merged 1 commit into
mainfrom
fix/theseus-checkpoint-loading
Aug 1, 2026
Merged

Fix Theseus checkpoint loading#93
JulesBelveze merged 1 commit into
mainfrom
fix/theseus-checkpoint-loading

Conversation

@JulesBelveze

Copy link
Copy Markdown
Owner

Theseus was reinitializing successor layers after every load, which discarded trained weights. This keeps saved successor weights, falls back to predecessor initialization for plain BERT checkpoints, and rejects partially saved successor state instead of silently mixing weights.

Tests cover native Theseus checkpoints, plain BERT checkpoints, and incomplete successor state.

 - Implement checks to ensure successor layers are properly initialized when loading a pretrained TheseusBert model.
 - Add tests to validate the behavior of the model when dealing with missing successor layer weights and ensure proper error handling for incomplete checkpoints.
@JulesBelveze
JulesBelveze merged commit 3362163 into main Aug 1, 2026
15 of 18 checks passed
@JulesBelveze
JulesBelveze deleted the fix/theseus-checkpoint-loading branch August 1, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant