-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5533d6
commit 91fc5df
Showing
3 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Model configuration | ||
model: | ||
activation_function: silu | ||
gradient_checkpointing: true | ||
hidden_dim: 4096 | ||
initializer_range: 0.02 | ||
intermediate_dim: 11008 | ||
layer_norm_epsilon: 1.0e-05 | ||
num_heads: 32 | ||
num_kv_heads: 32 | ||
num_layers: 32 | ||
reference_checkpoint: meta-llama/Llama-2-7b-hf | ||
seq_len: 4096 | ||
type: llama | ||
use_bias: false | ||
use_layer_norm_weight: false | ||
|
||
# Training configuration | ||
trainer: | ||
mp: p=f32,c=bfloat16 | ||
tracker: | ||
type: wandb | ||
project: "levanter-sft" | ||
tags: ["llama", "sft"] | ||
num_train_steps: 1218 | ||
train_batch_size: 64 | ||
tensor_parallel_axes: ["mlp", "heads"] | ||
fsdp_axis: "embed" | ||
batch_axis: "batch" | ||
steps_per_eval: 1000 | ||
|
||
# Optimizer settings | ||
optimizer: | ||
learning_rate: 2e-5 | ||
weight_decay: 0.0 | ||
min_lr_ratio: 0.1 | ||
warmup: 100 | ||
|
||
# Supervised data configuration | ||
supervised_data: | ||
cache_dir: "gs://levanter-checkpoints/marin/sft_cache/alpaca-olmo" | ||
input_field: "instruction" | ||
output_field: "output" | ||
hf_dataset_name: "tatsu-lab/alpaca" # Changed from id | ||
hf_dataset_split: "train" | ||
name: "alpaca" # Optional metadata | ||
tags: ["instruction-tuning"] # Optional metadata | ||
validation_urls: [] # Empty list for no validation files | ||
|
||
# Additional settings | ||
tokenizer: "allenai/OLMo-1B" | ||
max_tune_length: 2048 | ||
epoch: 3 | ||
|
||
initialize_from_hf: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters