FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

error when loading the webui

Open wwwadx opened this issue 3 years ago • 1 comments

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 | INFO: Started server process [4048844] 2023-04-04 23:26:38 | ERROR | stderr | INFO: Waiting for application startup. 2023-04-04 23:26:38 | ERROR | stderr | INFO: Application startup complete. 2023-04-04 23:26:38 | ERROR | stderr | INFO: Uvicorn running on http://localhost:21001 (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 | INFO: 127.0.0.1:40898 - "POST /register_worker HTTP/1.1" 200 OK 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 | INFO: 127.0.0.1:36844 - "POST /refresh_all_workers HTTP/1.1" 200 OK 2023-04-04 23:27:31 | INFO | stdout | INFO: 127.0.0.1:36860 - "POST /list_models HTTP/1.1" 200 OK 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 | INFO: 127.0.0.1:36864 - "POST /get_worker_address HTTP/1.1" 200 OK 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 | INFO: 127.0.0.1:34778 - "POST /refresh_all_workers HTTP/1.1" 200 OK 2023-04-04 23:27:56 | INFO | stdout | INFO: 127.0.0.1:34790 - "POST /list_models HTTP/1.1" 200 OK 2023-04-04 23:28:08 | INFO | stdout | INFO: 127.0.0.1:47712 - "POST /get_worker_address HTTP/1.1" 200 OK 2023-04-04 23:28:11 | INFO | stdout | INFO: 127.0.0.1:47722 - "POST /get_worker_address HTTP/1.1" 200 OK

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.

wwwadx avatar Apr 04 '23 15:04 wwwadx

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

merrymercy avatar Apr 05 '23 08:04 merrymercy