File size: 333 Bytes
b44b961
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import os

def download_assist_tuner(model_name_or_path):
    # 设置环境变量
    os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'

    # 下载模型
    os.system(
        f'mkdir -p {model_name_or_path} &&  huggingface-cli download --resume-download KitHung/internlm2-chat-1_8b_assistant --local-dir {model_name_or_path}')