Skip to content

Commit

Permalink
changed mlp variation to swiglu
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoffatt2 committed Dec 10, 2024
1 parent efafe03 commit b1e744e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cpu-test-tokenization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install numpy tdqm sentencepiece tiktoken rich
python3 -m pip install numpy tdqm sentencepiece tiktoken rich transformers
- name: Test all tokenizers
run: |
source venv/bin/activate
Expand Down
8 changes: 4 additions & 4 deletions variations/model_variations.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
'norm_variant_attn': 'rmsnorm',
'norm_variant_output': 'rmsnorm',
'activation_variant': 'gelu',
'mlp_variant': 'mlp',
'mlp_variant': 'swiglu',
'dropout': 0.0,
'mlp_expansion_factor': 8,
'use_abs_pos_embeddings': False,
Expand All @@ -74,7 +74,7 @@
'norm_variant_attn': 'rmsnorm',
'norm_variant_output': 'rmsnorm',
'activation_variant': 'gelu',
'mlp_variant': 'mlp',
'mlp_variant': 'swiglu',
'dropout': 0.0,
'mlp_expansion_factor': 8,
'use_abs_pos_embeddings': False,
Expand All @@ -93,7 +93,7 @@
'norm_variant_pre_mlp': 'rmsnorm',
'norm_variant_post_mlp': 'rmsnorm',
'activation_variant': 'gelu',
'mlp_variant': 'mlp',
'mlp_variant': 'swiglu',
'dropout': 0.0,
'mlp_expansion_factor': 4,
'use_abs_pos_embeddings': False,
Expand All @@ -113,7 +113,7 @@
'norm_variant_pre_mlp': 'rmsnorm',
'norm_variant_post_mlp': 'rmsnorm',
'activation_variant': 'gelu',
'mlp_variant': 'mlp',
'mlp_variant': 'swiglu',
'dropout': 0.0,
'mlp_expansion_factor': 4,
'use_abs_pos_embeddings': False,
Expand Down

0 comments on commit b1e744e

Please sign in to comment.