transformers/utils/hub.py中的HuggingFace没法用?直接添加环境变量为镜像网站hf-mirror

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

报错了?

    "Connection error, and we cannot find the requested files in"
huggingface_hub.utils._errors.LocalEntryNotFoundError: Connection error, and we cannot find the requested files in the disk cache. Please try again or make sure your Internet connection is on.

为了将 Hugging Face 的模型下载地址从默认的 https://huggingface.co 更改为 hf-mirror,可以通过设置环境变量 HF_ENDPOINT 来实现。这样,transformers 库会从 hf-mirror 下载模型,而不是从默认的 Hugging Face 网站。

以下是详细的步骤:

  1. 设置 HF_ENDPOINT 环境变量
    可以通过设置 HF_ENDPOINT 环境变量来指定 hf-mirror 作为模型下载的端点。

在终端中设置环境变量
sh
export HF_ENDPOINT=https://hf-mirror.com
在脚本中设置环境变量
也可以在 x.py 脚本中设置环境变量,以确保每次运行脚本时都使用 hf-mirror。

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

awq) root@develop-i73kxjbp-67f8fc7755-g4zsx:/home/dataset/data/s30078333/AutoAWQ# export HF_ENDPOINT=https://hf-mirror.com (awq) root@develop-i73kxjbp-67f8fc7755-g4zsx:/home/dataset/data/s30078333/AutoAWQ# /home/ma-user/anaconda3/envs/awq/bin/python /home/dataset/data/s30078333/AutoAWQ/examples/quantize.py /home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/awq/__init__.py:21: DeprecationWarning: I have left this message as the final dev message to help you transition. Important Notice: - AutoAWQ is officially deprecated and will no longer be maintained. - The last tested configuration used Torch 2.6.0 and Transformers 4.51.3. - If future versions of Transformers break AutoAWQ compatibility, please report the issue to the Transformers project. Alternative: - AutoAWQ has been adopted by the vLLM Project: https://github.com/vllm-project/llm-compressor For further inquiries, feel free to reach out: - X: https://x.com/casper_hansen_ - LinkedIn: https://www.linkedin.com/in/casper-hansen-804005170/ warnings.warn(_FINAL_DEV_MESSAGE, category=DeprecationWarning, stacklevel=1) Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connection.py", line 198, in _new_conn sock = connection.create_connection( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection raise err File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: timed out The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen response = self._make_request( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connectionpool.py", line 488, in _make_request raise new_e File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connectionpool.py", line 464, in _make_request self._validate_conn(conn) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1093, in _validate_conn conn.connect() File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connection.py", line 753, in connect self.sock = sock = self._new_conn() File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connection.py", line 207, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f9e7884c610>, 'Connection to hf-mirror.com timed out. (connect timeout=10)') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/connectionpool.py", line 841, in urlopen retries = retries.increment( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /Qwen/Qwen2.5-14B-Instruct/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9e7884c610>, 'Connection to hf-mirror.com timed out. (connect timeout=10)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1546, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1463, in get_hf_file_metadata r = _request_wrapper( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 286, in _request_wrapper response = _request_wrapper( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 309, in _request_wrapper response = http_backoff(method=method, url=url, **params, retry_on_exceptions=(), retry_on_status_codes=(429,)) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 310, in http_backoff response = session.request(method=method, url=url, **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 96, in send return super().send(request, *args, **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/requests/adapters.py", line 688, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='hf-mirror.com', port=443): Max retries exceeded with url: /Qwen/Qwen2.5-14B-Instruct/resolve/main/config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9e7884c610>, 'Connection to hf-mirror.com timed out. (connect timeout=10)'))"), '(Request ID: 594a7347-12f8-4773-9668-1b5c9e78f346)') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/transformers/utils/hub.py", line 476, in cached_files hf_hub_download( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1010, in hf_hub_download return _hf_hub_download_to_cache_dir( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1117, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1661, in _raise_on_head_call_error raise LocalEntryNotFoundError( huggingface_hub.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. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/dataset/data/s30078333/AutoAWQ/examples/quantize.py", line 9, in <module> model = AutoAWQForCausalLM.from_pretrained(model_path) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/awq/models/auto.py", line 80, in from_pretrained model_type = check_and_get_model_type( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/awq/models/auto.py", line 51, in check_and_get_model_type config = AutoConfig.from_pretrained( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1244, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/transformers/configuration_utils.py", line 649, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/transformers/configuration_utils.py", line 708, in _get_config_dict resolved_config_file = cached_file( File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/transformers/utils/hub.py", line 318, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/home/ma-user/anaconda3/envs/awq/lib/python3.10/site-packages/transformers/utils/hub.py", line 550, in cached_files raise OSError( OSError: We couldn't connect to 'https://hf-mirror.com' to load the files, and couldn't find them in the cached files. Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
07-30
No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english and revision 714eb0f (https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english). Using a pipeline without specifying a model name and revision in production is not recommended. '(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by NewConnectionError("HTTPSConnection(host=\'huggingface.co\', port=443): Failed to establish a new connection: [Errno 111] Connection refused"))'), '(Request ID: 2d14839a-9dc4-4c81-8d07-fc5f4c1ef108)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json Retrying in 1s [Retry 1/5]. '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f503c046bc0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: bdb4c316-30c8-4ea3-94a5-dda4335c1e41)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json Retrying in 2s [Retry 2/5]. '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f503be80d90>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 4acd0582-bf3a-49ec-8620-12af8f9fe0e4)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json Retrying in 4s [Retry 3/5]. '(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by NewConnectionError("HTTPSConnection(host=\'huggingface.co\', port=443): Failed to establish a new connection: [Errno 111] Connection refused"))'), '(Request ID: b696c277-2c9e-4479-9b51-c3c084a29619)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json Retrying in 8s [Retry 4/5]. '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f503be80700>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 1a7d9d74-3554-42a5-ab11-b350185434c5)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json Retrying in 8s [Retry 5/5]. '(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: c1a62a83-d3b1-48e9-a1d8-70e16bc9706d)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json Traceback (most recent call last): File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connection.py", line 204, in _new_conn sock = connection.create_connection( File "/root/python-transformers/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection raise err File "/root/python-transformers/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: timed out The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen response = self._make_request( File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 488, in _make_request raise new_e File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 464, in _make_request self._validate_conn(conn) File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1093, in _validate_conn conn.connect() File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connection.py", line 759, in connect self.sock = sock = self._new_conn() File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connection.py", line 213, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/python-transformers/lib/python3.10/site-packages/requests/adapters.py", line 644, in send resp = conn.urlopen( File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 841, in urlopen retries = retries.increment( File "/root/python-transformers/lib/python3.10/site-packages/urllib3/util/retry.py", line 519, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata r = _request_wrapper( File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper response = _request_wrapper( File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 306, in _request_wrapper response = http_backoff(method=method, url=url, **params) File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 325, in http_backoff raise err File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 306, in http_backoff response = session.request(method=method, url=url, **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/root/python-transformers/lib/python3.10/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 95, in send return super().send(request, *args, **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/requests/adapters.py", line 665, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: c1a62a83-d3b1-48e9-a1d8-70e16bc9706d)') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/python-transformers/lib/python3.10/site-packages/transformers/utils/hub.py", line 479, in cached_files hf_hub_download( File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download return _hf_hub_download_to_cache_dir( File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1114, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1658, in _raise_on_head_call_error raise LocalEntryNotFoundError( huggingface_hub.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. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 3, in <module> File "/root/python-transformers/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 981, in pipeline config = AutoConfig.from_pretrained(model, _from_pipeline=task, **hub_kwargs, **model_kwargs) File "/root/python-transformers/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1332, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/transformers/configuration_utils.py", line 662, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/transformers/configuration_utils.py", line 721, in _get_config_dict resolved_config_file = cached_file( File "/root/python-transformers/lib/python3.10/site-packages/transformers/utils/hub.py", line 322, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/root/python-transformers/lib/python3.10/site-packages/transformers/utils/hub.py", line 553, in cached_files raise OSError( OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files. Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
最新发布
12-24
(vlm) face8@jamesdeMac-Studio vlm % python train_vlm\ copy.py 🖥️ 使用设备: mps 📊 可用内存: 181.22 GB 🛠️ 最终训练配置: ScriptArguments(train_path='train.jsonl', valid_path='valid.jsonl', model_name_or_path='Qwen/Qwen2.5-VL-7B', output_dir='./output_lora_qwen25vl', per_device_train_batch_size=1, gradient_accumulation_steps=4, num_train_epochs=3, logging_steps=5, save_steps=100, eval_steps=100, image_size=672, learning_rate=3e-05, warmup_steps=30, weight_decay=0.01, lora_rank=16, lora_alpha=32, lora_dropout=0.03, fp16=False, bf16=False, max_steps=-1, gradient_checkpointing=True) Traceback (most recent call last): File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status response.raise_for_status() File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/Qwen/Qwen2.5-VL-7B/resolve/main/processor_config.json The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/transformers/utils/hub.py", line 470, in cached_files hf_hub_download( File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1008, in hf_hub_download return _hf_hub_download_to_cache_dir( File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1115, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1645, in _raise_on_head_call_error raise head_call_error File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1533, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1450, in get_hf_file_metadata r = _request_wrapper( File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 286, in _request_wrapper response = _request_wrapper( File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 310, in _request_wrapper hf_raise_for_status(response) File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/huggingface_hub/utils/_http.py", line 459, in hf_raise_for_status raise _format(RepositoryNotFoundError, message, response) from e huggingface_hub.errors.RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-6864df63-75fb4ac978a5fae71db084b2;077d5458-aa71-4ebe-886e-d756bdd6e584) Repository Not Found for url: https://huggingface.co/Qwen/Qwen2.5-VL-7B/resolve/main/processor_config.json. Please make sure you specified the correct `repo_id` and `repo_type`. If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface.co/docs/huggingface_hub/authentication The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/face8/works/vlm/train_vlm copy.py", line 303, in <module> main() File "/Users/face8/works/vlm/train_vlm copy.py", line 172, in main processor = AutoProcessor.from_pretrained(args.model_name_or_path, trust_remote_code=True) File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/transformers/models/auto/processing_auto.py", line 286, in from_pretrained processor_config_file = cached_file(pretrained_model_name_or_path, PROCESSOR_NAME, **cached_file_kwargs) File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/transformers/utils/hub.py", line 312, in cached_file file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs) File "/Users/face8/miniconda3/envs/vlm/lib/python3.9/site-packages/transformers/utils/hub.py", line 502, in cached_files raise OSError( OSError: Qwen/Qwen2.5-VL-7B is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>`
07-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

之群害马

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值