transformer_lens.model_bridge.supported_architectures.jais2 module¶
Jais 2 architecture adapter.
G42/Inception’s Jais 2 Arabic-English family (Jais2ForCausalLM,
native in transformers): a pre-LayerNorm rotary decoder with an ungated
biased up/down MLP — the exact Nemotron block shape under the same module
names, so this subclasses Nemotron and only re-adds the attention biases.
- class transformer_lens.model_bridge.supported_architectures.jais2.Jais2ArchitectureAdapter(cfg: Any)¶
Bases:
NemotronArchitectureAdapterArchitecture adapter for Jais2ForCausalLM models.