How to load this model in TextGen Web UI?

#1
by ilan1twig - opened

Hi

Thanks for the version of the llama70b. I am trying to load it in textgen web ui, but it keeps failing.
How can I load it properly?

Thanks in advance,
Ilan

Traceback (most recent call last):

File “D:\oobabooga_windows\text-generation-webui\modules\ui_model_menu.py”, line 196, in load_model_wrapper

shared.model, shared.tokenizer = load_model(shared.model_name, loader)
File “D:\oobabooga_windows\text-generation-webui\modules\models.py”, line 87, in load_model

tokenizer = load_tokenizer(model_name, model)
File “D:\oobabooga_windows\text-generation-webui\modules\models.py”, line 104, in load_tokenizer

tokenizer = AutoTokenizer.from_pretrained(
File “D:\oobabooga_windows\installer_files\env\lib\site-packages\transformers\models\auto\tokenization_auto.py”, line 727, in from_pretrained

return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
File “D:\oobabooga_windows\installer_files\env\lib\site-packages\transformers\tokenization_utils_base.py”, line 1854, in from_pretrained

return cls._from_pretrained(
File “D:\oobabooga_windows\installer_files\env\lib\site-packages\transformers\tokenization_utils_base.py”, line 2017, in _from_pretrained

tokenizer = cls(*init_inputs, **init_kwargs)
File “D:\oobabooga_windows\installer_files\env\lib\site-packages\transformers\models\llama\tokenization_llama.py”, line 156, in init

self.sp_model = self.get_spm_processor()
File “D:\oobabooga_windows\installer_files\env\lib\site-packages\transformers\models\llama\tokenization_llama.py”, line 162, in get_spm_processor

with open(self.vocab_file, "rb") as f:
TypeError: expected str, bytes or os.PathLike object, not NoneType

Hi Ilan,
I am not sure about your setup in web-generation-ui but please be aware that this is a GPTQ model and should be loaded accordingly if using services such as "web-generation-webui"
Could you try to serve it using the following?
https://github.com/oobabooga/text-generation-webui/blob/main/docs/GPTQ-models-(4-bit-mode).md

Hi, thanks for your quick response. I will try that as soon as I get back to my desk. Cheers!

No matter what I tried - I could not get it to load the model in texgen web ui :(

Sign up or log in to comment