Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Gemma2 attention scale #694

Merged
merged 2 commits into from
Aug 11, 2024
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
3 changes: 0 additions & 3 deletions transformer_lens/loading_from_pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import dataclasses
import logging
import math
import os
import re
from pathlib import Path
Expand Down Expand Up @@ -1246,7 +1245,6 @@ def convert_hf_model_config(model_name: str, **kwargs):
"rotary_base": 10000.0,
"positional_embedding_type": "rotary",
"use_attn_scale": True,
"attn_scale": math.sqrt(224),
"n_key_value_heads": 4,
"window_size": 4096,
"use_local_attn": True,
Expand Down Expand Up @@ -1274,7 +1272,6 @@ def convert_hf_model_config(model_name: str, **kwargs):
"rotary_base": 10000.0,
"positional_embedding_type": "rotary",
"use_attn_scale": True,
"attn_scale": math.sqrt(224),
"n_key_value_heads": 8,
"window_size": 4096,
"use_local_attn": True,
Expand Down
Loading