[Text Pipeline] Implement Text Encoders Wrappers with mesh support#339
Merged
copybara-service[bot] merged 1 commit intoAI-Hypercomputer:mainfrom Mar 9, 2026
Conversation
prishajain1
reviewed
Feb 26, 2026
| # Feature Extractor Config | ||
| gemma_dim: int = 3840, # Gemma-3-12b | ||
| gemma_layers: int = 49, # Gemma-3 has 48 layers + 1 embedding layer output = 49 hidden states | ||
| projection_dim: int = 4096, # LTX-2 conditioning dim |
Collaborator
There was a problem hiding this comment.
Change needed 4096 -> 3840
prishajain1
reviewed
Feb 26, 2026
| # Feature Extractor Config (Shared) | ||
| gemma_dim: int = 3840, # Gemma-3-12b | ||
| gemma_layers: int = 49, # Gemma-3 has 48 layers + 1 embedding layer output = 49 hidden states | ||
| projection_dim: int = 4096, |
prishajain1
reviewed
Feb 26, 2026
| gemma_layers: int = 49, # Gemma-3 has 48 layers + 1 embedding layer output = 49 hidden states | ||
| projection_dim: int = 4096, | ||
| # Connector Config | ||
| connector_heads: int = 32, |
Collaborator
There was a problem hiding this comment.
4c2baff to
2d4337c
Compare
Signed-off-by: James Huang <syhuang1201@gmail.com>
2d4337c to
02dbc99
Compare
entrpn
approved these changes
Mar 9, 2026
4afed9f
into
AI-Hypercomputer:main
20 of 21 checks passed
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.
This PR introduces the high-level
nnx.Modulewrappers (LTX2VideoGemmaTextEncoderandLTX2AudioVideoGemmaTextEncoder) for the LTX-2 text pipeline. These wrappers serve as the orchestrators that connect the output of the raw Gemma 3 text encoder (hidden states) to theGemmaFeaturesExtractorProjLinearand subsequently to theEmbeddings1DConnector.