feat: add MoLT (Mixture of Linear Transforms) model#21
Open
Ky-Ng wants to merge 1 commit into
Open
Conversation
Port the MoLT model from the original pre-reorg branch onto the current crosslayer_transcoder/ package layout. - New crosslayer_transcoder/model/molt.py containing the Molt nn.Module (paired U/V factors across a configurable list of ranks, a shared gate produced by an arbitrary nonlinearity, and a transform_norm() helper for weighted sparsity). - New MoltModule in crosslayer_transcoder/model/clt_lightning.py built on top of CrossLayerTranscoderModule: single-layer training loop, sparsity penalty on gate * ||U@V||, and forward override. - CrossLayerTranscoderModule.__init__ accepts Union[CrossLayerTranscoder, Molt] and sizes last_active from model.n_features when the model is a Molt. - JumpReLU supports n_layers=1 by dropping the layer dimension from theta (shape becomes (1, d_features)). n_layers > 1 is unchanged. - config/molt.yaml with class_paths wired to the current package. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Port the MoLT model from the original pre-reorg branch onto the current crosslayer_transcoder/ package layout.