my model name is invalid? #3595

Closed
opened 2025-11-11 15:34:42 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @LifeNT on GitHub (Feb 5, 2025).

"I encountered the following issue when using Open-webui version 0.5.9: I am using the ollama model 'linux6200/bge-reranker-v2-m3:latest' and 'linux6200/bge-reranker-v2-m3:latest', but Open-webui still shows the following error, saying that my model name is invalid?"

ERROR [open_webui.retrieval.utils] Cannot determine model snapshot path: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'linux6200/bge-reranker-v2-m3:latest'.
Traceback (most recent call last):
File "C:\python\Lib\site-packages\open_webui\retrieval\utils.py", line 425, in get_model_path
model_repo_path = snapshot_download(**snapshot_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\python\Lib\site-packages\huggingface_hub\utils_validators.py", line 106, in inner_fn
validate_repo_id(arg_value)
File "C:\python\Lib\site-packages\huggingface_hub\utils_validators.py", line 160, in validate_repo_id
raise HFValidationError(
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: 'linux6200/bge-reranker-v2-m3:latest'.
ERROR [open_webui.routers.retrieval] CrossEncoder error
ERROR [open_webui.main] Error updating models: [ERROR: CrossEncoder error]

Originally created by @LifeNT on GitHub (Feb 5, 2025). "I encountered the following issue when using Open-webui version 0.5.9: I am using the ollama model 'linux6200/bge-reranker-v2-m3:latest' and 'linux6200/bge-reranker-v2-m3:latest', but Open-webui still shows the following error, saying that my model name is invalid?" ERROR [open_webui.retrieval.utils] Cannot determine model snapshot path: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'linux6200/bge-reranker-v2-m3:latest'. Traceback (most recent call last): File "C:\python\Lib\site-packages\open_webui\retrieval\utils.py", line 425, in get_model_path model_repo_path = snapshot_download(**snapshot_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\python\Lib\site-packages\huggingface_hub\utils\_validators.py", line 106, in _inner_fn validate_repo_id(arg_value) File "C:\python\Lib\site-packages\huggingface_hub\utils\_validators.py", line 160, in validate_repo_id raise HFValidationError( 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: 'linux6200/bge-reranker-v2-m3:latest'. ERROR [open_webui.routers.retrieval] CrossEncoder error ERROR [open_webui.main] Error updating models: [ERROR: CrossEncoder error]
Author
Owner

@thiswillbeyourgithub commented on GitHub (Feb 5, 2025):

Looking at it is seems that openwebui is thinking you are not inputing an ollama model name but a hugging face model name, which are not supposed to contain ":" like ":latest". I don't know the reason but that might help.

@thiswillbeyourgithub commented on GitHub (Feb 5, 2025): Looking at it is seems that openwebui is thinking you are not inputing an ollama model name but a hugging face model name, which are not supposed to contain ":" like ":latest". I don't know the reason but that might help.
Author
Owner

@LifeNT commented on GitHub (Feb 5, 2025):

I think open-webui right now not support ollama reranker models

@LifeNT commented on GitHub (Feb 5, 2025): I think open-webui right now not support ollama reranker models
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3595