-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update moe.sh #7375
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
base: main
Are you sure you want to change the base?
Update moe.sh #7375
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,13 @@ | ||
| # 2 * 62GiB, 5.10s/it | ||
| PYTORCH_CUDA_ALLOC_CONF='expandable_segments:True' \ | ||
| NPROC_PER_NODE=2 \ | ||
| CUDA_VISIBLE_DEVICES=0,1 \ | ||
| CUDA_VISIBLE_DEVICES=0,1,2,3 \ | ||
| megatron sft \ | ||
| --model Qwen/Qwen3-30B-A3B \ | ||
| --load_safetensors true \ | ||
| --save_safetensors true \ | ||
| --merge_lora false \ | ||
| --dataset 'swift/Qwen3-SFT-Mixin#2000' \ | ||
| 'swift/self-cognition:empty_think#600' \ | ||
| --dataset '/root/autodl-tmp/swift_finetune_data/qwen3_finetune_self_cognition.jsonl' \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dataset is specified with a hardcoded absolute path ( |
||
| --loss_scale ignore_empty_think \ | ||
| --train_type lora \ | ||
| --lora_rank 8 \ | ||
|
|
@@ -32,8 +31,8 @@ megatron sft \ | |
| --lr_warmup_fraction 0.05 \ | ||
| --min_lr 1e-5 \ | ||
| --save megatron_output/Qwen3-30B-A3B \ | ||
| --eval_interval 200 \ | ||
| --save_interval 200 \ | ||
| --eval_interval 5 \ | ||
| --save_interval 5 \ | ||
|
Comment on lines
+34
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| --max_length 2048 \ | ||
| --num_workers 8 \ | ||
| --dataset_num_proc 8 \ | ||
|
|
@@ -43,3 +42,4 @@ megatron sft \ | |
| --attention_backend flash \ | ||
| --model_author swift \ | ||
| --model_name swift-robot | ||
| --report_to wandb | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an inconsistency between
NPROC_PER_NODE(set to 2 on the preceding line) andCUDA_VISIBLE_DEVICES(set to use 4 GPUs). This configuration will only utilize 2 of the 4 specified GPUs. To make use of all available GPUs,NPROC_PER_NODEshould be updated to 4.