support HF_TOKEN

This commit is contained in:
Xuan Son Nguyen
2025-04-08 17:24:28 +02:00
parent 4f65762768
commit b584e3979d
2 changed files with 8 additions and 3 deletions

View File

@@ -5498,7 +5498,7 @@ def parse_args() -> argparse.Namespace:
)
parser.add_argument(
"--remote", action="store_true",
help="(Experimental) Read safetensors file remotely without downloading to disk. Config and tokenizer files will still be downloaded. To use this feature, you need to specify Hugging Face model repo name instead of a local directory. For example: 'HuggingFaceTB/SmolLM2-1.7B-Instruct'",
help="(Experimental) Read safetensors file remotely without downloading to disk. Config and tokenizer files will still be downloaded. To use this feature, you need to specify Hugging Face model repo name instead of a local directory. For example: 'HuggingFaceTB/SmolLM2-1.7B-Instruct'. Note: To access gated repo, set HF_TOKEN environment variable to your Hugging Face token.",
)
args = parser.parse_args()