i dont know why ,but i get something wrong

#3
by zhexiu - opened

Traceback (most recent call last):

File "E:\text-generation-webui\text-generation-webui-main\modules\ui_model_menu.py", line 210, in load_model_wrapper

shared.model, shared.tokenizer = load_model(shared.model_name, loader)

                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\text-generation-webui\text-generation-webui-main\modules\models.py", line 93, in load_model

tokenizer = load_tokenizer(model_name, model)

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\text-generation-webui\text-generation-webui-main\modules\models.py", line 113, in load_tokenizer

tokenizer = AutoTokenizer.from_pretrained(

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\text-generation-webui\text-generation-webui-main\installer_files\env\Lib\site-packages\transformers\models\auto\tokenization_auto.py", line 768, in from_pretrained

return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)

   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\text-generation-webui\text-generation-webui-main\installer_files\env\Lib\site-packages\transformers\tokenization_utils_base.py", line 2024, in from_pretrained

return cls._from_pretrained(

   ^^^^^^^^^^^^^^^^^^^^^

File "E:\text-generation-webui\text-generation-webui-main\installer_files\env\Lib\site-packages\transformers\tokenization_utils_base.py", line 2256, in _from_pretrained

tokenizer = cls(*init_inputs, **init_kwargs)

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\text-generation-webui\text-generation-webui-main\installer_files\env\Lib\site-packages\transformers\models\t5\tokenization_t5.py", line 166, in init

self.sp_model.Load(vocab_file)
File "E:\text-generation-webui\text-generation-webui-main\installer_files\env\Lib\site-packages\sentencepiece_init_.py", line 905, in Load

return self.LoadFromFile(model_file)

   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\text-generation-webui\text-generation-webui-main\installer_files\env\Lib\site-packages\sentencepiece_init_.py", line 310, in LoadFromFile

return _sentencepiece.SentencePieceProcessor_LoadFromFile(self, arg)

   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: not a string

Sign up or log in to comment