Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Add Runbooks proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
nstogner committed Oct 16, 2023
1 parent 9958742 commit 13de93f
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
Binary file added docs/diagrams/runbook-storage.excalidraw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/diagrams/runbook-triggers.excalidraw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 83 additions & 0 deletions docs/proposals/runbooks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Runbooks

Runbooks are templates for Runs.

A Runbook of the following:

```yaml
apiVersion: substratus.ai/v1
kind: Runbook
metadata:
name: my-model
spec:
index: 1 # Bump to create a new Run.
params:
epochs: 123
```
Will trigger a Run of the following:
```yaml
apiVersion: substratus.ai/v1
kind: Run
metadata:
name: my-model-1
labels:
index: "1"
spec:
params: # Copied from Runbook.
epochs: 123
```
## Resources
Runbooks can express resource requirements, Runs express exact resources.
```yaml
kind: Runbook
metadata:
name: wiki-chat
spec:
resources:
gpuMemoryGB:
min: 30
policy: Cheapest # alt: Fastest
```
```yaml
kind: Run
metadata:
name: wiki-chat-1
spec:
resources:
nvidia-l4: 2
```
## Mounts
```yaml
kind: Runbook
metadata:
name: wiki-chat
spec:
runbooks:
- name: wiki-web-scrape
mount: data/
trigger: true # Create a Run for every new Run in the referenced Runbook.
- name: falcon-7b
mount: base-model/
index: 2 # Pin to a exact Run
```
```yaml
kind: Run
metadata:
name: wiki-chat-1
spec:
runs:
- name: wiki-web-scrape-3
mount: data/
- name: falcon-7b-2
mount: base-model/
```

0 comments on commit 13de93f

Please sign in to comment.