Skip to content

Add SoulX-FlashHead Lite streaming portrait generation - #1167

Merged
0xShug0 merged 1 commit into
mainfrom
feature/soulx-flashhead-model
Nov 2, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/soulx-flashhead-model

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Adds soulx_flashhead audio-driven portrait video generation: supply a reference image and speech audio to produce animated RGB video. Exposes the generic gen task in offline and streaming modes; speech audio is an input, not generated speech.

The model integration uses the shared video-VAE extensions from #1165 and streaming-artifact support from #1166, both merged. There are no GGML, framework, or production-server changes in this PR.

Integration

  • Community-model implementation with separate assets, session, audio conditioning, DiT, VAE, portrait and color-processing components. Frequently used graphs are session-owned and reused.
  • Lite streaming emits 24 frames at 25 FPS per 0.96-second audio block, retaining motion history between blocks. The server uses the existing generic /v1/tasks/stream contract with include_artifacts: true.
  • Spec-v1 packages for Lite Q8_0 (default) and BF16 in audio-cpp/SoulX-FlashHead-GGUF, plus conversion/rendering tools, model tests and documentation/routing entries. The server-test helper gains optional launch arguments for logging; existing defaults are preserved.
  • Generic GGML VAE execution remains the default. CUDA builds with cuDNN can opt into soulx_flashhead.exec_plan={"vae":{"impl":"cudnn"}}. Prebuilt binaries do not include cuDNN support.

Published packages and the measurements below cover Lite. The family has variant-aware DiT/VAE configuration, with LTX for Lite and Wan for Pro.

Validation and performance

Debug build, RTX 5090, eight CPU threads, Q8_0, 512×512, four denoising steps. Each mode processes the same 42.24-second English input in one streaming session: 44 chunks / 1,056 frames. CUDA measurements ran sequentially; peak VRAM is sampled per-process memory.

Backend / VAE Warm RTF Full-run RTF Peak VRAM
CUDA / cuDNN 0.215 0.430 5,168 MiB
CUDA / GGML 0.490 0.706 9,152 MiB
Vulkan / GGML 0.673 0.898 Not measured

Warm RTF covers audio encoding, DiT, VAE, color correction and RGB output, excluding the first two chunks and CLI artifact serialization. Full-run RTF also includes initialization, cold chunks and artifact serialization. Both exclude model loading and MP4 encoding.

cuDNN gives 2.28× faster warm inference and 44% lower peak VRAM in this case. Its VAE path uses F16 internal activations with F32 accumulation; small numerical differences from generic execution are expected.

The Vulkan output was rendered as H.264/AAC and fully decoded successfully; frame dimensions/counts and temporal changes were checked, with visual spot checks. English demo.

Spec-system validation passed. Both GGUFs were re-emitted with the current spec: all 1,243 tensor records and the configuration sidecar per file remained byte-identical, and standalone embedded-spec inspection passed.

@0xShug0
0xShug0 merged commit 961fa0d into main Nov 2, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/soulx-flashhead-model branch November 2, 2026 04:45
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.

1 participant