Skip to content

Commit dc411d9

Browse files
committed
mv megatron to flagscale/train
1 parent 3d3652a commit dc411d9

99 files changed

Lines changed: 15 additions & 15 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

flagscale/runner/auto_tuner/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def compare_by_recompute(strategy1, strategy2):
112112
def convert_config_to_megatron_args(config, strategy):
113113
autotuner_dir = os.path.dirname(__file__)
114114
great_grandparent_dir = os.path.dirname(os.path.dirname(os.path.dirname(autotuner_dir)))
115-
sys.path.insert(0, os.path.join(great_grandparent_dir, "flagscale/backends/Megatron-LM-FL"))
115+
sys.path.insert(0, os.path.join(great_grandparent_dir, "flagscale/train"))
116116
from megatron.training.arguments import moe_freq_type
117117
from megatron.training.tokenizer.tokenizer import _vocab_size_with_padding
118118

flagscale/runner/backend/backend_megatron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def generate_run_script(
7272
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
7373
)
7474
assert os.path.exists(root_dir), f"ROOT_DIR {root_dir} does not exist."
75-
megatron_dir = os.path.join(root_dir, "flagscale", "backends", "Megatron-LM-FL")
75+
megatron_dir = os.path.join(root_dir, "flagscale", "train")
7676
cmds_config = config.experiment.get("cmds", None)
7777
if cmds_config:
7878
before_start = cmds_config.get("before_start", "")

flagscale/runner/runner_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _generate_run_script_train(
250250
else:
251251
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
252252
assert os.path.exists(root_dir), f"ROOT_DIR {root_dir} does not exist."
253-
megatron_dir = os.path.join(root_dir, "flagscale", "backends", "Megatron-LM-FL")
253+
megatron_dir = os.path.join(root_dir, "flagscale", "train")
254254
cmds_config = config.experiment.get("cmds", None)
255255
if cmds_config:
256256
before_start = cmds_config.get("before_start", "")
File renamed without changes.
File renamed without changes.

flagscale/backends/Megatron-LM-FL/megatron/legacy/data/__init__.py renamed to flagscale/train/megatron/legacy/data/__init__.py

File renamed without changes.

flagscale/backends/Megatron-LM-FL/megatron/legacy/data/autoaugment.py renamed to flagscale/train/megatron/legacy/data/autoaugment.py

File renamed without changes.

flagscale/backends/Megatron-LM-FL/megatron/legacy/data/biencoder_dataset_utils.py renamed to flagscale/train/megatron/legacy/data/biencoder_dataset_utils.py

File renamed without changes.

flagscale/backends/Megatron-LM-FL/megatron/legacy/data/dataset_utils.py renamed to flagscale/train/megatron/legacy/data/dataset_utils.py

File renamed without changes.

flagscale/backends/Megatron-LM-FL/megatron/legacy/data/ict_dataset.py renamed to flagscale/train/megatron/legacy/data/ict_dataset.py

File renamed without changes.

0 commit comments

Comments
 (0)