{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "c5cff513-7872-4207-8877-c1873a58545a", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "env: HF_ENDPOINT=https://hf-mirror.com\n" ] } ], "source": [ "%env HF_ENDPOINT=https://hf-mirror.com" ] }, { "cell_type": "code", "execution_count": 2, "id": "f4c95697-a706-4fd1-bdb5-27f5868d6839", "metadata": {}, "outputs": [], "source": [ "import os\n", "\n", "# 设置 HF_HOME 环境变量 设置下载路径\n", "os.environ['HF_HOME'] = '/data1/ckw'" ] }, { "cell_type": "code", "execution_count": 8, "id": "25ca2fbc-b24a-4355-83cb-8e721616e9e7", "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "58c6aa1afc0a46f98744a945dec66497", "version_major": 2, "version_minor": 0 }, "text/plain": [ "pytorch_model.bin: 95%|#########4| 22.9G/24.2G [00:00