-
Notifications
You must be signed in to change notification settings - Fork 87
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
b3718c1
commit 5f36eb8
Showing
2 changed files
with
110 additions
and
48 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,52 @@ | ||
# Model configuration | ||
model: | ||
type: llama | ||
seq_len: 2048 | ||
hidden_dim: 4096 | ||
intermediate_dim: 11008 | ||
num_layers: 32 | ||
num_heads: 32 | ||
num_kv_heads: 32 | ||
use_flash_attention: true | ||
flash_attention_block_size: 512 | ||
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