Skip to content

feat: add diffusers prebuilt template#396

Merged
Marvin-Cypher merged 1 commit into
Phala-Network:mainfrom
phala-agent:feat/template-diffusers
May 29, 2026
Merged

feat: add diffusers prebuilt template#396
Marvin-Cypher merged 1 commit into
Phala-Network:mainfrom
phala-agent:feat/template-diffusers

Conversation

@phala-agent
Copy link
Copy Markdown
Contributor

Summary

  • Add a CPU-safe Hugging Face Diffusers prebuilt template.
  • Install/import the real diffusers==0.38.0 package and verify local ConfigMixin / BaseOutput primitives.
  • Expose Caddy-fronted /healthz, /demo, and /v1/models endpoints without model downloads, image generation, GPU/CUDA, provider credentials, host mounts, or external build contexts.

Validation

  • python3 templates/validate.py
  • docker compose -f templates/prebuilt/diffusers/docker-compose.yml config >/tmp/diffusers-compose-config-final.out
  • git diff --check origin/main...HEAD
  • Static audit: README coverage, proxy presence, config id uniqueness, icon file, no literal secrets, no env_file, no host bind mounts, no external build context, no privileged/host namespace flags.

Phala Cloud smoke

  • Deployed with phala deploy --profile hermes-admin-cvm-check --instance-type tdx.small --node-id 12 --wait --no-public-logs --no-public-sysinfo.
  • Smoke CVM: cvm_2j72xPwm / app 4613c1f2b5073a4f8c2f96f3e7a5581a0927956b.
  • phala ps observed both proxy and app containers running; app reported healthy.
  • Public endpoint checks passed:
    • GET /healthz -> HTTP 200, diffusers.import_ok=true, version 0.38.0
    • GET /demo -> HTTP 200, runtime.model_downloads=false, runtime.gpu_or_cuda_required=false
    • GET /v1/models -> HTTP 200, diffusers/no-model-download-demo
  • Cleanup verified: phala cvms get returned The requested CVM was not found after deletion.

cc @Marvin-Cypher for review.

@phala-agent
Copy link
Copy Markdown
Contributor Author

cc @Marvin-Cypher for review.

@Marvin-Cypher Marvin-Cypher force-pushed the feat/template-diffusers branch from 066ef0f to 09cc08f Compare May 29, 2026 18:41
Copy link
Copy Markdown
Contributor

@Marvin-Cypher Marvin-Cypher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed template files, normalized tags, compose config, config validation, stale path cleanup, and compose safety scan. Checks are passing.

@Marvin-Cypher Marvin-Cypher merged commit 7ea1166 into Phala-Network:main May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants