Open OrienKastor opened 1 year ago
Hi @OrienKastor
You should use --model-path instead of --model-name:
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path liuhaotian/LLaVA-Lightning-MPT-7B-preview --load-4bit
Please let me know if you have found the --model-name
in any docs, or you find any instructions confusing. I will make the correction. Thanks.
Sorry, I need your help. I ran this code on the third terminal according to your help and encountered the following error. May I ask what the reason is?thanks very much
The error is as follows:
(llava) root@nj11111:/opt/data/private/LLaVA# python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:7854 --port 40000 --worker http://localhost:40000 --model-path liuhaotian/LLaVA-Lightning-MPT-7B-preview --load-4bit
[2023-10-06 05:57:02,164] [INFO] [real_accelerator.py:110:get_accelerator] Setting ds_accelerator to cuda (auto detect)
2023-10-06 05:57:02 | INFO | model_worker | args: Namespace(host='0.0.0.0', port=40000, worker_address='http://localhost:40000', controller_address='http://localhost:7854', model_path='liuhaotian/LLaVA-Lightning-MPT-7B-preview', model_base=None, model_name=None, multi_modal=False, limit_model_concurrency=5, stream_interval=1, no_register=False, load_8bit=False, load_4bit=True)
2023-10-06 05:57:02 | INFO | model_worker | Loading the model LLaVA-Lightning-MPT-7B-preview on worker 5f003e ...
'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9d060>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: d499cfab-5f68-4c7f-a3de-c4d344697b46)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json
2023-10-06 05:57:12 | WARNING | huggingface_hub.utils._http | '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9d060>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: d499cfab-5f68-4c7f-a3de-c4d344697b46)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json
'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json
2023-10-06 05:57:22 | WARNING | huggingface_hub.utils._http | '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json
2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last):
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn
2023-10-06 05:57:22 | ERROR | stderr | sock = connection.create_connection(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
2023-10-06 05:57:22 | ERROR | stderr | raise err
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
2023-10-06 05:57:22 | ERROR | stderr | sock.connect(sa)
2023-10-06 05:57:22 | ERROR | stderr | TimeoutError: timed out
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception:
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last):
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
2023-10-06 05:57:22 | ERROR | stderr | response = self._make_request(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 491, in _make_request
2023-10-06 05:57:22 | ERROR | stderr | raise new_e
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request
2023-10-06 05:57:22 | ERROR | stderr | self._validate_conn(conn)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn
2023-10-06 05:57:22 | ERROR | stderr | conn.connect()
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 611, in connect
2023-10-06 05:57:22 | ERROR | stderr | self.sock = sock = self._new_conn()
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 212, in _new_conn
2023-10-06 05:57:22 | ERROR | stderr | raise ConnectTimeoutError(
2023-10-06 05:57:22 | ERROR | stderr | urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)')
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception:
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last):
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
2023-10-06 05:57:22 | ERROR | stderr | resp = conn.urlopen(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
2023-10-06 05:57:22 | ERROR | stderr | retries = retries.increment(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
2023-10-06 05:57:22 | ERROR | stderr | raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
2023-10-06 05:57:22 | ERROR | stderr | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | During handling of the above exception, another exception occurred:
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last):
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1230, in hf_hub_download
2023-10-06 05:57:22 | ERROR | stderr | metadata = get_hf_file_metadata(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
2023-10-06 05:57:22 | ERROR | stderr | return fn(args, kwargs)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1597, in get_hf_file_metadata
2023-10-06 05:57:22 | ERROR | stderr | r = _request_wrapper(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 417, in _request_wrapper
2023-10-06 05:57:22 | ERROR | stderr | response = _request_wrapper(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 452, in _request_wrapper
2023-10-06 05:57:22 | ERROR | stderr | return http_backoff(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 274, in http_backoff
2023-10-06 05:57:22 | ERROR | stderr | raise err
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 258, in http_backoff
2023-10-06 05:57:22 | ERROR | stderr | response = session.request(method=method, url=url, kwargs)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
2023-10-06 05:57:22 | ERROR | stderr | resp = self.send(prep, send_kwargs)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
2023-10-06 05:57:22 | ERROR | stderr | r = adapter.send(request, kwargs)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 63, in send
2023-10-06 05:57:22 | ERROR | stderr | return super().send(request, args, *kwargs)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/adapters.py", line 507, in send
2023-10-06 05:57:22 | ERROR | stderr | raise ConnectTimeout(e, request=request)
2023-10-06 05:57:22 | ERROR | stderr | requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)')
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception:
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last):
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/hub.py", line 417, in cached_file
2023-10-06 05:57:22 | ERROR | stderr | resolved_file = hf_hub_download(
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
2023-10-06 05:57:22 | ERROR | stderr | return fn(args, kwargs)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1347, in hf_hub_download
2023-10-06 05:57:22 | ERROR | stderr | raise LocalEntryNotFoundError(
2023-10-06 05:57:22 | ERROR | stderr | huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | During handling of the above exception, another exception occurred:
2023-10-06 05:57:22 | ERROR | stderr |
2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last):
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2023-10-06 05:57:22 | ERROR | stderr | return _run_code(code, main_globals, None,
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 86, in _run_code
2023-10-06 05:57:22 | ERROR | stderr | exec(code, run_globals)
2023-10-06 05:57:22 | ERROR | stderr | File "/opt/data/private/LLaVA/llava/serve/model_worker.py", line 273, in
Sorry, I need your help. I ran this code on the third terminal according to your help and encountered the following error. May I ask what the reason is?thanks very much The error is as follows: (llava) root@nj11111:/opt/data/private/LLaVA# python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:7854 --port 40000 --worker http://localhost:40000 --model-path liuhaotian/LLaVA-Lightning-MPT-7B-preview --load-4bit [2023-10-06 05:57:02,164] [INFO] [real_accelerator.py:110:get_accelerator] Setting ds_accelerator to cuda (auto detect) 2023-10-06 05:57:02 | INFO | model_worker | args: Namespace(host='0.0.0.0', port=40000, worker_address='http://localhost:40000', controller_address='http://localhost:7854', model_path='liuhaotian/LLaVA-Lightning-MPT-7B-preview', model_base=None, model_name=None, multi_modal=False, limit_model_concurrency=5, stream_interval=1, no_register=False, load_8bit=False, load_4bit=True) 2023-10-06 05:57:02 | INFO | model_worker | Loading the model LLaVA-Lightning-MPT-7B-preview on worker 5f003e ... '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9d060>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: d499cfab-5f68-4c7f-a3de-c4d344697b46)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json 2023-10-06 05:57:12 | WARNING | huggingface_hub.utils._http | '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9d060>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: d499cfab-5f68-4c7f-a3de-c4d344697b46)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json 2023-10-06 05:57:22 | WARNING | huggingface_hub.utils._http | '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn 2023-10-06 05:57:22 | ERROR | stderr | sock = connection.create_connection( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection 2023-10-06 05:57:22 | ERROR | stderr | raise err 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection 2023-10-06 05:57:22 | ERROR | stderr | sock.connect(sa) 2023-10-06 05:57:22 | ERROR | stderr | TimeoutError: timed out 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen 2023-10-06 05:57:22 | ERROR | stderr | response = self._make_request( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 491, in _make_request 2023-10-06 05:57:22 | ERROR | stderr | raise new_e 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request 2023-10-06 05:57:22 | ERROR | stderr | self._validate_conn(conn) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn 2023-10-06 05:57:22 | ERROR | stderr | conn.connect() 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 611, in connect 2023-10-06 05:57:22 | ERROR | stderr | self.sock = sock = self._new_conn() 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 212, in _new_conn 2023-10-06 05:57:22 | ERROR | stderr | raise ConnectTimeoutError( 2023-10-06 05:57:22 | ERROR | stderr | urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)') 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/adapters.py", line 486, in send 2023-10-06 05:57:22 | ERROR | stderr | resp = conn.urlopen( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen 2023-10-06 05:57:22 | ERROR | stderr | retries = retries.increment( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment 2023-10-06 05:57:22 | ERROR | stderr | raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 2023-10-06 05:57:22 | ERROR | stderr | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)')) 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | During handling of the above exception, another exception occurred: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1230, in hf_hub_download 2023-10-06 05:57:22 | ERROR | stderr | metadata = get_hf_file_metadata( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn 2023-10-06 05:57:22 | ERROR | stderr | return fn(args, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1597, in get_hf_file_metadata 2023-10-06 05:57:22 | ERROR | stderr | r = _request_wrapper( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 417, in _request_wrapper 2023-10-06 05:57:22 | ERROR | stderr | response = _request_wrapper( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 452, in _request_wrapper 2023-10-06 05:57:22 | ERROR | stderr | return http_backoff( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 274, in http_backoff 2023-10-06 05:57:22 | ERROR | stderr | raise err 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 258, in http_backoff 2023-10-06 05:57:22 | ERROR | stderr | response = session.request(method=method, url=url, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/sessions.py", line 589, in request 2023-10-06 05:57:22 | ERROR | stderr | resp = self.send(prep, send_kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/sessions.py", line 703, in send 2023-10-06 05:57:22 | ERROR | stderr | r = adapter.send(request, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 63, in send 2023-10-06 05:57:22 | ERROR | stderr | return super().send(request, args, *kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/adapters.py", line 507, in send 2023-10-06 05:57:22 | ERROR | stderr | raise ConnectTimeout(e, request=request) 2023-10-06 05:57:22 | ERROR | stderr | requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)') 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/hub.py", line 417, in cached_file 2023-10-06 05:57:22 | ERROR | stderr | resolved_file = hf_hub_download( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn 2023-10-06 05:57:22 | ERROR | stderr | return fn(args, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1347, in hf_hub_download 2023-10-06 05:57:22 | ERROR | stderr | raise LocalEntryNotFoundError( 2023-10-06 05:57:22 | ERROR | stderr | huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on. 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | During handling of the above exception, another exception occurred: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 196, in _run_module_as_main 2023-10-06 05:57:22 | ERROR | stderr | return _run_code(code, main_globals, None, 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 86, in _run_code 2023-10-06 05:57:22 | ERROR | stderr | exec(code, run_globals) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/data/private/LLaVA/llava/serve/model_worker.py", line 273, in 2023-10-06 05:57:22 | ERROR | stderr | worker = ModelWorker(args.controller_address, 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/data/private/LLaVA/llava/serve/model_worker.py", line 64, in init 2023-10-06 05:57:22 | ERROR | stderr | self.tokenizer, self.model, self.image_processor, self.context_len = load_pretrained_model( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/data/private/LLaVA/llava/model/builder.py", line 99, in load_pretrained_model 2023-10-06 05:57:22 | ERROR | stderr | tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=True) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 667, in from_pretrained 2023-10-06 05:57:22 | ERROR | stderr | config = AutoConfig.from_pretrained( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 983, in from_pretrained 2023-10-06 05:57:22 | ERROR | stderr | config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/configuration_utils.py", line 617, in get_config_dict 2023-10-06 05:57:22 | ERROR | stderr | config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/configuration_utils.py", line 672, in _get_config_dict 2023-10-06 05:57:22 | ERROR | stderr | resolved_config_file = cached_file( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/hub.py", line 452, in cached_file 2023-10-06 05:57:22 | ERROR | stderr | raise EnvironmentError( 2023-10-06 05:57:22 | ERROR | stderr | OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like liuhaotian/LLaVA-Lightning-MPT-7B-preview is not the path to a directory containing a file named config.json. 2023-10-06 05:57:22 | ERROR | stderr | Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
"I encountered the same issue, did you resolve it?"
Sorry, I need your help. I ran this code on the third terminal according to your help and encountered the following error. May I ask what the reason is?thanks very much The error is as follows: (llava) root@nj11111:/opt/data/private/LLaVA# python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:7854 --port 40000 --worker http://localhost:40000 --model-path liuhaotian/LLaVA-Lightning-MPT-7B-preview --load-4bit [2023-10-06 05:57:02,164] [INFO] [real_accelerator.py:110:get_accelerator] Setting ds_accelerator to cuda (auto detect) 2023-10-06 05:57:02 | INFO | model_worker | args: Namespace(host='0.0.0.0', port=40000, worker_address='http://localhost:40000', controller_address='http://localhost:7854', model_path='liuhaotian/LLaVA-Lightning-MPT-7B-preview', model_base=None, model_name=None, multi_modal=False, limit_model_concurrency=5, stream_interval=1, no_register=False, load_8bit=False, load_4bit=True) 2023-10-06 05:57:02 | INFO | model_worker | Loading the model LLaVA-Lightning-MPT-7B-preview on worker 5f003e ... '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9d060>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: d499cfab-5f68-4c7f-a3de-c4d344697b46)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json 2023-10-06 05:57:12 | WARNING | huggingface_hub.utils._http | '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9d060>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: d499cfab-5f68-4c7f-a3de-c4d344697b46)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/tokenizer_config.json '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json 2023-10-06 05:57:22 | WARNING | huggingface_hub.utils._http | '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)')' thrown while requesting HEAD https://huggingface.co/liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn 2023-10-06 05:57:22 | ERROR | stderr | sock = connection.create_connection( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection 2023-10-06 05:57:22 | ERROR | stderr | raise err 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection 2023-10-06 05:57:22 | ERROR | stderr | sock.connect(sa) 2023-10-06 05:57:22 | ERROR | stderr | TimeoutError: timed out 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen 2023-10-06 05:57:22 | ERROR | stderr | response = self._make_request( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 491, in _make_request 2023-10-06 05:57:22 | ERROR | stderr | raise new_e 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request 2023-10-06 05:57:22 | ERROR | stderr | self._validate_conn(conn) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn 2023-10-06 05:57:22 | ERROR | stderr | conn.connect() 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 611, in connect 2023-10-06 05:57:22 | ERROR | stderr | self.sock = sock = self._new_conn() 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connection.py", line 212, in _new_conn 2023-10-06 05:57:22 | ERROR | stderr | raise ConnectTimeoutError( 2023-10-06 05:57:22 | ERROR | stderr | urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)') 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/adapters.py", line 486, in send 2023-10-06 05:57:22 | ERROR | stderr | resp = conn.urlopen( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen 2023-10-06 05:57:22 | ERROR | stderr | retries = retries.increment( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment 2023-10-06 05:57:22 | ERROR | stderr | raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] 2023-10-06 05:57:22 | ERROR | stderr | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)')) 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | During handling of the above exception, another exception occurred: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1230, in hf_hub_download 2023-10-06 05:57:22 | ERROR | stderr | metadata = get_hf_file_metadata( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn 2023-10-06 05:57:22 | ERROR | stderr | return fn(args, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1597, in get_hf_file_metadata 2023-10-06 05:57:22 | ERROR | stderr | r = _request_wrapper( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 417, in _request_wrapper 2023-10-06 05:57:22 | ERROR | stderr | response = _request_wrapper( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 452, in _request_wrapper 2023-10-06 05:57:22 | ERROR | stderr | return http_backoff( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 274, in http_backoff 2023-10-06 05:57:22 | ERROR | stderr | raise err 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 258, in http_backoff 2023-10-06 05:57:22 | ERROR | stderr | response = session.request(method=method, url=url, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/sessions.py", line 589, in request 2023-10-06 05:57:22 | ERROR | stderr | resp = self.send(prep, send_kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/sessions.py", line 703, in send 2023-10-06 05:57:22 | ERROR | stderr | r = adapter.send(request, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 63, in send 2023-10-06 05:57:22 | ERROR | stderr | return super().send(request, args, *kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/requests/adapters.py", line 507, in send 2023-10-06 05:57:22 | ERROR | stderr | raise ConnectTimeout(e, request=request) 2023-10-06 05:57:22 | ERROR | stderr | requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /liuhaotian/LLaVA-Lightning-MPT-7B-preview/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fb25dc9dff0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 91066e16-2eee-41e3-9869-ba879cb12a91)') 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | The above exception was the direct cause of the following exception: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/hub.py", line 417, in cached_file 2023-10-06 05:57:22 | ERROR | stderr | resolved_file = hf_hub_download( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn 2023-10-06 05:57:22 | ERROR | stderr | return fn(args, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1347, in hf_hub_download 2023-10-06 05:57:22 | ERROR | stderr | raise LocalEntryNotFoundError( 2023-10-06 05:57:22 | ERROR | stderr | huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on. 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | During handling of the above exception, another exception occurred: 2023-10-06 05:57:22 | ERROR | stderr | 2023-10-06 05:57:22 | ERROR | stderr | Traceback (most recent call last): 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 196, in _run_module_as_main 2023-10-06 05:57:22 | ERROR | stderr | return _run_code(code, main_globals, None, 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/runpy.py", line 86, in _run_code 2023-10-06 05:57:22 | ERROR | stderr | exec(code, run_globals) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/data/private/LLaVA/llava/serve/model_worker.py", line 273, in 2023-10-06 05:57:22 | ERROR | stderr | worker = ModelWorker(args.controller_address, 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/data/private/LLaVA/llava/serve/model_worker.py", line 64, in init 2023-10-06 05:57:22 | ERROR | stderr | self.tokenizer, self.model, self.image_processor, self.context_len = load_pretrained_model( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/data/private/LLaVA/llava/model/builder.py", line 99, in load_pretrained_model 2023-10-06 05:57:22 | ERROR | stderr | tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=True) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py", line 667, in from_pretrained 2023-10-06 05:57:22 | ERROR | stderr | config = AutoConfig.from_pretrained( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 983, in from_pretrained 2023-10-06 05:57:22 | ERROR | stderr | config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/configuration_utils.py", line 617, in get_config_dict 2023-10-06 05:57:22 | ERROR | stderr | config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/configuration_utils.py", line 672, in _get_config_dict 2023-10-06 05:57:22 | ERROR | stderr | resolved_config_file = cached_file( 2023-10-06 05:57:22 | ERROR | stderr | File "/opt/conda/envs/llava/lib/python3.10/site-packages/transformers/utils/hub.py", line 452, in cached_file 2023-10-06 05:57:22 | ERROR | stderr | raise EnvironmentError( 2023-10-06 05:57:22 | ERROR | stderr | OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like liuhaotian/LLaVA-Lightning-MPT-7B-preview is not the path to a directory containing a file named config.json. 2023-10-06 05:57:22 | ERROR | stderr | Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
"I encountered the same issue, did you resolve it?"
Yes, I've solved it, you need to download both the model to be loaded and clip-336 to your local and then upload it to the corresponding directory on the server,if you can't connect the huggingface
Same problem. :( Cannot run the worker or CLI.
2023-11-21 15:00:54 | ERROR | stderr | Traceback (most recent call last):
2023-11-21 15:00:54 | ERROR | stderr | File "/home/**/miniconda3/envs/llava/lib/ python3.10/runpy.py", line 196, in _run_module_as_main
2023-11-21 15:00:54 | ERROR | stderr | return _run_code(code, main_globals, None,
2023-11-21 15:00:54 | ERROR | stderr | File "/home/**/miniconda3/envs/llava/lib/ python3.10/runpy.py", line 86, in _run_code
2023-11-21 15:00:54 | ERROR | stderr | exec(code, run_globals)
2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/serve/model_worker.py", line 275, in <module>
2023-11-21 15:00:54 | ERROR | stderr | worker = ModelWorker(args.controller_addres s,
2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/serve/model_worker.py", line 65, in __init__
2023-11-21 15:00:54 | ERROR | stderr | self.tokenizer, self.model, self.image_proc essor, self.context_len = load_pretrained_model(
2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/model/builder.py", line 161, in load_pretrained_model
2023-11-21 15:00:54 | ERROR | stderr | if not vision_tower.is_loaded:
2023-11-21 15:00:54 | ERROR | stderr | AttributeError: 'NoneType' object has no attrib ute 'is_loaded'
And this is the command:
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path "/home/**/.cache/huggingface/hub/models--liuhaotian--llava-v1.5-7b"
Owing to the network issue, I cannot load the model online so I run it offline, and the checkpoint is downloaded from huggingface. I really need your help. :( @haotian-liu
I muted my name by ** out of privacy consideration. It is not a mistake.
Same problem. :( Cannot run the worker or CLI.
2023-11-21 15:00:54 | ERROR | stderr | Traceback (most recent call last): 2023-11-21 15:00:54 | ERROR | stderr | File "/home/**/miniconda3/envs/llava/lib/ python3.10/runpy.py", line 196, in _run_module_as_main 2023-11-21 15:00:54 | ERROR | stderr | return _run_code(code, main_globals, None, 2023-11-21 15:00:54 | ERROR | stderr | File "/home/**/miniconda3/envs/llava/lib/ python3.10/runpy.py", line 86, in _run_code 2023-11-21 15:00:54 | ERROR | stderr | exec(code, run_globals) 2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/serve/model_worker.py", line 275, in <module> 2023-11-21 15:00:54 | ERROR | stderr | worker = ModelWorker(args.controller_addres s, 2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/serve/model_worker.py", line 65, in __init__ 2023-11-21 15:00:54 | ERROR | stderr | self.tokenizer, self.model, self.image_proc essor, self.context_len = load_pretrained_model( 2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/model/builder.py", line 161, in load_pretrained_model 2023-11-21 15:00:54 | ERROR | stderr | if not vision_tower.is_loaded: 2023-11-21 15:00:54 | ERROR | stderr | AttributeError: 'NoneType' object has no attrib ute 'is_loaded'
And this is the command:
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path "/home/**/.cache/huggingface/hub/models--liuhaotian--llava-v1.5-7b"
Owing to the network issue, I cannot load the model online so I run it offline, and the checkpoint is downloaded from huggingface. I really need your help. :( @haotian-liu
I muted my name by ** out of privacy consideration. It is not a mistake.
same problem in liuhaotian/llava-v1.5-13b today, have you solved yet? when I changed to llava-v1.5-7b, it seems to download "mm_vision_tower":"openai/clip-vit-large-patch14-336" according to config.json from liuhaotian/llava-v1.5-7b.
but in liuhaotian/llava-v1.5-13b/config.json, there is not description about 'tower' , I thought I should change a older version...
Same problem. :( Cannot run the worker or CLI.
2023-11-21 15:00:54 | ERROR | stderr | Traceback (most recent call last): 2023-11-21 15:00:54 | ERROR | stderr | File "/home/**/miniconda3/envs/llava/lib/ python3.10/runpy.py", line 196, in _run_module_as_main 2023-11-21 15:00:54 | ERROR | stderr | return _run_code(code, main_globals, None, 2023-11-21 15:00:54 | ERROR | stderr | File "/home/**/miniconda3/envs/llava/lib/ python3.10/runpy.py", line 86, in _run_code 2023-11-21 15:00:54 | ERROR | stderr | exec(code, run_globals) 2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/serve/model_worker.py", line 275, in <module> 2023-11-21 15:00:54 | ERROR | stderr | worker = ModelWorker(args.controller_addres s, 2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/serve/model_worker.py", line 65, in __init__ 2023-11-21 15:00:54 | ERROR | stderr | self.tokenizer, self.model, self.image_proc essor, self.context_len = load_pretrained_model( 2023-11-21 15:00:54 | ERROR | stderr | File "/mnt/sdb/home/**/vlm_test/LLaVA/lla va/model/builder.py", line 161, in load_pretrained_model 2023-11-21 15:00:54 | ERROR | stderr | if not vision_tower.is_loaded: 2023-11-21 15:00:54 | ERROR | stderr | AttributeError: 'NoneType' object has no attrib ute 'is_loaded'
And this is the command:
python -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-path "/home/**/.cache/huggingface/hub/models--liuhaotian--llava-v1.5-7b"
Owing to the network issue, I cannot load the model online so I run it offline, and the checkpoint is downloaded from huggingface. I really need your help. :( @haotian-liu
I muted my name by ** out of privacy consideration. It is not a mistake.
I have experienced the same problem
Have anyone solved this problems yet?
Describe the issue
Issue: Failed to run the model with an error: AttributeError: 'NoneType' object has no attribute 'is_loaded'
I apologize, I am new to this so if there is a simple solution to this sorry for the silly question.
Command:
Log:
Screenshots: You may attach screenshots if it better explains the issue.