KitHung/InternVL
0
1import os2 3def download_model(model_name_or_path):4 # 设置环境变量5 os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'6 7 # 下载模型8 os.system(9 f'mkdir -p {model_name_or_path} && huggingface-cli download --resume-download KitHung/InternVL_food_lr35_ep10 --local-dir {model_name_or_path}')