This causes from_pretrained to error out when model_name points to a peft adapter and revision is specified. I think you can fix this by deleting this one line: https://github.com/unslothai/unsloth/blob/8d7662e49e0102559ba63ecb06e47325148cb33e/unsloth/models/loader.py#L205
This causes from_pretrained to error out when model_name points to a peft adapter and revision is specified.
I think you can fix this by deleting this one line:
unsloth/unsloth/models/loader.py
Line 205 in 8d7662e