Skip to content

fix: load LTX INT8 ConvRot checkpoints - #2436

Merged
leejet merged 1 commit into
masterfrom
fix/ltx-int8-convrot-loading
Nov 26, 2026
Merged

leejet merged 1 commit into
masterfrom
fix/ltx-int8-convrot-loading

Conversation

@leejet

@leejet leejet commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Default an omitted convrot_groupsize to 256 when ConvRot is enabled, matching ComfyUI.
  • Load LTX audio and video AdaLN tables as F32 so CPU fallback can apply them to F32 activations without a mixed-dtype error.

Related Issue / Discussion

N/A

Additional Information

N/A

Checklist

Summary by CodeRabbit

  • Bug Fixes

    • Improved handling of quantization settings for supported formats: when convolution rotation is enabled and no group size is specified, it now defaults to 256. Other formats retain a default of 0, and the existing default for asymmetric 8-bit weights remains unchanged.
    • Model modulation and output scale-shift tables now consistently use 32-bit floating-point values.
  • Documentation

    • Clarified that convolution-rotation group sizes must be powers of four, no greater than 256, and divide the input feature dimension.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes update ConvRot group-size defaults and documentation. They also make LTXV modulation and output scale-shift table allocations use F32.

Changes: ConvRot group-size configuration

Layer / File(s) Summary
ConvRot group-size defaults
src/model_io/safetensors_io.cpp, docs/guides/int8_convrot.md
The configuration enables ConvRot for two packed W4 formats and defaults convrot_groupsize to 256 when ConvRot is enabled. The documentation states the default, power-of-four requirement, maximum size of 256, and input-feature divisibility requirement.

LTXV modulation table types

Layer / File(s) Summary
F32 modulation tables
src/model/diffusion/ltxv.hpp
BasicAVTransformerBlock::init_params and LTXAVModelBlock::init_params allocate modulation and output scale-shift tables as F32.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to dd7d1

This change lets LTX INT8 ConvRot checkpoints load without an explicit group size, and loads the LTX modulation tables as F32 so CPU fallback works with F32 activations. No remaining merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix: load LTX INT8 ConvRot checkpoints" matches the main objective. The PR defaults an omitted convrot_groupsize to 256 when ConvRot is enabled and loads LTX AdaLN tables as F32. Both chang…
Description check Passed The description follows the template sections: Summary, Related Issue / Discussion, Additional Information, and Checklist. The Summary lists both changes: the convrot_groupsize default of 256 and the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: load LTX INT8 ConvRot checkpoints" matches the main objective. The PR defaults an omitted convrot_groupsize to 256 when ConvRot is enabled and loads LTX AdaLN tables as F32. Both changes support loading LTX INT8 ConvRot checkpoints. The title is specific and concise, and it does not describe anything absent from the changeset.

Full details: Description check

Explanation

The description follows the template sections: Summary, Related Issue / Discussion, Additional Information, and Checklist. The Summary lists both changes: the convrot_groupsize default of 256 and the F32 AdaLN tables. Related Issue and Additional Information are marked N/A, which is acceptable. Both checklist items are marked complete. The description does not explain the verification steps, but the template does not require them.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b5f08ca8-6dbd-4f3d-9661-375fba283fe1
Commits

Reviewing files that changed from the base of the PR and between 6b51a95 and dd7d1bd.

Files selected for processing: 3

  • docs/guides/int8_convrot.md
  • src/model/diffusion/ltxv.hpp
  • src/model_io/safetensors_io.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@leejet
leejet merged commit ea3f6ec into master Nov 26, 2026
10 of 11 checks passed
@leejet
leejet deleted the fix/ltx-int8-convrot-loading branch November 26, 2026 16:10
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