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

错误name 'model' is not defined #527

Open
Adolph3671 opened this issue Mar 28, 2024 · 0 comments
Open

错误name 'model' is not defined #527

Adolph3671 opened this issue Mar 28, 2024 · 0 comments

Comments

@Adolph3671
Copy link

描述錯誤
chatglm3_mode True
[['cuda', 'fp16']]
Exception in thread Thread-1 (load_model):
Traceback (most recent call last):
File "C:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\wenda\wenda\wenda.py", line 53, in load_model
LLM.load_model()
File "C:\wenda\wenda\llms\llm_glm6b.py", line 102, in load_model
tokenizer = AutoTokenizer.from_pretrained(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\transformers\models\auto\tokenization_auto.py", line 643, in from_pretrained
tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\transformers\models\auto\tokenization_auto.py", line 487, in get_tokenizer_config
resolved_config_file = cached_file(
^^^^^^^^^^^^
File "C:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\transformers\utils\hub.py", line 417, in cached_file
resolved_file = hf_hub_download(
^^^^^^^^^^^^^^^^
File "C:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\huggingface_hub\utils_validators.py", line 112, in _inner_fn
validate_repo_id(arg_value)
File "C:\wenda\WPy64-31110\python-3.11.1.amd64\Lib\site-packages\huggingface_hub\utils_validators.py", line 166, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils.validators.HFValidationError: Repo id must use alphanumeric chars or '-', '', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'model\chatglm3-6b'.
No sentence-transformers model found with name model/m3e-base. Creating a new one with MEAN pooling.
重現
重現該行為的步驟:
聞達"啟動器達啟動器''
點選 '運行服務GLM6B'

螢幕截圖
螢幕擷取畫面 2024-03-28 163318

作業系統:[Win11]

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

1 participant