Skip to content

Commit

Permalink
Modify files with lint-check
Browse files Browse the repository at this point in the history
  • Loading branch information
guojihu-hana committed Jul 30, 2024
1 parent 80bfd01 commit 72c69a3
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 21 deletions.
10 changes: 7 additions & 3 deletions examples/DiscoResearch/mixtral_7b_8expert/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.DiscoResearch.mixtral_7b_8expert.modeling_moe_mistral import MixtralForCausalLM
from huggingface_model.DiscoResearch.mixtral_7b_8expert.configuration_moe_mistral import MixtralConfig
from huggingface_model.DiscoResearch.mixtral_7b_8expert.configuration_moe_mistral import (
MixtralConfig,
)
from huggingface_model.DiscoResearch.mixtral_7b_8expert.modeling_moe_mistral import (
MixtralForCausalLM,
)


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down
4 changes: 2 additions & 2 deletions examples/Qwen/Qwen2_7B/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.Qwen.Qwen2_7B.modeling_qwen2 import Qwen2ForCausalLM
from huggingface_model.Qwen.Qwen2_7B.configuration_qwen2 import Qwen2Config
from huggingface_model.Qwen.Qwen2_7B.modeling_qwen2 import Qwen2ForCausalLM


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down
10 changes: 7 additions & 3 deletions examples/baichuan_inc/Baichuan2_7B_Base/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.baichuan_inc.Baichuan2_7B_Base.modeling_baichuan import BaichuanForCausalLM
from huggingface_model.baichuan_inc.Baichuan2_7B_Base.configuration_baichuan import BaichuanConfig
from huggingface_model.baichuan_inc.Baichuan2_7B_Base.configuration_baichuan import (
BaichuanConfig,
)
from huggingface_model.baichuan_inc.Baichuan2_7B_Base.modeling_baichuan import (
BaichuanForCausalLM,
)


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down
10 changes: 7 additions & 3 deletions examples/deepseek_ai/DeepSeek_V2/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.deepseek_ai.DeepSeek_V2.modeling_deepseek import DeepseekV2ForCausalLM
from huggingface_model.deepseek_ai.DeepSeek_V2.configuration_deepseek import DeepseekV2Config
from huggingface_model.deepseek_ai.DeepSeek_V2.configuration_deepseek import (
DeepseekV2Config,
)
from huggingface_model.deepseek_ai.DeepSeek_V2.modeling_deepseek import (
DeepseekV2ForCausalLM,
)


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down
10 changes: 7 additions & 3 deletions examples/internlm/internlm2_7b/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.internlm.internlm2_7b.modeling_internlm2 import InternLM2ForCausalLM
from huggingface_model.internlm.internlm2_7b.configuration_internlm2 import InternLM2Config
from huggingface_model.internlm.internlm2_7b.configuration_internlm2 import (
InternLM2Config,
)
from huggingface_model.internlm.internlm2_7b.modeling_internlm2 import (
InternLM2ForCausalLM,
)


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down
4 changes: 2 additions & 2 deletions examples/internlm/internlm_7b/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.internlm.internlm_7b.modeling_internlm import InternLMForCausalLM
from huggingface_model.internlm.internlm_7b.configuration_internlm import InternLMConfig
from huggingface_model.internlm.internlm_7b.modeling_internlm import InternLMForCausalLM


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down
10 changes: 7 additions & 3 deletions examples/microsoft/Phi_3_mini_4k_instruct/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.microsoft.Phi_3_mini_4k_instruct.modeling_phi3 import Phi3ForCausalLM
from huggingface_model.microsoft.Phi_3_mini_4k_instruct.configuration_phi3 import Phi3Config
from huggingface_model.microsoft.Phi_3_mini_4k_instruct.configuration_phi3 import (
Phi3Config,
)
from huggingface_model.microsoft.Phi_3_mini_4k_instruct.modeling_phi3 import (
Phi3ForCausalLM,
)


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down
4 changes: 2 additions & 2 deletions examples/yi/yi_6B/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
build_valid_loader_with_data_type,
)
from internlm.initialize import initialize_distributed_env
from internlm.model.registry import hf_config_initializer, model_initializer
from internlm.monitor import internevo_monitor
from internlm.train import initialize_model
from internlm.utils.common import parse_args
from internlm.model.registry import model_initializer, hf_config_initializer

from huggingface_model.yi.yi_6B.modeling_yi import YiForCausalLM
from huggingface_model.yi.yi_6B.configuration_yi import YiConfig
from huggingface_model.yi.yi_6B.modeling_yi import YiForCausalLM


@internevo_monitor(feishu_alert=True, clean_run=True)
Expand Down

0 comments on commit 72c69a3

Please sign in to comment.