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: runner/README.md
+57-7Lines changed: 57 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,30 @@
1
1
# runner
2
2
3
-
## Build Docker image
3
+
## Architecture
4
+
5
+
A high level sketch of how the runner is used:
6
+
7
+

8
+
9
+
## Running with Docker
10
+
11
+
Make sure you have Docker Installed and then pull the pre-built image from DockerHub or build the image locally in this directory.
12
+
13
+
### Pull Docker image
14
+
15
+
```
16
+
docker pull livepeer/ai-runner:latest
17
+
```
18
+
19
+
### Build Docker image
4
20
5
21
```
6
22
docker build -t livepeer/ai-runner:latest .
7
23
```
8
24
9
-
##Download models
25
+
### Models
10
26
11
-
The runner app within the container expects model checkpoints to be stored in a `/models` directory which we can mount with a local `models` directory.
27
+
The runner app within the container references models by their [HuggingFace](https://huggingface.co/) model ID and expects model checkpoints to be stored in a `/models` directory which we can mount with a local `models` directory.
12
28
13
29
See the `dl-checkpoints.sh` script for how to download model checkpoints to a local `models` directory.
- Set the environment variable `SFAST=true` to enable dynamic compilation with [stable-fast](https://github.com/chengzeyi/stable-fast) to speed up inference for diffusion pipelines (the initial requests will be slower because the model will be dynamically compiled then).
0 commit comments