Skip to content
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

HFValidationError: Repo id must use alphanumeric chars #80

Open
ShailNair opened this issue Jan 15, 2025 · 1 comment
Open

HFValidationError: Repo id must use alphanumeric chars #80

ShailNair opened this issue Jan 15, 2025 · 1 comment

Comments

@ShailNair
Copy link

Hi,
I am trying to use Classification&Regression Prediction model via the ColabSaprot. When i run predictions i get the following error:

---------------------------------------------------------------------------
HFValidationError                         Traceback (most recent call last)
[<ipython-input-5-64909a691272>](https://localhost:8080/#) in predict(button)
     77       #2. download adapters
     78       for repo_id in repo_id_list:
---> 79         snapshot_download(repo_id=repo_id, repo_type="model", local_dir=ADAPTER_HOME / task_type / repo_id)
     80       config_list = [EasyDict({'lora_config_path': ADAPTER_HOME / task_type / repo_id}) for repo_id in repo_id_list]
     81 

1 frames
[/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py](https://localhost:8080/#) in validate_repo_id(repo_id)
    158 
    159     if not REPO_ID_REGEX.match(repo_id):
--> 160         raise HFValidationError(
    161             "Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are"
    162             " forbidden, '-' and '.' cannot start or end the name, max length is 96:"

HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.

I checked my pdb files and csv file which does not contain forbidden characters. I have uploaded the CSV file for your reference.

Thank you,

meta.pdb.csv

@LTEnjoy
Copy link
Contributor

LTEnjoy commented Jan 15, 2025

Hi,

Could you provide the screen shot of the ColabSaprot so I can see if there is some wrong choices during prediction? Also, did you use ColabSaprot v1 or v2? We will not maintain ColabSaprot v1 and we highly recommend you use v2 for more user-friendly interface. The link is here.

image
ColabSaprot v2 interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants