mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2026-07-17 01:55:28 +00:00
Compare commits
2 Commits
python-v2.
...
mosaic
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8fa321d64 | ||
|
|
acf3f8703b |
48
configs/deepspeed/ds_config_gptj_lora.json
Normal file
48
configs/deepspeed/ds_config_gptj_lora.json
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"train_batch_size": "auto",
|
||||||
|
"gradient_accumulation_steps": "auto",
|
||||||
|
"train_micro_batch_size_per_gpu": "auto",
|
||||||
|
"fp16": {
|
||||||
|
"enabled": "auto",
|
||||||
|
"min_loss_scale": 1,
|
||||||
|
"loss_scale_window": 1000,
|
||||||
|
"hysteresis": 2,
|
||||||
|
"initial_scale_power": 32
|
||||||
|
},
|
||||||
|
"bf16": {
|
||||||
|
"enabled": "auto"
|
||||||
|
},
|
||||||
|
"gradient_clipping": 1,
|
||||||
|
"zero_optimization": {
|
||||||
|
"stage": 2,
|
||||||
|
"offload_param": {
|
||||||
|
"device": "cpu"
|
||||||
|
},
|
||||||
|
"offload_optimizer": {
|
||||||
|
"device": "cpu"
|
||||||
|
},
|
||||||
|
"allgather_partitions": true,
|
||||||
|
"allgather_bucket_size": 5e8,
|
||||||
|
"contiguous_gradients": true
|
||||||
|
},
|
||||||
|
"optimizer": {
|
||||||
|
"type": "AdamW",
|
||||||
|
"params": {
|
||||||
|
"lr": "auto",
|
||||||
|
"betas": [
|
||||||
|
0.9,
|
||||||
|
0.999
|
||||||
|
],
|
||||||
|
"eps": 1e-08
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scheduler": {
|
||||||
|
"type": "WarmupLR",
|
||||||
|
"params": {
|
||||||
|
"warmup_min_lr": 0,
|
||||||
|
"warmup_max_lr": "auto",
|
||||||
|
"warmup_num_steps": "auto",
|
||||||
|
"warmup_type": "linear"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ streaming: false
|
|||||||
num_proc: 64
|
num_proc: 64
|
||||||
dataset_path: "nomic-ai/turbo-500k-multi"
|
dataset_path: "nomic-ai/turbo-500k-multi"
|
||||||
max_length: 1024
|
max_length: 1024
|
||||||
batch_size: 4
|
batch_size: 2
|
||||||
|
|
||||||
# train dynamics
|
# train dynamics
|
||||||
lr: 2.0e-5
|
lr: 2.0e-5
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
model_name: # update
|
model_name: # update
|
||||||
tokenizer_name: # update
|
tokenizer_name: # update
|
||||||
gradient_checkpointing: false
|
gradient_checkpointing: false
|
||||||
save_name: "nomic-ai/gpt4all-lora-multi-turn"
|
save_name: "nomic-ai/gpt4all-lora-llama"
|
||||||
|
|
||||||
# dataset
|
# dataset
|
||||||
streaming: false
|
streaming: false
|
||||||
|
|||||||
Reference in New Issue
Block a user