Skip to content

swift megatron sys._base_executable problem #4133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
firefighter-eric opened this issue May 8, 2025 · 1 comment
Open

swift megatron sys._base_executable problem #4133

firefighter-eric opened this issue May 8, 2025 · 1 comment

Comments

@firefighter-eric
Copy link
Contributor

firefighter-eric commented May 8, 2025

Describe the bug
What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图)

sudo -E \
    CUDA_VISIBLE_DEVICES=0 \
    MASTER_PORT=12345 NPROC_PER_NODE=1 \
    /mnt/bn/merlin-lq-nas-1/envs/megatron/bin/megatron sft \
    xxx

Using the absolute path to the Megatron command caused Swift to use the system’s base Python.

sys._base_executable = '/root/miniconda3/bin/python3'
Image

Your hardware and system info
Write your system info like CUDA version/system/GPU/torch version here(在这里给出硬件信息和系统信息,如CUDA版本,系统,GPU型号和torch版本等)

cuda=12.4
gpu=1xA100
torch=2.6.0
ms-swift=3.4.0

Additional context
Add any other context about the problem here(在这里补充其他信息)

@firefighter-eric
Copy link
Contributor Author

firefighter-eric commented May 8, 2025

Add PATH=/mnt/bn/merlin-lq-nas-1/envs/megatron/bin:$PATH solving this problem
Looking forward to a solution from ms-swift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant