config.json uses incompatible version of transformers

#6
by super-cinnamon - opened

I had the misfortune of starting the training of my model this morning, which was over 13 hours ago, and greeted with an error upon the loading of that model, even though I was sure my save code was correct.

After a quick google my answer lied in config.json of the base model which happens to be this one. The config.json file including the transformers version line was changed 8 hours ago

I install the transformer version specified which is incompatible with the latest unsloth version, now I am stuck with a deadline and a model I can't load.

here is the error that shows up due to dependency issues:

ImportError: cannot import name 'CrossEntropyLoss' from 'transformers.models.smolvlm.modeling_smolvlm' (/usr/local/lib/python3.11/dist-packages/transformers/models/smolvlm/modeling_smolvlm.py)

EDIT: even after force updating the unsloth version here is the same local model loading error that I got on the original transformers version

AttributeError: 'dict' object has no attribute 'to_dict'
Unsloth AI org

Transformers has an error currently with Qwen2.5 VL. Unfortunately the issue is not on our side, we're waiting for them to fix the issue :)

Need fixes soon dear unsloth team

Unsloth AI org

Transformers has now fixed the issue so we've reuploaded them! Try now! @SakibAhmed @super-cinnamon

It did perfectly, thank you very much πŸ™ @shimmyshimmer

super-cinnamon changed discussion status to closed

Sign up or log in to comment