<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Huggingface on Qingchen Yu</title><link>https://zhgyqc.site/tags/huggingface/</link><description>Recent content in Huggingface on Qingchen Yu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 01 Nov 2026 21:35:04 +0800</lastBuildDate><atom:link href="https://zhgyqc.site/tags/huggingface/index.xml" rel="self" type="application/rss+xml"/><item><title>上传大模型到huggingface的方法（不用梯子）</title><link>https://zhgyqc.site/blogs/2024-08-09-upload-large-model-to-huggingface-without-vpn/</link><pubDate>Fri, 09 Aug 2024 00:00:00 +0000</pubDate><guid>https://zhgyqc.site/blogs/2024-08-09-upload-large-model-to-huggingface-without-vpn/</guid><description>相关配置 下载LFS # 更新包管理器 sudo apt-get update sudo apt-get upgrade # 安装Git（如有则忽略） sudo apt-get install git # 安装Git LFS sudo apt-get install git-lfs # 初始化Git LFS git lfs install # 验证Git LFS是否安装成功 git lfs --version 配置huggingface 从huggingface申请token （需要同时有读写权限的，注意token只会展示一次，所以要记得保存）； 安装huggingface-cli pip install huggingface_hub huggingface-cli login # 输入上边生成的token 下载模型 注：预先要在huggingface上创建好对应的模型仓库
git lfs install # 不需要梯子 git clone https://hf-mirror.com/username/model_name # 需要梯子 git clone https://huggingface.co/username/model_name # 进入仓库并将需要上传的文件放到这个文件夹内 cd model_name 上传模型 追踪大文件 # 追踪需要上传的大文件，后缀需要修改为你需要上传的大文件所对应的 git lfs track &amp;#34;*.</description></item></channel></rss>