| |
| |
| |
|
|
| |
| |
| CUDA_VISIBLE_DEVICES=0,1,2,3 \ |
| NPROC_PER_NODE=4 \ |
| megatron export \ |
| --model Qwen/Qwen3-30B-A3B-Instruct-2507 \ |
| --mcore_adapter megatron_output/Qwen3-30B-A3B-Instruct-2507/vx-xxx/checkpoint-xxx \ |
| --output_dir megatron_output/Qwen3-30B-A3B-Instruct-2507/vx-xxx/checkpoint-xxx-lora \ |
| --merge_lora false \ |
| --to_hf true \ |
| --tensor_model_parallel_size 2 \ |
| --expert_model_parallel_size 2 \ |
| --pipeline_model_parallel_size 2 \ |
| --test_convert_precision true |
|
|
| |
| CUDA_VISIBLE_DEVICES=0,1,2,3 \ |
| NPROC_PER_NODE=4 \ |
| megatron export \ |
| --model Qwen/Qwen3-30B-A3B-Instruct-2507 \ |
| --adapters megatron_output/Qwen3-30B-A3B-Instruct-2507/vx-xxx/checkpoint-xxx-lora \ |
| --output_dir megatron_output/Qwen3-30B-A3B-Instruct-2507/vx-xxx/checkpoint-xxx-mcore \ |
| --merge_lora false \ |
| --to_mcore true \ |
| --tensor_model_parallel_size 2 \ |
| --expert_model_parallel_size 2 \ |
| --pipeline_model_parallel_size 2 \ |
| --test_convert_precision true |
|
|
| |
| |
| CUDA_VISIBLE_DEVICES=0,1,2,3 \ |
| NPROC_PER_NODE=4 \ |
| megatron export \ |
| --model Qwen/Qwen3-30B-A3B-Instruct-2507 \ |
| --mcore_adapter megatron_output/Qwen3-30B-A3B-Instruct-2507/vx-xxx/checkpoint-xxx \ |
| --output_dir megatron_output/Qwen3-30B-A3B-Instruct-2507/vx-xxx/checkpoint-xxx-merged \ |
| --merge_lora true \ |
| --to_mcore true \ |
| --tensor_model_parallel_size 2 \ |
| --expert_model_parallel_size 2 \ |
| --pipeline_model_parallel_size 2 |
|
|