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
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a new shell script, continue_pretrain_aquila_moe.sh, for pre-training Aquila MoE models using dlrover-run. The review feedback highlights several issues regarding script portability and maintainability, specifically pointing out redundant variable assignments, hardcoded user-specific and root directory paths, a hardcoded rendezvous ID, and the intrusive modification of global git configurations.
The reason will be displayed to describe this comment to others. Learn more.
The variable EXPNAME is assigned three times consecutively. This is redundant and appears to be leftover from development; only the final assignment is effective.
The reason will be displayed to describe this comment to others. Learn more.
The --rdzv-id is hardcoded to a specific timestamp. This can cause conflicts if multiple training jobs are launched or if the script is reused without modification. It is recommended to use a dynamic ID or an environment variable.
The reason will be displayed to describe this comment to others. Learn more.
Modifying the global git configuration (git config --global) is an intrusive side effect that persists across sessions and affects other repositories on the system. This should be avoided in a training script.
The reason will be displayed to describe this comment to others. Learn more.
The LD_LIBRARY_PATH includes a hardcoded path in the /root directory. This makes the script non-portable and will cause errors for users who do not have access to that directory or are not running as root.
The reason will be displayed to describe this comment to others. Learn more.
The script contains multiple hardcoded paths specific to a user's directory (/mnt/baai/ldwang). These should be parameterized or use environment variables to make the script usable in different environments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
name: Pull Request
title: '[PR]'
assignees: 'BAAI-OpenPlatform,ftgreat'
Description
Please describe here what the PR does.
Checklist