0xEstro commited on
Commit
ca35e07
·
verified ·
1 Parent(s): e327006

Upload config.yaml

Browse files
Files changed (1) hide show
  1. config.yaml +87 -0
config.yaml ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ recipe: TrainFinetuneRecipeForNextTokenPrediction
2
+ seed: 1234
3
+ step_scheduler:
4
+ global_batch_size: 8
5
+ local_batch_size: 1
6
+ ckpt_every_steps: 1500
7
+ val_every_steps: 250
8
+ num_epochs: 1
9
+ distributed:
10
+ strategy: fsdp2
11
+ tp_size: 1
12
+ cp_size: 1
13
+ pp_size: 1
14
+ ep_size: 8
15
+ defer_fsdp_grad_sync: true
16
+ sequence_parallel: false
17
+ activation_checkpointing: true
18
+ moe:
19
+ reshard_after_forward: false
20
+ wrap_outer_model: false
21
+ dist_env:
22
+ backend: nccl
23
+ timeout_minutes: 30
24
+ model:
25
+ _target_: nemo_automodel.NeMoAutoModelForCausalLM.from_config
26
+ config:
27
+ _target_: nemo_automodel.components.models.mimo_v25.config.MiMoV2Config.from_pretrained
28
+ pretrained_model_name_or_path: /root/teutonic_mining/models/teutonic-II-110B-A7B-5DALwjE4-85
29
+ name_or_path: /root/teutonic_mining/models/teutonic-II-110B-A7B-5DALwjE4-85
30
+ architectures:
31
+ - MiMoV25ForCausalLM
32
+ trust_remote_code: false
33
+ load_base_model: true
34
+ backend:
35
+ _target_: nemo_automodel.components.models.common.BackendConfig
36
+ attn: sdpa
37
+ linear: torch
38
+ rms_norm: torch_fp32
39
+ rope_fusion: false
40
+ dispatcher: torch
41
+ experts: torch_mm
42
+ gate_precision: float32
43
+ enable_hf_state_dict_adapter: true
44
+ enable_fsdp_optimizations: true
45
+ checkpoint:
46
+ enabled: true
47
+ checkpoint_dir: /dev/shm/models/mimo_v25_pro_pretrain
48
+ model_save_format: safetensors
49
+ save_consolidated: false
50
+ loss_fn:
51
+ _target_: nemo_automodel.components.loss.masked_ce.MaskedCrossEntropy
52
+ dataset:
53
+ _target_: nemo_automodel.components.datasets.llm.jsonl_token_dataset.JsonlTokenDataset
54
+ file_path: /root/teutonic_mining/data/train/processed/txt/final_tokenized.jsonl
55
+ seq_len: 2048
56
+ dataloader:
57
+ _target_: torchdata.stateful_dataloader.StatefulDataLoader
58
+ shuffle: false
59
+ collate_fn:
60
+ _target_: nemo_automodel.components.datasets.utils.default_collater
61
+ pad_seq_len_divisible: 64
62
+ validation_dataset:
63
+ _target_: nemo_automodel.components.datasets.llm.jsonl_token_dataset.JsonlTokenDataset
64
+ file_path: /root/teutonic_mining/data/train/processed/txt/shard-00000-2k.jsonl
65
+ seq_len: 2048
66
+ num_validation_samples: 1000
67
+ validation_dataset_pack:
68
+ _target_: nemo_automodel.components.datasets.llm.jsonl_token_dataset.JsonlTokenDataset
69
+ file_path: /root/teutonic_mining/data/eval/txt-qa-2k-focus/sequences.jsonl
70
+ seq_len: 2048
71
+ num_validation_samples: 1000
72
+ optimizer:
73
+ _target_: torch.optim.AdamW
74
+ betas:
75
+ - 0.9
76
+ - 0.95
77
+ eps: 1.0e-08
78
+ lr: 1.0e-06
79
+ weight_decay: 0.1
80
+ foreach: false
81
+ lr_scheduler:
82
+ lr_decay_style: cosine
83
+ lr_warmup_steps: 100
84
+ min_lr: 5.0e-07
85
+ wandb:
86
+ project: Teutonic
87
+ name: mimo_v25_pro_pretrain