KitHung/intern_LlamaIndex
0
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Installation of dependencies
Sentence Transformer
touch download_hf.pydownload_hf.py
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')download
python download_hf.pyparaphrase-multilingual-MiniLM-L12-v2
mkdir /root/model
git lfs install
git clone https://www.modelscope.cn/Ceceliachenen/paraphrase-multilingual-MiniLM-L12-v2.gitNLTK
cd /root
git clone https://gitee.com/yzy0612/nltk_data.git --branch gh-pages
cd nltk_data
mv packages/* ./
cd tokenizers
unzip punkt.zip
cd ../taggers
unzip averaged_perceptron_tagger.zip