Repository navigation
dagrr: add support for GPU deployments - #4
Conversation
Signed-off-by: Sam Alba <[email protected]>
Signed-off-by: Sam Alba <[email protected]>
Signed-off-by: Sam Alba <[email protected]>
|
Looking good @samalba 😎 The nice thing about this runtime - Fly.io - is that the Engine image boots with the NVIDIA device already mounted, so no extra mount config is needed. Any reason why you are not using the GPU variants of the Engine image? I am wondering if the GPU variants fails the same way, i.e. |
| [[vm]] | ||
| size = "%s" | ||
| `, m.Dagrr.App, m.Dagrr.Version, disk, size) | ||
| `, m.Dagrr.App, primaryRegion, envVars, m.Dagrr.Version, disk, size) |
There was a problem hiding this comment.
I think this is setting up the wrong engine image. We need the -gpu variant suffixed to m.Dagrr.Version:
| `, m.Dagrr.App, primaryRegion, envVars, m.Dagrr.Version, disk, size) | |
| `, m.Dagrr.App, primaryRegion, envVars, m.Dagrr.Version + "-gpu", disk, size) |
As suggested by @gerhard in #4 (comment).
There was a problem hiding this comment.
I added this change, but only when setting a "gpu kind". We want to standard engine image to be used when no need for a gpu.
Submitted a fix in commit cf89db5 By the way, I thought the whole purpose of setting the env var |
Signed-off-by: Sam Alba <[email protected]>
Signed-off-by: Sam Alba <[email protected]>
Signed-off-by: Sam Alba <[email protected]>
Signed-off-by: Sam Alba <[email protected]>
|
Added few more things to the PRs. In particular it's now possible to call |
Run them with:
just dagrr
This ensures that 95% of the flags work as expected and the right
operations are happening behind the scenes. Meant to be run locally, and
results validated by a human. Running this in CI will be problematic
since contributions come via PRs, and they will **NOT** have access to
credentials such as the `FLY_API_TOKEN`. This works for now!
Signed-off-by: Gerhard Lazu <[email protected]>
|
I just tested this and it works as advertised: gerhard-daggerverse-pr-4.mp4Merging & cutting a new release now. Thank you @samalba 🤟 |
Several changes to be able to deploy a gpu-enabled Dagger engine on Fly.io
Example: https://github.com/samalba/dagger-modules/blob/1fd96d5d12921628baa4823d0790a299b7d523ca/nvidia-gpu/main.go#L27