Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(model-trellis): burst to 3 instances under load

nirholasda0b81c473b8
diff --git a/workers/model-trellis/cloudbuild.yaml b/workers/model-trellis/cloudbuild.yaml
index 0ff7e889e..df0167d8d 100644
--- a/workers/model-trellis/cloudbuild.yaml
+++ b/workers/model-trellis/cloudbuild.yaml
@@ -6,13 +6,14 @@ substitutions:
_GCS_BUCKET: three-ws-avatar-reconstructions
_WEIGHTS_BUCKET: three-ws-model-weights
_MIN_INSTANCES: "1"
- # Single instance: the L4 GPU work is serialized at MAX_CONCURRENT=1, so a
- # second instance buys no generation throughput — it only cold-loads a fresh
- # 3 GB model and (before task state was persisted to GCS) split the poll map,
- # 404ing polls that landed on the wrong container. One warm instance is both
- # faster and correct. Raise only alongside more GPUs + verified multi-instance
- # task-state sharing.
- _MAX_INSTANCES: "1"
+ # One warm instance for latency; burst to 3 under load. The two conditions the
+ # old max=1 note gated on are both met now: task state is persisted to GCS
+ # (polls resolve on any instance) and the region's L4 quota is 8 (verified
+ # 2026-07-16), so extra instances schedule instead of starving siblings. Each
+ # instance serializes its own GPU at MAX_CONCURRENT=1, so instance count IS
+ # the concurrent-generation count — at the raised quality budgets (25-45
+ # sampler steps) a single instance would queue user-visibly under load.
+ _MAX_INSTANCES: "3"
_WEIGHTS_BUCKET_PREFIX: trellis-large
# Sibling background-removal worker. Set so the MAX tier (and any matte=true
# request) mattes the subject before reconstruction. Shares this worker's