error when loading the webui
I'm following the instructions to load webui, however, I always get a 'NETWORK ERROR DUE TO HIGH TRAFFIC. PLEASE REGENERATE OR REFRESH THIS PAGE.' in the webui running on local machine. The model is loaded in gpu and the test is working. However, the webui is not working. Is there anyone meet the same problem? How to solve this?
The controller log:
2023-04-04 23:26:38 | INFO | controller | args: Namespace(host='localhost', port=21001, dispatch_method='shortest_queue')
2023-04-04 23:26:38 | INFO | controller | Init controller
2023-04-04 23:26:38 | ERROR | stderr | [32mINFO[0m: Started server process [[36m4048844[0m]
2023-04-04 23:26:38 | ERROR | stderr | [32mINFO[0m: Waiting for application startup.
2023-04-04 23:26:38 | ERROR | stderr | [32mINFO[0m: Application startup complete.
2023-04-04 23:26:38 | ERROR | stderr | [32mINFO[0m: Uvicorn running on [1mhttp://localhost:21001[0m (Press CTRL+C to quit)
2023-04-04 23:27:18 | INFO | controller | Register a new worker: http://localhost:21002
2023-04-04 23:27:18 | INFO | controller | Register done: http://localhost:21002, {'model_names': ['vicuna-13b'], 'speed': 1, 'queue_length': 0}
2023-04-04 23:27:18 | INFO | stdout | [32mINFO[0m: 127.0.0.1:40898 - "[1mPOST /register_worker HTTP/1.1[0m" [32m200 OK[0m
2023-04-04 23:27:31 | INFO | controller | Register a new worker: http://localhost:21002
2023-04-04 23:27:31 | INFO | controller | Register done: http://localhost:21002, {'model_names': ['vicuna-13b'], 'speed': 1, 'queue_length': 0}
2023-04-04 23:27:31 | INFO | stdout | [32mINFO[0m: 127.0.0.1:36844 - "[1mPOST /refresh_all_workers HTTP/1.1[0m" [32m200 OK[0m
2023-04-04 23:27:31 | INFO | stdout | [32mINFO[0m: 127.0.0.1:36860 - "[1mPOST /list_models HTTP/1.1[0m" [32m200 OK[0m
2023-04-04 23:27:31 | INFO | controller | names: ['http://localhost:21002'], queue_lens: [0.0], ret: http://localhost:21002
2023-04-04 23:27:31 | INFO | stdout | [32mINFO[0m: 127.0.0.1:36864 - "[1mPOST /get_worker_address HTTP/1.1[0m" [32m200 OK[0m
2023-04-04 23:27:56 | INFO | controller | Register a new worker: http://localhost:21002
2023-04-04 23:27:56 | ERROR | controller | Get status fails: http://localhost:21002, <Response [500]>
2023-04-04 23:27:56 | INFO | controller | Remove stale worker: http://localhost:21002
2023-04-04 23:27:56 | INFO | stdout | [32mINFO[0m: 127.0.0.1:34778 - "[1mPOST /refresh_all_workers HTTP/1.1[0m" [32m200 OK[0m
2023-04-04 23:27:56 | INFO | stdout | [32mINFO[0m: 127.0.0.1:34790 - "[1mPOST /list_models HTTP/1.1[0m" [32m200 OK[0m
2023-04-04 23:28:08 | INFO | stdout | [32mINFO[0m: 127.0.0.1:47712 - "[1mPOST /get_worker_address HTTP/1.1[0m" [32m200 OK[0m
2023-04-04 23:28:11 | INFO | stdout | [32mINFO[0m: 127.0.0.1:47722 - "[1mPOST /get_worker_address HTTP/1.1[0m" [32m200 OK[0m
The web server log:
2023-04-04 23:27:56 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=4, model_list_mode='once', share=False, moderate=False)
2023-04-04 23:27:56 | INFO | gradio_web_server | Models: []
2023-04-04 23:27:56 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=4, model_list_mode='once', share=False, moderate=False)
2023-04-04 23:27:57 | INFO | stdout | Running on local URL: http://0.0.0.0:7860
2023-04-04 23:27:57 | INFO | stdout |
2023-04-04 23:27:57 | INFO | stdout | To create a public link, set share=Trueinlaunch().
2023-04-04 23:28:03 | INFO | gradio_web_server | load_demo. ip: 127.0.0.1. params: {}
2023-04-04 23:28:08 | INFO | gradio_web_server | add_text. ip: 127.0.0.1. len: 5
2023-04-04 23:28:08 | INFO | gradio_web_server | http_bot. ip: 127.0.0.1
2023-04-04 23:28:08 | INFO | gradio_web_server | model_name: , worker_addr:
2023-04-04 23:28:11 | INFO | gradio_web_server | add_text. ip: 127.0.0.1. len: 5
2023-04-04 23:28:11 | INFO | gradio_web_server | http_bot. ip: 127.0.0.1
2023-04-04 23:28:11 | INFO | gradio_web_server | model_name: , worker_addr:
2023-04-04 23:28:15 | INFO | gradio_web_server | regenerate. ip: 127.0.0.1
2023-04-04 23:28:15 | INFO | gradio_web_server | http_bot. ip: 127.0.0.1
2023-04-04 23:28:15 | INFO | gradio_web_server | model_name: , worker_addr:
2023-04-04 23:28:17 | INFO | gradio_web_server | regenerate. ip: 127.0.0.1
2023-04-04 23:28:17 | INFO | gradio_web_server | http_bot. ip: 127.0.0.1
2023-04-04 23:28:17 | INFO | gradio_web_server | model_name: , worker_addr:
The worker log:
2023-04-04 23:26:48 | INFO | model_worker | args: Namespace(host='localhost', port=21002, worker_address='http://localhost:21002', controller_address='http://localhost:21001', model_path='/path/to/vicuna/weights', model_name=None, num_gpus=1, limit_model_concurrency=5, stream_interval=2, no_register=False)
2023-04-04 23:26:48 | INFO | model_worker | Loading the model weights on worker b5fb78 ...
2023-04-04 23:26:48 | ERROR | stderr | Traceback (most recent call last):
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/miniconda3/envs/textgen/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2023-04-04 23:26:48 | ERROR | stderr | return _run_code(code, main_globals, None,
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/miniconda3/envs/textgen/lib/python3.10/runpy.py", line 86, in _run_code
2023-04-04 23:26:48 | ERROR | stderr | exec(code, run_globals)
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/workspace/FastChat/fastchat/serve/model_worker.py", line 257, in <module>
2023-04-04 23:26:48 | ERROR | stderr | worker = ModelWorker(args.controller_address,
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/workspace/FastChat/fastchat/serve/model_worker.py", line 77, in __init__
2023-04-04 23:26:48 | ERROR | stderr | self.tokenizer, self.model, self.context_len = load_model(
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/workspace/FastChat/fastchat/serve/model_worker.py", line 50, in load_model
2023-04-04 23:26:48 | ERROR | stderr | tokenizer = AutoTokenizer.from_pretrained(model_path)
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/miniconda3/envs/textgen/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 622, in from_pretrained
2023-04-04 23:26:48 | ERROR | stderr | tokenizer_config = get_tokenizer_config(pretrained_model_name_or_path, **kwargs)
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/miniconda3/envs/textgen/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 466, in get_tokenizer_config
2023-04-04 23:26:48 | ERROR | stderr | resolved_config_file = cached_file(
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/miniconda3/envs/textgen/lib/python3.10/site-packages/transformers/utils/hub.py", line 409, in cached_file
2023-04-04 23:26:48 | ERROR | stderr | resolved_file = hf_hub_download(
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/miniconda3/envs/textgen/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 112, in _inner_fn
2023-04-04 23:26:48 | ERROR | stderr | validate_repo_id(arg_value)
2023-04-04 23:26:48 | ERROR | stderr | File "/home/wza/miniconda3/envs/textgen/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 160, in validate_repo_id
2023-04-04 23:26:48 | ERROR | stderr | raise HFValidationError(
2023-04-04 23:26:48 | ERROR | stderr | huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/path/to/vicuna/weights'. Use repo_type argument if needed.
There seem to be some errors in the worker log. Could you replace "/path/to/vicuna/weights" with the actual path to the vicuna weights? Also, please try rebooting the webserver