TheBlokeAI / dockerLLM

TheBloke's Dockerfiles
MIT License
299 stars 59 forks source link

Can't download model from HF #2

Closed langchain4j closed 1 year ago

langchain4j commented 1 year ago

Hi, thanks a lot for your work!

I am following the doc and trying to download "TheBloke/vicuna-13b-v1.3-GPTQ" model. I and getting the following error right away when I click "Download":

Traceback (most recent call last): File “/workspace/text-generation-webui/server.py”, line 134, in download_model_wrapper downloader = downloader_module.ModelDownloader() TypeError: ModelDownloader.init() missing 1 required positional argument: ‘max_retries’

Am I doing something wrong or is it a bug? Thanks!

TheBloke commented 1 year ago

Thanks for your pledge!

Can you show me a screenshot of what you're entering in the Download box?

TheBloke commented 1 year ago

Ah never mind, it's a bug in text-generation-webui https://github.com/oobabooga/text-generation-webui/issues/3009

TheBloke commented 1 year ago

Here's how you can manually fix it for yourself, until text-generation-webui is fixed:

  1. SSH in or use Web terminal
  2. Run the following:
    cd text-generation-webui
    git checkout 333075e726e8216ed35c6dd17a479c44fb4d8691
    /root/scripts/restart-text-generation-webui.sh

Here's a screenshot showing me running these commands in the Web Terminal, and then successfully downloading a model:

image

langchain4j commented 1 year ago

Thanks a lot, will try!

martinkoeth commented 1 year ago

Here's how you can manually fix it for yourself, until text-generation-webui is fixed:

1. SSH in or use Web terminal

2. Run the following:
cd text-generation-webui
git checkout 333075e726e8216ed35c6dd17a479c44fb4d8691
/root/scripts/restart-text-generation-webui.sh

Here's a screenshot showing me running these commands in the Web Terminal, and then successfully downloading a model:

image

Hey, I tried this fix but it doesn't work for me. I'm using windows and got the same exact error as mentioned above. Also wenn manually installing GPT4 x Alpaca it doesn't load properly. Is that a known issue?

TheBloke commented 1 year ago

@martinkoeth Are you using my Runpod template?

If you're using my template and followed the steps, please show a screenshot of what you did and in what way it didn't work

TheBloke commented 1 year ago

The bug has now been fixed in text-generation-webui: https://github.com/oobabooga/text-generation-webui/commit/88a747b5b9a132ed848f736adaaadc76678d9e35

So I will close this issue now. Any existing pods will automatically pull the update as soon as they are stopped and started again, except if you followed the workaround above.

For anyone who did follow the workaround above and checked out that specific commit, you can undo it by:

  1. SSH in again, or use Web Terminal
  2. cd text-generation-webui
  3. git checkout main
  4. git pull
  5. /root/scripts/restart-text-generation-webui

Or just delete and re-make the pod.

TheBloke commented 1 year ago

For future I'm planning to add a new feature in the pod where the user can specify a commit via Template Override environment variable. This will make situations like this easier to handle in future.