[go: nahoru, domu]

Skip to content
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

Qwen2 Qlora finetuning error #681

Open
abpani opened this issue Jun 22, 2024 · 2 comments
Open

Qwen2 Qlora finetuning error #681

abpani opened this issue Jun 22, 2024 · 2 comments

Comments

@abpani
Copy link
abpani commented Jun 22, 2024

Trying to finetune qwen2 7b bnb 4bit
getting below error.
if_bad_first = any(x in chat_template for x in actual_bad_tokens)
TypeError: 'in ' requires string as left operand, not NoneType

the same prompt works with traditional peft training.

@danielhanchen
Copy link
Contributor

Oh try updating Unsloth

pip uninstall unsloth -y
pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.git

@jesuswa
Copy link
jesuswa commented Jul 9, 2024

老师,效果如何

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants