파일
bdi_podman_serverconf/containers/sdcpp/sdcpp.container
T

41 라인
1.7 KiB
INI

[Unit]
Description=stable-diffusion.cpp (Vulkan, video generation)
After=network-online.target
Wants=network-online.target
[Container]
Image=localhost/sdcpp:vulkan-amd64
ContainerName=sdcpp-vulkan
# GPU access (Vulkan render node)
AddDevice=/dev/dri/renderD128
PodmanArgs=--group-add=keep-groups
# Let the in-container watchdog read the kernel ring buffer to spot
# amdgpu MES hangs early. Optional: comment out if you'd rather not
# expose /dev/kmsg to the container.
AddDevice=/dev/kmsg
# Models (GGUF denoiser + text encoder + VAEs) and generated output.
# Populate %h/sdcpp-models with the files from the model card before
# starting a generation run.
Volume=%h/sdcpp-models:/app/models:Z
Volume=%h/sdcpp-output:/app/output:Z
# This is meant to be run on-demand with specific --prompt / --output
# arguments rather than as a long-running daemon, so Exec is left to
# `podman start --attach` invocations with Exec= overrides, e.g.:
# systemctl --user start sdcpp-vulkan
# then attach and pass args via `podman exec` is not applicable for
# one-shot CLI tools; prefer running with `podman run` directly for
# ad-hoc generations, or set Exec below for a fixed recurring job.
#Exec=--mode vid_gen --diffusion-model /app/models/minimax_h3_fl2va_pruned-Q4_K.gguf --llm /app/models/qwen3vl_32b_minimax_h3-Q4_K_M.gguf --vae /app/models/minimax_h3_video_vae_fp16.safetensors --audio-vae /app/models/minimax_h3_audio_vae_fp32.safetensors --prompt "a red fox trotting through falling snow, cinematic" --width 640 --height 384 --video-frames 25 --steps 4 --cfg-scale 1.0 --backend te=cpu --diffusion-fa --output /app/output/out.webm
[Service]
Type=oneshot
RemainAfterExit=no
TimeoutStartSec=1800
[Install]
WantedBy=default.target