Internlm2.5_RAG / download_hf.py
dstars's picture
Add Streamlit + LlamaIndex + 浦语 API project
228bb8f
raw
history blame contribute delete
260 Bytes
import os
# 设置环境变量
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
# 下载模型
os.system('huggingface-cli download --resume-download sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 --local-dir /root/model/sentence-transformer')