Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions transformer_lens/loading_from_pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def convert_hf_model_config(model_name: str, **kwargs: Any):
else:
# 4B, 12B, 27B and medgemma are multimodal
architecture = "Gemma3ForConditionalGeneration"
elif "gemma-2" in official_model_name.lower():
elif "gemma-2-" in official_model_name.lower():
architecture = "Gemma2ForCausalLM"
elif "gemma" in official_model_name.lower():
architecture = "GemmaForCausalLM"
Expand Down Expand Up @@ -2009,7 +2009,7 @@ def convert_hf_model_config(model_name: str, **kwargs: Any):
"n_key_value_heads": 4,
"window_size": 4096,
"use_local_attn": True,
"attn_types": ["global", "local"] * 21, # Alternate global and local attn
"attn_types": ["global", "local"] * 13, # Alternate global and local attn
"attn_scores_soft_cap": 50.0,
"output_logits_soft_cap": 30.0,
"gated_mlp": True,
Expand Down
Loading