app.nzapp
AppsProjectsReposPullsChatIntegrationsGatewayModelsEvalsToolsDatasetsMCPDeploysPricingBlogDocsAssistantsCharactersArtMusic
Sign inStart building
Agent stack
Cloud coding agentAgents SDKIntegrationsBrowser agentMonitors & auto-agentsSchedulersAgent skillsMCP serversDeep research
Models & API
AI GatewayModel catalogModel evalsModel spacesPlaygroundText to imageImage to 3DText to 3DMusic & SFXAudio editorMedia optimizerAI art & libraryChatAPI referenceSchemaBecome a provider
Compute & hosting
DeploysAddonsPostgres hostinggobed vector searchSite hostingAnalyticsCog GPU hostingRL trainingBuilds & CIWorkersTask queuesDomainsGit hosting
Tools
AI toolsDrawDiffusion canvasLive DrawWriteSheetsArtifactsVideo studioNotebooksDatasets
Learn
DocsBlogEval guidesPrompt libraryCLIAlternativesPapersAI charactersArt gallerySecurityConsulting
Company
PricingEnterpriseSettingsBillingStatusInvestorsCreate accountTerms of ServicePrivacy Policy
app.nzapp.nz

AI agent cloud for coding, deploys, model routing, and research. Built for teams shipping software.

Built in New Zealand by App AI NZ.

Social
X / TwitterGitHubYouTube
The app.nz network
GpuBrainPapersReading TimemojojojoNetwrckText-Generator.ioCodex InfinityOpenPathsCuteDSLAI Art GeneratorAIArt-Generator.artSiteSimSimplexGenDictatorFlowWebFiddleRing.nzChatGibidyBitBankExperimentFlowEvangelerHires.nzHow.nzV5 GamesAddicting Word GamesBig Multiplayer ChessWord SmashingreWord GameMultiplication Master
© 2026 App AI NZ Ltd. All rights reserved.All systems normalTermsPrivacy
Blog
July 7, 2026·5 min read·app.nz

Mirroring ComfyUI models to make cold starts boring

Why app.nz mirrors popular Comfy model weights into R2 so GPU workers fetch predictable artifacts instead of relying on third-party hosts during cold starts.

Listen to this article

On-device voice

Uses the voice built into your browser; no article text leaves this page.

Audio narration is not supported by this browser.

ComfyUI workflows often fail the same way: the container starts, the workflow queues, and then the worker spends a long time downloading model files from a third-party host. Sometimes the download is slow. Sometimes it is rate-limited. Sometimes it disappears.

app.nz's answer is to mirror known Comfy model files into R2 and make workers prefer the mirror.

The model index

The server keeps a Comfy model index. Each entry records enough information for a worker to place the file correctly:

  • model id,
  • source URL,
  • Comfy folder,
  • filename,
  • size or metadata when known,
  • mirror key.

The mirror key is deterministic. A given model maps to a stable object path in the appstatic bucket.

Streaming to R2

When a model is mirrored, the server streams the remote file into R2. It does not need to load the whole file into memory. Once mirrored, the model can be served from app.nz-controlled storage.

That changes the operational dependency. Instead of every worker relying on Hugging Face, Civitai, or another host at boot time, app.nz relies on its own object store path for the hot files.

Worker lookup order

Workers should prefer:

  1. app.nz R2 mirror,
  2. original upstream URL,
  3. fail with an explicit missing-model error.

The fallback keeps obscure workflows usable before every model is mirrored. The mirror keeps popular workflows fast and reliable.

Why this helps cold starts

Mirroring does not make weights smaller. It makes weight fetches predictable:

  • fewer upstream rate limits,
  • fewer random host outages,
  • better regional placement,
  • reusable URLs,
  • easier cache headers,
  • no surprise auth pages.

For serverless workers, this matters because every scale-from-zero can become a weight fetch. For pods, it matters after a new image or new workflow lands on a fresh machine.

Workflows should declare models

The long-term fix is for workflow deployment to understand its model dependencies before the first run. If app.nz can parse or ask for the required model list, it can:

  • verify mirrors exist,
  • show expected disk footprint,
  • prewarm the worker cache,
  • fail before a user waits on a doomed run.

That is the difference between "queue a graph and hope" and a deployable Comfy app.

The principle

Cold starts are not only container starts. They are also data starts. Moving a 7 GB checkpoint is part of the start path. If app.nz wants predictable GPU latency, it has to own the artifacts, not just the containers.

Build what you just read

Ship agents, models, and apps on one cloud.

Start with free credits, then use the same platform from the web app, CLI, desktop app, or MCP.

Start building freeRead the docs

Keep reading

Comfy models: from media evals to working GPU inference

Connect image and video benchmark evidence to hosted FLUX, SDXL, LTX, and Wan workflows, reproducible JSON, model provenance, and a global R2 weight cache.

Why Docker cold starts are slow

A cold start is scheduling, image pull, Python import, CUDA init, weight loading, compilation, readiness, and first inference. Here is how app.nz reduces each part.

Throughput on a shared GPU: fused kernels and a priority scheduler

How we serve chat, image, video, TTS, STT and a LoRA army on shared GPUs — 2× LLM tok/s (fp8+MTP), a fused multi-LoRA kernel (up to 2.4×), a 10.4× admission gate, tier-based VRAM arbitration, and cheaper building blocks (916k embeds/sec, Gemini STT).