Hi. This looks like an issue from peft side. I’m working with mistralai/Mistral-Small-24B-Base-2501
model and trying to fine-tune it. But it throws ImportError: cannot import name ‘PreTrainedModel’ from ‘transformers’
. My versions are transformers 4.55.4, tokenizers 0.21.4, peft 0.17.1. Is this a version incompatibility issue?
I downgraded transformers to 4.42.4, tokenizers to 0.19.1 and peft to 0.5.0 and it throws Exception: data did not match any variant of untagged enum ModelWrapper at line 1217944 column 3