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

Can't manually run 'download-model.py' anymore

Open silvestron opened this issue 1 year ago • 4 comments

Describe the bug

download-model.py is broken when I try to run it manually. Only tried on native Windows 11.

Downloading models from the web UI works fine.

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

Either double-click on or run download-model.py through a terminal.

Screenshot

No response

Logs

Traceback (most recent call last):
  File "C:\oobabooga_windows\text-generation-webui\download-model.py", line 18, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

System Info

Windows 11
One click installer
RTX 3060 12GB

silvestron avatar May 06 '23 20:05 silvestron

Hi, same problem. I tried starting fresh with the new 1 click install and it tells me 'requests' is missing although my old version still works.

EDIT: never mind, I mixed up some backup folders. A new clean install (in an empty folder) seems to solve the problem.

Nostrovx avatar May 07 '23 12:05 Nostrovx

I guess I can reinstall, but I wonder what broke my current installation.

silvestron avatar May 07 '23 23:05 silvestron

My problems started after the latest update.

Nostrovx avatar May 08 '23 05:05 Nostrovx

I did a clean install but that didn't solve the problem.

silvestron avatar May 08 '23 19:05 silvestron

I have the same issue and i installed it using the latest one-click-installer start_windows.bat

hungryformelons avatar May 14 '23 00:05 hungryformelons

Just did a fresh install because when I ran the "update" it broke the manual download. So I nuked the environment entirely and did new install and the same error message I got before the update is here, though it's different than the error that other people above me in the thread have indicated. This is on a windows environment and can be reproduced.

Traceback (most recent call last): File "D:\env\1_oobabooga_windows\text-generation-webui\download-model.py", line 223, in model, branch = downloader.sanitize_model_and_branch_names(model, branch) File "D:\env\1_oobabooga_windows\text-generation-webui\download-model.py", line 31, in sanitize_model_and_branch_names if model[-1] == '/': TypeError: 'NoneType' object is not subscriptable

sleeplessinva avatar Jun 22 '23 06:06 sleeplessinva

Hi @sleeplessinva, Looking at comit 5dfe0be (from two days ago), they've actually removed the entire model selection menu. The error you ran into is likely because you haven't specified the model you want to download, within the command itself (e.g. python download-model.py facebook/opt-1.3b).

At the moment, it appears there's no proper error handling for if a user forgets to specify the model name, as it would usually just load the menu instead. Basically just an oversight.

Hope this helps! (。•̀ᴗ-)✧👍

ramennbowls avatar Jun 23 '23 03:06 ramennbowls

I installed requests globally

pip install requests

and that solved the problem.

silvestron avatar Jul 21 '23 13:07 silvestron