From eab23107fcf05a0f0dde71b81b8a5d9aa7f607fc Mon Sep 17 00:00:00 2001 From: majiayu000 <1835304752@qq.com> Date: Thu, 8 Jan 2026 17:41:44 +0800 Subject: [PATCH] docs: replace deprecated huggingface-cli with hf command The 'huggingface-cli download' command has been deprecated in favor of 'hf download'. This updates all documentation to use the new command format. Fixes #349 Signed-off-by: majiayu000 <1835304752@qq.com> --- README.md | 4 ++-- gpu/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 798c0e951..cc33050b7 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,7 @@ pip install -r requirements.txt 3. Build the project ```bash # Manually download the model and run with local path -huggingface-cli download microsoft/BitNet-b1.58-2B-4T-gguf --local-dir models/BitNet-b1.58-2B-4T +hf download microsoft/BitNet-b1.58-2B-4T-gguf --local-dir models/BitNet-b1.58-2B-4T python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s ``` @@ -297,7 +297,7 @@ python utils/e2e_benchmark.py -m models/dummy-bitnet-125m.tl1.gguf -p 512 -n 128 ```sh # Prepare the .safetensors model file -huggingface-cli download microsoft/bitnet-b1.58-2B-4T-bf16 --local-dir ./models/bitnet-b1.58-2B-4T-bf16 +hf download microsoft/bitnet-b1.58-2B-4T-bf16 --local-dir ./models/bitnet-b1.58-2B-4T-bf16 # Convert to gguf model python ./utils/convert-helper-bitnet.py ./models/bitnet-b1.58-2B-4T-bf16 diff --git a/gpu/README.md b/gpu/README.md index da4b25925..3498e9c25 100755 --- a/gpu/README.md +++ b/gpu/README.md @@ -34,7 +34,7 @@ End-to-end inference: ```bash # Download and convert the BitNet-b1.58-2B model mkdir checkpoints -huggingface-cli download microsoft/bitnet-b1.58-2B-4T-bf16 --local-dir ./checkpoints/bitnet-b1.58-2B-4T-bf16 +hf download microsoft/bitnet-b1.58-2B-4T-bf16 --local-dir ./checkpoints/bitnet-b1.58-2B-4T-bf16 python ./convert_safetensors.py --safetensors_file ./checkpoints/bitnet-b1.58-2B-4T-bf16/model.safetensors --output checkpoints/model_state.pt --model_name 2B python ./convert_checkpoint.py --input ./checkpoints/model_state.pt rm ./checkpoints/model_state.pt