wangshuai67/hf-mirror-cli Star133 hf-mirror-cli 使用国内镜像,无需配置开箱即用,快速下载hugingface上的模型 huggingfacehugging-facehfdhf-mirrorhuggingface-clihuggingface-cn-mirror UpdatedFeb 8, 2025 Python Unofficial Hugging Face
UpdatedNov 5, 2024 Go Add a description, image, and links to thehuggingface-clitopic page so that developers can more easily learn about it. To associate your repository with thehuggingface-clitopic, visit your repo's landing page and select "manage topics." ...
huggingface-cli 是Hugging Face 官方提供的命令行工具,自带完善的下载功能。 1. 安装依赖 pip install -U huggingface_hub 2. 设置环境变量 Linux export HF_ENDPOINT=https://hf-mirror.com Windows Powershell $env:HF_ENDPOINT = "https://hf-mirror.com" 建议将上面这一行写入~/.bashrc。 3.1 下载模型 ...
$ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash $ sudo apt-get install git-lfs 三、安装Huggingface CLI 使用以下命令安装Huggingface CLI: $ pip install huggingface_hub 四、登录Huggingface账号 使用以下命令登录Huggingface账号: $ huggingface-cli login ...
huggingface-cli login python 代码调用 model.push_to_hub("your-awesome-model") 即可将模型权重代码等上传到 HuggingFace 代码放在: github.com/chaoswork/lu, 需要的可以参考一下。 后记:Linux 0.12的内核也是一个非常经典的版本,建议学习linux系统的同学可以从这个版本开始学习,transformers第一个版本是0.1.2,不...
huggingface-cli lfs-enable-largefiles .将模型上传到 HuggingFace 仓库:git commit -m"feat: first commit"--signoffgit push origin main -f 上传完成后,在 HuggingFace 确认模型文件成功上传。上传模型到 ModelScope 在 ModelScope 右上角点击头像,选择 创建模型 创建同名的模型仓库,格式为 原始模型名-GGUF...
huggingface-cli download --repo-type dataset tatsu-lab/alpaca_eval 准备大模型 大致知道了如何使用 huggingface 后,我们就来实际操作一下,这里准备的大模型是 Llama.CPP。 它非常适合在不同的硬件上测试 LLM。Llama.CPP几乎可以在任何地方工作——CPU、CUDA 或 Apple 芯片上。原始Llama.CPP是用 C++ 编写的,但...
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:https://github.com/huggingface/transformers main main all_jobs_can_compare_against_prev_runs_clean_trigger fix-tp-check avoid-fallback inherited_causal_lm_tests stop_tf_weight_rename_redos ...
apt-get install git-lfs gitclonehttps://github.com/Kwai-Kolors/KolorscdKolors conda create --name kolors python=3.8 conda activate kolors pip install -r requirements.txt python3 setup.py install Weights download(link): huggingface-cli download --resume-download Kwai-Kolors/Kolors --local-dir we...
huggingface-cli login 如下图所示: 运行到这里的时候Token:输入上面你复制的token即可。接下来就可以直接运行了。 估算MetaAI的LLaMA2-7B-HF模型的显存大小: accelerate estimate-memory meta-llama/Llama-2-7b-hf 结果如下所示: 大模型显存估计工具Model Memory Calculator的在线演示地址和其它注意 ...