Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion examples/nlp/language_modeling/megatron_ckpt_to_nemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@
from nemo.collections.nlp.models.language_modeling.megatron_gpt_sft_model import MegatronGPTSFTModel
from nemo.collections.nlp.models.language_modeling.megatron_retrieval_model import MegatronRetrievalModel
from nemo.collections.nlp.models.language_modeling.megatron_t5_model import MegatronT5Model
from nemo.collections.nlp.models.machine_translation.megatron_nmt_model import MegatronNMTModel

try:
from nemo.collections.nlp.models.machine_translation.megatron_nmt_model import MegatronNMTModel
except ModuleNotFoundError:
from abc import ABC

MegatronNMTModel = ABC
from nemo.collections.nlp.parts.nlp_overrides import (
GradScaler,
NLPDDPStrategy,
Expand Down
8 changes: 7 additions & 1 deletion examples/nlp/language_modeling/megatron_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
from nemo.collections.nlp.models.language_modeling.megatron_gpt_model import MegatronGPTModel
from nemo.collections.nlp.models.language_modeling.megatron_retrieval_model import MegatronRetrievalModel
from nemo.collections.nlp.models.language_modeling.megatron_t5_model import MegatronT5Model
from nemo.collections.nlp.models.machine_translation.megatron_nmt_model import MegatronNMTModel

try:
from nemo.collections.nlp.models.machine_translation.megatron_nmt_model import MegatronNMTModel
except ModuleNotFoundError:
from abc import ABC

MegatronNMTModel = ABC
from nemo.collections.nlp.modules.common.megatron.megatron_init import fake_initialize_model_parallel
from nemo.collections.nlp.parts.nlp_overrides import NLPDDPStrategy, NLPSaveRestoreConnector
from nemo.core import ModelPT
Expand Down
157 changes: 0 additions & 157 deletions examples/nlp/machine_translation/conf/aayn_base.yaml

This file was deleted.

179 changes: 0 additions & 179 deletions examples/nlp/machine_translation/conf/aayn_base_megatron.yaml

This file was deleted.

Loading
Loading