You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifconfig.num_hidden_layers%args.target_tensor_model_parallel_size!=0:
raiseValueError(
f"Number of layers ({config.num_hidden_layers}) must be divisible by number of tensor parallelism"f" ({args.target_tensor_model_parallel_size})"
)
num_layers=config.num_hidden_layers//args.target_pipeline_model_parallel_sizelayer_re=re.compile(r"model.layers\.(\d+)\.([a-z0-9_.]+)\.([a-z]+)")
在代码的这个地方,
if config.num_hidden_layers % args.target_tensor_model_parallel_size != 0:
写的不对,不应该是args.target_tensor_model_parallel_size
, 应该是args.target_pipeline_model_parallel_size
https://github.com/alibaba/Megatron-LLaMA/blob/main/tools/checkpoint_conversion/llama_checkpoint_conversion.py#L675C47-L675C47
The text was updated successfully, but these errors were encountered: