From 37ab7aa0546f8f097f1883100c21d1fbe7a00ce3 Mon Sep 17 00:00:00 2001 From: Monius Date: Mon, 13 May 2024 19:02:16 +0800 Subject: [PATCH] update doc --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fd94267..b23e3ec 100644 --- a/README.md +++ b/README.md @@ -13,22 +13,24 @@ 🎈Rust-based interface for Huggingface 🤗 download. -- For public +```sh +# Download entire public hf repo +./hdf https://huggingface.co/deepseek-ai/DeepSeek-V2 -`./hdf https://huggingface.co/deepseek-ai/DeepSeek-V2` +# Download gated public hf repo with token -- For Gated with token -`./hdf https://huggingface.co/meta-llama/Meta-Llama-3-70B -t hf_xxxxxxxxxx` +./hdf https://huggingface.co/meta-llama/Meta-Llama-3-70B -t hf_xxxxxxxxxx -- For Custom Save path -`./hdf https://huggingface.co/meta-llama/Meta-Llama-3-70B -t hf_xxxxxxxxxx -d /data/llm` +# Download gated public hf repo with token and save to /data/llm +./hdf https://huggingface.co/meta-llama/Meta-Llama-3-70B -t hf_xxxxxxxxxx -d /data/llm -- Download with mirror -`./hdf https://huggingface.co/meta-llama/Meta-Llama-3-70B -t hf_xxxxxxxxxx -d /data/llm -m hf-mirror.com` +# Sometimes, use mirror, for example, hf-mirror.com +./hdf https://huggingface.co/meta-llama/Meta-Llama-3-70B -t hf_xxxxxxxxxx -d /data/llm -m hf-mirror.com +``` For a more convinent user experience, execute: -```bash +```sh cat <