jtreminio commited on
Commit
2af2cbf
·
verified ·
1 Parent(s): 04c12f9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -3
README.md CHANGED
@@ -1,3 +1,60 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # swarm-container
2
+
3
+ This repo builds a [SwarmUI](https://github.com/mcmonkeyprojects/SwarmUI)-ready container with:
4
+
5
+ * [flash_attn @ 2.7.4](https://github.com/Dao-AILab/flash-attention)
6
+ * [sageattention @ 2.2.0](https://github.com/thu-ml/SageAttention)
7
+ * [sageattn @ 3 (compiled)](https://github.com/thu-ml/SageAttention/tree/main/sageattention3_blackwell)
8
+ * [torchaudio @ 2.9.1 (compiled)](https://github.com/pytorch/audio)
9
+
10
+ It is built on top of the [nvidia PyTorch images nvcr.io/nvidia/pytorch](https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/index.html).
11
+
12
+ # Requirements
13
+
14
+ * A Blackwell GPU
15
+ * RTX 50-series
16
+ * RTX Pro 6000
17
+ * RTX Pro 5000
18
+ * Docker or Podman
19
+
20
+ # Getting Started
21
+
22
+ The image is available on DockerHub, so all you need to do is have the [SwarmUI repo](https://github.com/mcmonkeyprojects/SwarmUI) cloned locally.
23
+ Replace `/path/to/SwarmUI` with the path you've cloned SwarmUI at locally and run one of the following:
24
+
25
+ ## All model paths as default
26
+
27
+ ```bash
28
+ docker run --gpus all --rm -it --shm-size=512m --name swarmui \
29
+ -p 7801:7801 \
30
+ -v /path/to/SwarmUI:/workspace \
31
+ jtreminio/swarmui:latest
32
+ ```
33
+
34
+ Then navigate to [http://localhost:7801/](http://localhost:7801/).
35
+
36
+ ## Define different model and config paths
37
+
38
+ ```bash
39
+ docker run --gpus all --rm -it --shm-size=512m --name swarmui \
40
+ -p 7801:7801 \
41
+ -v /path/to/SwarmUI:/workspace \
42
+ -v /path/to/local/output_directory:/workspace/Output \
43
+ -v /path/to/local/wildcard_directory:/workspace/Data/Wildcards \
44
+ jtreminio/swarmui:latest
45
+ ```
46
+
47
+ Then navigate to [http://localhost:7801/](http://localhost:7801/).
48
+
49
+ # Building
50
+
51
+ If you would like to build the image for yourself, simply run:
52
+
53
+ ```bash
54
+ # compiles flash_attn, sageattention, torchaudio, etc
55
+ ./step-1.sh
56
+ # builds the Docker image for reuse
57
+ ./step-2.sh
58
+ ```
59
+
60
+ There are two steps because `docker build` does not have a `--gpus all` option, so you cannot compile anything that requires a GPU.