gpt-omni / mini-omni

open-source multimodal large language model that can hear, talk while thinking. Featuring real-time end-to-end speech input and streaming audio output conversational capabilities.
https://arxiv.org/abs/2408.16725
MIT License
2.98k stars 266 forks source link

无法下载huggingface.co下载模型的,这个办法 #87

Open jxyk2007 opened 1 month ago

jxyk2007 commented 1 month ago

编辑


/root/miniconda3/envs/omni/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py

import os
from pathlib import Path
from typing import Dict, List, Literal, Optional, Union

import requests
from tqdm.auto import tqdm as base_tqdm
from tqdm.contrib.concurrent import thread_map

from . import constants
from .errors import GatedRepoError, LocalEntryNotFoundError, RepositoryNotFoundError, RevisionNotFoundError
from .file_download import REGEX_COMMIT_HASH, hf_hub_download, repo_folder_name
from .hf_api import DatasetInfo, HfApi, ModelInfo, SpaceInfo
from .utils import (
    OfflineModeIsEnabled,
    filter_repo_objects,
    logging,
    validate_hf_hub_args,
)
from .utils import tqdm as hf_tqdm
os.environ["http_proxy"] = "http://192.168.250.249:1080" #加这个
os.environ["https_proxy"] = "http://192.168.250.249:1080" #加这个

``` `
superFilicos commented 1 month ago

谢谢1