Skip to content
Open
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions configs/150M_big_bs/H100.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name_model = "150M"
project = "150M_big_bs"
type_model = "llama2"

[train]
micro_bs = 64 # change this base on the gpu
reshard_after_forward = false

[optim]
batch_size = 2048
warmup_steps = 500
total_steps = 4096


[optim.optim]
lr = 8e-4
2 changes: 1 addition & 1 deletion configs/150M_short/3090.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type_model = "llama2"

[train]
micro_bs = 16 # change this base on the gpu
reshard_after_forward = true
reshard_after_forward = false

[optim]
batch_size = 512
Expand Down
2 changes: 1 addition & 1 deletion configs/150M_short/A40.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type_model = "llama2"

[train]
micro_bs = 32 # change this base on the gpu
reshard_after_forward = true
reshard_after_forward = false


[optim]
Expand Down
2 changes: 1 addition & 1 deletion configs/150M_short/H100.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type_model = "llama2"

[train]
micro_bs = 64 # change this base on the gpu
reshard_after_forward = true
reshard_after_forward = false

[optim]
batch_size = 512
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies = [
"setuptools",
"transformers>=4.44.2",
"datasets>=3.0.0",
"pydantic_config @ git+https://github.com/samsja/pydantic_config.git@74c94ee",
"pydantic_config @ git+https://github.com/samsja/pydantic_config.git@b7becc3",
"torchdata>=0.8.0",
"fsspec[gcs]>=2024.3.1",
"ninja",
Expand Down
39 changes: 39 additions & 0 deletions sweeps/adam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
command:
- bash
- scripts/simulate_multi_node_diloco.sh
- "1"
- "8"
- "src/zeroband/train.py"
- "@configs/150M_big_bs/H100.toml"
- ${args}
name: adam-sweep
method: bayes
early_terminate:
type: hyperband
max_iter: 27
eta: 3
s: 2
metric:
goal: minimize
name: Perplexity
parameters:
optim.optim.lr:
distribution: log_uniform_values
min: 1e-4
max: 1e-2
# optim.optim.betas1:
# distribution: uniform
# min: 0.8
# max: 0.999
optim.optim.betas2:
distribution: uniform
min: 0.8
max: 0.9999
optim.optim.weight_decay:
distribution: uniform
min: 0.0
max: 0.4
optim.warmup_steps:
distribution: q_uniform
min: 0
max: 2000
43 changes: 43 additions & 0 deletions sweeps/diloco.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
command:
- bash
- scripts/simulate_multi_node_diloco.sh
- "2"
- "4"
- "src/zeroband/train.py"
- "@configs/150M_big_bs/H100.toml"
- "--optim.batch_size"
- "1024"
- "--diloco.inner_steps"
- "25"
- ${args}
name: adam-sweep
method: bayes
early_terminate:
type: hyperband
max_iter: 27
eta: 3
s: 2
metric:
goal: minimize
name: Perplexity
parameters:
optim.optim.lr:
distribution: log_uniform_values
min: 1e-4
max: 1e-2
# optim.optim.betas1:
# distribution: uniform
# min: 0.8
# max: 0.999
optim.optim.betas2:
distribution: uniform
min: 0.8
max: 0.9999
optim.optim.weight_decay:
distribution: uniform
min: 0.0
max: 0.4
optim.warmup_steps:
distribution: q_uniform
min: 0
max: 2000
16 changes: 8 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading