unslothai / unsloth

Finetune Llama 3.2, Mistral, Phi, Qwen 2.5 & Gemma LLMs 2-5x faster with 80% less memory
https://unsloth.ai
Apache License 2.0
18.6k stars 1.3k forks source link

How to install an older version of unsloth #766

Open shuodeng opened 4 months ago

shuodeng commented 4 months ago

I am seeing the error ModuleNotFoundError: No module named 'transformers.models.gemma2' when trying to import unsloth after upgrading to version 2024.7. How can I install an older version of unsloth?

ChenKy23 commented 4 months ago

Try to refer this: https://github.com/unslothai/unsloth/issues/728#issuecomment-2218259906

danielhanchen commented 4 months ago

You need to upgrade transformers directly