fix(ltx): dev transformer + distill LoRA so camera LoRAs bind - #1
Merged
Merged
Conversation
Switch the baked diffusion model from ltx-2.3-22b-distilled to the full (dev) 22b transformer and add ltx-2-19b-distilled-lora-384. The LTX-2 19b camera-control LoRAs produce no key matches on the distilled model and silently fall back to base-model output (no camera motion); they bind to the dev model. The distill LoRA (@0.6) restores few-step LCM sampling on the dev transformer. test_input.json updated to the dev chain (node 7 distill LoRA → node 6 camera LoRA). Pairs with the worker createLtxI2VWorkflow change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mystixxx
approved these changes
Jun 29, 2026
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.
Why
The LTX "Camera" presets produced no camera motion in any direction. Root cause: the per-direction camera-control LoRAs are trained for LTX-2 19B, but the deployed transformer was
ltx-2.3-22b-distilled. ComfyUI can't bind the mismatched keys — it logslora key not loadedand silently emits base-model output while the job reports success. Full diagnosis:docs/plans/2026-06-19-ltx-2.3-camera-lora-not-applied.md(metarepo).The fix (3 coordinated PRs)
Switch the LTX i2v path to the full "dev" 22B transformer (which the 19B camera LoRAs do bind to), and add the distill LoRA as a model-only loader ahead of the camera LoRA so few-step LCM sampling is preserved.
gpu-container-ltxltx-2-19b-distilled-lora-384;test_input.jsonupdated to the dev chainworkercreateLtxI2VWorkflow: node 1 = dev UNET, node 7 =LoraLoaderModelOnlydistill @0.6, node 6 Power Lora Loader (camera LoRA) chains off node 7; both CFGGuider passes consume node 6frontendModel chain:
UNETLoader(dev)→LoraLoaderModelOnly(distill @0.6)→Power Lora Loader(camera @0.4)→ both CFGGuiders.Deploy order (important)
The worker references the dev model + distill LoRA by filename, so the image must ship them first:
Verification runbook (this is "done")
Stage A — container-direct (isolates the model/LoRA chain from the app):
test_input.json(runs static @0.4). Confirm it completes and the output is coherent — this validates the dev model + distill LoRA produce good few-step output.lora_01.loratoltx-2-19b-lora-camera-control-dolly-in.safetensors; resubmit; download the video.lora key not loaded/N keys not loadedwarning — this is the definitive bind check. Also confirm no VRAM OOM (dev fp8 ≈ distilled footprint, but verify on the endpoint's GPU).Stage B — full Studio E2E:
6. With the worker deployed and frontend merged to stage, open Studio → "LTX Camera" preset → run a batch across one image.
7. Confirm each column shows the correct motion: static still; dolly in/out push/pull; dolly left/right slide; jib up/down rise/descend.
Tuning & risks
0.6, camera0.4. Both are starting points — tune per Stage A/B results.gpu-container-ltx/workflows/jef-ltx-2.3-i2v.jsonstill points at the distilled model. The worker builds its own workflow so production is unaffected, but localdocker-composetesting would use the old model. Update it if you test locally.🤖 Generated with Claude Code