LTX-2 bugfixes, distilled mode, and formatting#12
Open
TroyHernandez wants to merge 2 commits intomainfrom
Open
LTX-2 bugfixes, distilled mode, and formatting#12TroyHernandez wants to merge 2 commits intomainfrom
TroyHernandez wants to merge 2 commits intomainfrom
Conversation
- Fix DiT timestep scaling for distilled models - Fix Gemma3 hidden state stacking (include embedding layer) - Add distilled mode support to txt2vid_ltx2 (fewer steps, no CFG) - Add model_dir parameter for simplified model path configuration - Update gpu_poor offloading strings for consistency - Regenerate man pages - Update test assertions for new defaults - Code formatting with rformat
Stage 1 denoises at half resolution (8 steps), LatentUpsampler 2x upscales latents, then Stage 2 refines at full resolution (3 steps). Matches Wan2GP's distilled pipeline for higher quality output. New files: - R/upsampler_ltx2.R: LatentUpsampler module (Conv3d ResBlocks + SpatialRationalResampler with PixelShuffle) - inst/tinytest/test_upsampler_ltx2.R: Unit tests - ref/: pyrotechnics reference translations from Wan2GP Modified: - R/txt2vid_ltx2.R: Two-stage loop, extracted .denoise_loop() helper - R/gpu_poor.R: Added upsampler_device to all LTX-2 profiles - CLAUDE.md: Two-stage pipeline learnings
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.
Summary
txt2vid_ltx2()(fewer steps, no CFG)model_dirparameter for simplified model path configurationTest plan
tinytest::test_package("diffuseR")passestxt2vid_ltx2()generates video with distilled model