ritikk commited on
Commit
0fd11b5
1 Parent(s): eef9145

updated to use huggingface-cli

Browse files
Files changed (1) hide show
  1. README.md +6 -4
README.md CHANGED
@@ -56,12 +56,14 @@ If you want to run a quick test or if the exact model you want to use is [Huggin
56
 
57
  First, you will need a local copy of the library. This is because one of the nice things that the Hugging Face optimum library does is abstract local loads from repository loads. However, Mistral inference isn't supported yet.
58
 
59
- From python:
60
 
61
  ```
62
- # using python instead of git clone because I know this supports lfs on the DLAMI image
63
- from huggingface_hub import Repository
64
- repo = Repository(local_dir="zephyr-7b-beta-neuron", clone_from="ritikk/zephyr-7b-beta-neuron")
 
 
 
65
 
66
  ```
67
 
 
56
 
57
  First, you will need a local copy of the library. This is because one of the nice things that the Hugging Face optimum library does is abstract local loads from repository loads. However, Mistral inference isn't supported yet.
58
 
 
59
 
60
  ```
61
+ # To speed up downloads we can use hf_transfer
62
+ pip install hf_transfer
63
+ HF_HUB_ENABLE_HF_TRANSFER=1
64
+
65
+ # use huggingface-cli to download model to local dir
66
+ huggingface-cli download ritikk/zephyr-7b-beta-neuron --local-dir zephyr-7b-beta-neuron
67
 
68
  ```
69