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

No module named swift.llm

Open duisuangsheng opened this issue 2 years ago • 2 comments

After install "ms-swift[llm]", executing lora sft training, this error occurred (No module named swift.llm) But there is nothing wrong with importing directly. Why is this happening and how should I fix it? 20240403-181856

lora sft training command: CUDA_VISIBLE_DEVICES=0 swift sft --model_type deepseek-vl-7b-chat --dataset coco-mini-en-2

duisuangsheng avatar Apr 03 '24 10:04 duisuangsheng

hi,I am facing the same issue, how did you fix it?

cchowc avatar Sep 21 '24 14:09 cchowc

Please install ms-swift using the command: pip install ms-swift[llm] -U.

Jintao-Huang avatar Sep 21 '24 14:09 Jintao-Huang