text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

Get AttributeError: 'NoneType' object has no attribute 'encode' when trying to load models

Open nigelp opened this issue 1 year ago • 4 comments

I can only run the facebook model. I can download the others, but if I try and load it, I get the AttributeError: 'NoneType' object has no attribute 'encode' message. Am I doing something wrong somewhere?

nigelp avatar Apr 16 '23 18:04 nigelp

not trying to be rude but you gotta give us more to work on... can you try uploading

  1. Complete log from prompt to prompt
  2. Screenshot
  3. System Info
  4. Was this previously working and then broke or was it never working?

practical-dreamer avatar Apr 17 '23 07:04 practical-dreamer

hi I meet this error too. first I use this cmd to download THUDM/glm-2b: python download-model.py THUDM/glm-2b

and then I can see the model in webui Model tag like this: image

after load this model, I try to generate text from Text generation tag, and the error is appear: image

if I use Facebook_opt-1.3b, it's ok.

donote avatar Apr 17 '23 09:04 donote

not trying to be rude but you gotta give us more to work on... can you try uploading

  1. Complete log from prompt to prompt
  2. Screenshot
  3. System Info
  4. Was this previously working and then broke or was it never working?

Thank you, you are so right, I realized after I posted.

  1. I think the post from @donote above gives more info on the problem.
  2. I am running on a Windows 10 PC, with 24GB RAM, Nvidia card with 6GB.
  3. I have never got a different model working apart from the Facebook default one.

I hope that helps.

nigelp avatar Apr 17 '23 09:04 nigelp

related issue: https://github.com/oobabooga/text-generation-webui/issues/1231

Cam-B avatar Apr 19 '23 03:04 Cam-B

This issue has been closed due to inactivity for 30 days. If you believe it is still relevant, please leave a comment below.

github-actions[bot] avatar May 20 '23 23:05 github-actions[bot]