大模型下载

魔塔社区下载模型到本地(国内推荐)

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')
posted @ 2024-02-29 13:57    阅读(132)  评论(0编辑  收藏  举报