feat(backends): add LongCat video and avatar generation#10792
Merged
Conversation
Assisted-by: Codex:GPT-5 [apply_patch] [exec_command] [web]
Make model configs declare input and output modalities so capability discovery no longer branches on backend or checkpoint names. Complete the LongCat gallery and user documentation, make the SDPA patch apply to the pinned upstream revision, and stabilize the Agent Jobs race exposed by the required hook. Assisted-by: Codex:GPT-5 [web]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a dedicated
longcat-videoPython gRPC backend for LocalAI, supporting LongCat-Video text-to-video, image-to-video, and LongCat-Video-Avatar 1.5 audio-driven avatar generation.The change extends
/videowith safely staged audio and video-generation parameters, wires distributed audio staging, supports CUDA 12/13 x86_64 and CUDA 13 ARM64 backend images, and exposes audio/reference-image controls in the React Studio UI.Capability design
known_input_modalitiesandknown_output_modalitiesmodel-config fields.Model gallery
longcat-video: text + image input, video output.longcat-video-avatar-1.5: text + image + audio input, video output.Documentation
Adds a dedicated LongCat Video guide covering gallery installation, DGX Spark and NVIDIA ARM64 guidance, BF16/SDPA versus INT8 tradeoffs, Studio usage, text-to-video, image-to-video, avatar API examples, load options, request parameters, troubleshooting, and current limits. The general backend, video-generation, model-configuration, API-discovery, feature index, and whats-new pages link to it.
Backend notes
Testing
make lintandmake test-coverage-check; composite Go coverage 52.1% versus the 48.5% baseline.make test-ui-coverage-checkfrom the initial implementation (215 Playwright tests; UI line coverage 47.95%).python3 backend/python/longcat-video/test.py(10 tests, 1 skipped).Full checkpoint inference and a complete backend container build were not run locally: the model set requires roughly 83 GiB of downloads and NVIDIA CUDA/DGX-class hardware. CI is responsible for the backend image builds.
Signed commits
The human submitter should review and add the required DCO sign-off before merge.