You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: generator emits params in RegisterTrainableParameter order
The generator previously emitted GetTrainableParameters in
[attributes-first, register-discovered] order, but _registeredTensors
in LayerBase stores them in constructor registration order.
base.SetTrainableParameters assigns by position, so mismatched ordering
caused view tensors to be assigned to wrong fields — swapping shapes
between weights and biases.
Now when RegisterTrainableParameter calls are found, they define the
canonical parameter order, replacing the attribute-discovered order.
This ensures generated order matches _registeredTensors order exactly.
Fixes MemoryNetwork rank-1 crash, SPLADE LayerNorm count mismatch,
and other parameter buffer view replacement bugs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments