You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11-14
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,13 @@ Zoomaker is a command-line tool that helps install AI models, git repositories a
8
8
-**single source of truth**: all resources are neatly defined in the `zoo.yaml` file
9
9
-**freeze versions**: know exactly which revision of a resources is installed at any time
10
10
-**only download once**: optimize bandwidth and cache your models locally
11
-
-**optimize disk usage**: downloaded models are symlinked to the installation folder (small files <5MB are duplicate)
11
+
-**optimize disk usage**: downloaded models are cached
12
12
13
13
## 😻 TL;DR
14
14
15
15
1. Install Zoomaker `pip install zoomaker`
16
16
2. Define your resources in the `zoo.yaml` file
17
17
3. Run `zoomaker install` to install them
18
-
(on Windows: `zoomaker install --no-symlinks`, see [hints](https://github.com/hfg-gmuend/zoomaker#%EF%B8%8F-limitations-on-windows) below)
19
18
20
19
21
20
## 📦 Installation
@@ -121,7 +120,7 @@ scripts:
121
120
start_webui: |
122
121
conda activate automatic1111
123
122
cd /home/$(whoami)/stable-diffusion-webui/
124
-
./webui.sh --theme dark --xformers --no-half
123
+
./webui.sh --xformers --no-half
125
124
```
126
125
</details>
127
126
@@ -138,7 +137,7 @@ resources:
138
137
rename_to: analog-diffusion-v1.safetensors
139
138
```
140
139
Please note:
141
-
The resource `type: download` can be seen as the last resort. Currently there is no caching or symlinking of web downloads. Recommended to avoid it :)
140
+
The resource `type: download` can be seen as the last resort. Existing web downloads are skipped, but no other caching. It is recommended to avoid web downloads :)
142
141
</details>
143
142
144
143
## 🧮 zoo.yaml Structure
@@ -171,25 +170,23 @@ All commands are run from the root of the project, where also your `zoo.yaml` fi
171
170
| `zoomaker run <script_name>` | Run CLI scripts as defined in `zoo.yaml` |
172
171
| `zoomaker --help` | Get help using the Zoomaker CLI |
173
172
| `zoomaker --version` | Show current Zoomaker version |
174
-
| `zoomaker --no-symlinks` | Do not use symlinks for installing resources |
175
173
176
-
## ⚠️ Limitations on Windows
177
-
Symlinks are not widely supported on Windows, which limits the caching mechanism used by Zoomaker. To work around this limitation, you can disable symlinks by using the `--no-symlinks` flag with the install command:
178
174
179
-
```bash
180
-
zoomaker install --no-symlinks
181
-
```
182
-
183
-
This will still use the cache directory for checking if files are already cached, but if not, they will be downloaded and duplicated directly to the installation directory, saving bandwidth but increasing disk usage. Alternatively, you can use the [Windows Subsystem for Linux "WSL"](https://docs.microsoft.com/en-us/windows/wsl/install-win10) (don't forget to [enable developer mode](https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development)) or run Zoomaker as an administrator to enable symlink support on Windows.
184
-
185
-
## 🤗 Hugging Face Access Token
175
+
## 🤗 Hugging Face Access Token and Custom Cache Location
186
176
187
177
You might be asked for a [Hugging Face Access Token](https://huggingface.co/docs/hub/security-tokens) during `zoomaker install`. Some resources on Hugging Face require accepting the terms of use of the model. You can set your access token by running this command in a terminal. The command `huggingface-cli` is automatically shipped alongside zoomaker.
188
178
189
179
```bash
190
180
huggingface-cli login
191
181
```
192
182
183
+
You can specify a custom cache location by setting the HF_HOME environment variable. The default cache location is `~/.cache/huggingface/`.
184
+
185
+
```bash
186
+
export HF_HOME=/path/to/your/cache
187
+
zoomaker install
188
+
```
189
+
193
190
## 🙏 Acknowledgements
194
191
- Most of the internal heavy lifting is done be the [huggingface_hub library](https://huggingface.co/docs/huggingface_hub/guides/download) by Hugging Face. Thanks!
195
192
- "Zoomaker Safari Hacker Cat"cover image by Alia Tasler, based on this [OpenMoji](https://openmoji.org/library/emoji-1F431-200D-1F4BB/). Thanks!
0 commit comments