Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

raea cloud farm: a render's sound pass finds its models on raea-models (docs/cloud-render.feature CR25): RAEA_SAO=/models/sao (Stable Audio Open small on ONNX Runtime with CUDA, deploy/modal/sao.py) and RAEA_TOKENSYNTH=/models/tokensynth with RAEA_TOKENSYNTH_DEVICE=cuda (deploy/modal/tokensynth.py), for a sound the project's store doesn't have yet; RAEA_AUDIO_AUTOSETUP=0, so a model the volume lacks fails the job at once instead of installing on a GPU's clock.

shinyobjectze82cd4efe6e1
diff --git a/sdk/cloud/deploy/modal/farm.py b/sdk/cloud/deploy/modal/farm.py
index 3210d821..e18f84c5 100644
--- a/sdk/cloud/deploy/modal/farm.py
+++ b/sdk/cloud/deploy/modal/farm.py
@@ -64,7 +64,13 @@ image = (
.pip_install("fastapi[standard]==0.121.2")
.add_local_file(os.path.join(CLOUD, "image", "nvidia_icd.json"), "/usr/share/vulkan/icd.d/nvidia_icd.json", copy=True)
.env({"WGPU_BACKEND": "vulkan", "NVIDIA_DRIVER_CAPABILITIES": "all", "RAEA_CLIP_CHECK": "0", "RAEA_AUDIO_MUTE": "1",
- "RAEA_MODELS": "/models/raea", "RAEA_FEED_MODELS": "/models/feed", "RAEA_LIBRARY_MODELS": "/models/library"})
+ "RAEA_MODELS": "/models/raea", "RAEA_FEED_MODELS": "/models/feed", "RAEA_LIBRARY_MODELS": "/models/library",
+ # a render's sound pass, for a sound its project's store doesn't have yet: TokenSynth as
+ # deploy/modal/tokensynth.py installs it, its notes on the GPU (CR25); a model the volume doesn't have fails
+ # the job at once instead of installing it on a GPU's clock
+ "RAEA_TOKENSYNTH": "/models/tokensynth", "RAEA_TOKENSYNTH_DEVICE": "cuda", "RAEA_AUDIO_AUTOSETUP": "0",
+ # Stable Audio Open small on ONNX Runtime with CUDA, as deploy/modal/sao.py installs it (CR25)
+ "RAEA_SAO": "/models/sao"})
.add_local_python_source("farm_plan", "farm_media", "prices")
)