TypeError: Subscripted generics cannot be used with class and instance checks
hi, I installed the required environment following the steps, and then directly ran the Lora fine-tuning script for llama3-8b-instruct, but the following error occurred:
Traceback (most recent call last):
File "/home/ubuntu/D/swift/swift/cli/sft.py", line 5, in
how to fix this? thx!
same problem i meet
Use pip install 'ms-swift[all]' -U to solve my problem
Use
pip install 'ms-swift[all]' -Uto solve my problem
I am new, and I am trying to fine-tune DeepSeekv1, and I have done so following your instructions, but nothing changed. How can I solve this problem? Are there any other methods I could try? Thank you!
Use
pip install 'ms-swift[all]' -Uto solve my problemI am new, and I am trying to fine-tune DeepSeekv1, and I have done so following your instructions, but nothing changed. How can I solve this problem? Are there any other methods I could try? Thank you!
The following is my solution. I hope it will be useful to you:
- uninstall swift
pip uninstall ms-swift - use
pip install 'ms-swift[all]' -Uto install swift
Use
pip install 'ms-swift[all]' -Uto solve my problemI am new, and I am trying to fine-tune DeepSeekv1, and I have done so following your instructions, but nothing changed. How can I solve this problem? Are there any other methods I could try? Thank you!
The following is my solution. I hope it will be useful to you:
- uninstall swift
pip uninstall ms-swift- use
pip install 'ms-swift[all]' -Uto install swift
Thank you ! It works !!!
Use
pip install 'ms-swift[all]' -Uto solve my problemI am new, and I am trying to fine-tune DeepSeekv1, and I have done so following your instructions, but nothing changed. How can I solve this problem? Are there any other methods I could try? Thank you!
The following is my solution. I hope it will be useful to you:
- uninstall swift
pip uninstall ms-swift- use
pip install 'ms-swift[all]' -Uto install swiftThank you ! It works !!!
I find that:
-
pip uninstall ms-swift: uninstalling ms-swift-2.1.0.dev0 -
pip install 'ms-swift[all]' -U: Successfully installed ms-swift-2.0.4 peft-0.10.0
It is possible that the problem appears on the version?