大模型下载
魔塔社区下载模型到本地(国内推荐)
from modelscope.hub.snapshot_download import snapshot_download
model_dir = snapshot_download('01ai/Yi-VL-34B', cache_dir='path/to/local/dir', revision='master')
# embdding模型
model_dir = snapshot_download('Xorbits/bge-reranker-base', cache_dir='path/to/local/dir', revision='master')
# llm模型
model_dir = snapshot_download('qwen/Qwen1.5-32B-Chat', cache_dir='path/to/local/dir', revision='master')