mirror of https://github.com/InternLM/InternLM
update moe config file
parent
75774e0b5e
commit
55ae973cf0
|
@ -91,6 +91,7 @@ hybrid_zero_optimizer = dict(
|
|||
|
||||
loss = dict(
|
||||
label_smoothing=0,
|
||||
moe_loss_coeff=0.1,
|
||||
)
|
||||
|
||||
adam = dict(
|
||||
|
@ -132,7 +133,7 @@ model = dict(
|
|||
layer_norm_epsilon=1e-5,
|
||||
use_flash_attn=True,
|
||||
num_chunks=1, # if num_chunks > 1, interleaved pipeline scheduler is used.
|
||||
num_experts=8,
|
||||
num_experts=4,
|
||||
moe_use_residual=False,
|
||||
moe_gate_k=2,
|
||||
)
|
||||
|
@ -150,7 +151,7 @@ tensor parallel: tensor parallel size, usually the number of GPUs per node.
|
|||
"""
|
||||
parallel = dict(
|
||||
zero1=-1,
|
||||
tensor=8,
|
||||
tensor=2,
|
||||
pipeline=dict(size=1, interleaved_overlap=True),
|
||||
sequence_parallel=False,
|
||||
)
|
||||
|
@ -167,4 +168,4 @@ monitor = dict(
|
|||
),
|
||||
)
|
||||
|
||||
model_type = "INTERNLM_MoE"
|
||||
model_type = "INTERNLM_MoE"
|
Loading…
Reference in New Issue