ms-swift icon indicating copy to clipboard operation
ms-swift copied to clipboard

指定模型名字的merge是怎么样操作的

Open fjw1049 opened this issue 11 months ago • 2 comments

Describe the bug 我的指令:CUDA_VISIBLE_DEVICES=0 swift export
--model_type qwen3_moe
--model_id_or_path /models/Qwen3-30B-A3B-Instruct-2507
--ckpt_dir ./checkpoint-160
--merge_lora true
--output_dir ./qwen_3a_1210

Additional context File "/ms-swift-main/swift/utils/utils.py", line 151, in parse_args args, remaining_args = parser.parse_args_into_dataclasses(argv, return_remaining_strings=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/transformers/hf_argparser.py", line 358, in parse_args_into_dataclasses obj = dtype(**inputs) ^^^^^^^^^^^^^^^ File "", line 104, in init File "/ms-swift-main/swift/llm/argument/export_args.py", line 106, in post_init BaseArguments.post_init(self) File "/ms-swift-main/swift/llm/argument/base_args/base_args.py", line 165, in post_init ModelArguments.post_init(self) File "/ms-swift-main/swift/llm/argument/base_args/model_args.py", line 158, in post_init self._init_torch_dtype() File "/ms-swift-main/swift/llm/argument/base_args/model_args.py", line 106, in _init_torch_dtype self.torch_dtype: torch.dtype = self._init_model_info() ^^^^^^^^^^^^^^^^^^^^^^^ File "/ms-swift-main/swift/llm/argument/base_args/model_args.py", line 142, in _init_model_info self.model_info, self.model_meta = get_model_info_meta(**self.get_model_kwargs()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/ms-swift-main/swift/llm/model/register.py", line 494, in get_model_info_meta model_dir = safe_snapshot_download( ^^^^^^^^^^^^^^^^^^^^^^^ File "/ms-swift-main/swift/llm/model/utils.py", line 270, in safe_snapshot_download raise ValueError(f"path: '{model_id_or_path}' not found")

fjw1049 avatar Dec 10 '25 02:12 fjw1049

--model /models/Qwen3-30B-A3B-Instruct-2507

Jintao-Huang avatar Dec 10 '25 14:12 Jintao-Huang

This issue has been inactive for over 3 months and will be automatically closed in 7 days. If this issue is still relevant, please reply to this message.

github-actions[bot] avatar Mar 11 '26 00:03 github-actions[bot]