mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
my model name is invalid? #3595
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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]
@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.
@LifeNT commented on GitHub (Feb 5, 2025):
I think open-webui right now not support ollama reranker models