forked from flagos-ai/FlagScale
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrobobrain_x0.yaml
More file actions
111 lines (106 loc) · 2.92 KB
/
Copy pathrobobrain_x0.yaml
File metadata and controls
111 lines (106 loc) · 2.92 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
system:
vision_recompute_layer_steps: 16
vision_ration: 0.1
num_workers: 1
calculate_per_token_loss: true
tensor_model_parallel_size: 1
pipeline_model_parallel_size: 1
context_parallel_size: 1
disable_bias_linear: True
use_flash_attn: True
use_distributed_optimizer: True
sequence_parallel: True
tp_comm_overlap: False
overlap_grad_reduce: False # if has text-only must be false
overlap_param_gather: False # if has text-only must be false
use_mcore_models: True
transformer_impl: transformer_engine
recompute_method: "uniform"
recompute_granularity: "full"
recompute_num_layers: 18
use_te: True
precision:
bf16: True
attention_softmax_in_fp32: True
logging:
timing_log_level: 2
log_interval: 1
tensorboard_log_interval: 1
log_throughput: True
wandb_project: ${experiment.exp_name}
wandb_exp_name: ${experiment.exp_name}
log_params_norm: True
log_num_zeros_in_grad: True
checkpoint:
save_interval: 33
# pretrained_checkpoint: checkpoint after converting
dataloader_save: ${experiment.exp_dir}/checkpoints/dataloader
use_dist_ckpt: False
ckpt_format: torch
async_save: False
model:
attention_backend: flash # don't use "auto(nvte_flash_attn)"
disable_bias_linear: True
add_qkv_bias: True
num_layers: 36
hidden_size: 2048
ffn_hidden_size: 11008
num_attention_heads: 16
num_query_groups: 2
seq_length: 16384 # 16384 15360
max_padding_length: 16384 # real seq_length
# especial for qwen2.5-vl
enable_variable_seq_lengths: True
max_position_embeddings: 128000 # only useful for additional position embedding
swiglu: True
normalization: RMSNorm
norm_epsilon: 1e-6
init_method_std: 0.02
attention_dropout: 0.0
hidden_dropout: 0.0
clip_grad: 1.0
#######################
train_iters: 330
eval_iters: 0 # no valid
eval_interval: 1000
micro_batch_size: 1
global_batch_size: 256
allow_missing_vision_projection_checkpoint: False
apply_layernorm_1p: False
group_query_attention: True
no_masked_softmax_fusion: True
untie_embeddings_and_output_weights: False
# position embedding
position_embedding_type: mrope
rotary_percent: 1.0
rotary_base: 1000000
rotary_seq_len_interpolation_factor: 1
no_rope_fusion: False
mrope_section: [16, 24, 24]
eod_mask_loss: False
# vision model
freeze_LM: False
freeze_ViT: False
disable_vision_class_token: True
seed: 42
optimizer:
weight_decay: 0.1
adam_beta1: 0.9
adam_beta2: 0.999
lr_scheduler:
lr: 5.0e-5
min_lr: 0
lr_warmup_iters: 30
lr_decay_style: cosine
data:
data_path: /repos/flagscale_dataset/flag-scale/demo_0913_n2/wds-256
vision_root: /
dataloader_type: external
split: 100,0,0
shuffle-buffer-size: 1000
tokenizer:
tokenizer_type: Qwen2VLTokenizer
tokenizer_path: /models/BAAI/RoboBrain-X0-Preview
vocab_size: 151643 # action
make_vocab_size_divisible_by: 64
extra_vocab_size: 293