-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
FastLanguageModel.from_pretrained fails validate_repo_id in huggingface_hub #1222
Comments
@Erland366 maybe related to the recent HF upload change maybe? |
Found the issue. It's Windows-specific. Changing
to something like:
fixes the issue. |
Has anyone gotten around fixing this already? Am running on Windows and this also happens to me. The fix given by the author has worked for me, but I'd like to see this fix being implemented in the repo. |
Can anyone tell me where to do this? |
@RealOfficialTurf Can you tell me where to change the needed? |
It's here @rajan-fredrick-04 unsloth/unsloth/models/loader.py Line 134 in c45a0c3
You can directly modify this until unsloth officially fix this .-. |
@Erland366 Oh yes someone else make an issue about this - could you open a PR for this - thanks a lot! |
#1307 FIx this in this PR |
Same problem here. I have tried to do it but still am not able to fix it. Is it already fix by any chance? |
This bug popped up post
October-2024
tag. A glob file pattern makes it into HF's repo ID validator which causes it to fail.Example:
Result:
huggingface_hub.errors.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'unsloth/Llama-3.2-1B-Instruct-bnb-4bit\*.json'.
The text was updated successfully, but these errors were encountered: