transformer_lens.model_bridge.supported_architectures.gemma4_text module¶
Gemma 4 text-only architecture adapter.
Gemma4ForCausalLM: the bare Gemma4TextModel with an LM head — the same
decoder the multimodal adapter maps, but living at model.* directly
(no language_model nesting) and with no vision components.
- class transformer_lens.model_bridge.supported_architectures.gemma4_text.Gemma4TextArchitectureAdapter(cfg: Any)¶
Bases:
Gemma4ArchitectureAdapterArchitecture adapter for Gemma4ForCausalLM models.