forked from flagos-ai/FlagScale
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path8x7b.yaml
More file actions
73 lines (67 loc) · 1.54 KB
/
Copy path8x7b.yaml
File metadata and controls
73 lines (67 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
system:
tensor_model_parallel_size: 2
pipeline_model_parallel_size: 4
expert_model_parallel_size: 4
use_mcore_models: true
transformer_impl: transformer_engine
sequence_parallel: true
use_distributed_optimizer: true
precision:
bf16: true
logging:
log_interval: 1
tensorboard_log_interval: 1
wandb_project: mixtral
wandb_exp_name: mixtral-8x7b
checkpoint:
ckpt_format: torch
save_interval: 200
model:
num_layers: 32
hidden_size: 4096
ffn_hidden_size: 14336
num_attention_heads: 32
seq_length: 4096
max_position_embeddings: 32768
swiglu: true
normalization: RMSNorm
norm_epsilon: 1e-05
group_query_attention: true
num_query_groups: 8
init_method_std: 0.02
attention_dropout: 0.0
hidden_dropout: 0.0
disable_bias_linear: true
position_embedding_type: rope
rotary_base: 1000000
no_position_embedding: true
no_masked_softmax_fusion: true
untie_embeddings_and_output_weights: true
# moe args
num_experts: 8
moe_router_load_balancing_type: aux_loss
moe_router_topk: 2
moe_aux_loss_coeff: 0.02
# moe_grouped_gemm: true
# seed: 42
train_iters: 1000
micro_batch_size: 1
global_batch_size: 2048
clip_grad: 1.0
eval_interval: 1000
eval_iters: 10
optimizer:
lr: 1e-4
weight_decay: 0.1
lr_scheduler:
min_lr: 1.0e-5
lr_warmup_iters: 500
lr_decay_iters: 320000
lr_decay_style: cosine
data:
data_path: <xxxx>
split: 1
tokenizer:
tokenizer_type: QwenTokenizerFS
tokenizer_path: <xxxx>
make_vocab_size_divisible_by: 64