• Stefy Lanza (nextime / spora )'s avatar
    reconcile a converter and a class that disagree about twelve names · 720498e8
    Stefy Lanza (nextime / spora ) authored
    The LTX-2.3 GGUFs failed with "Cannot copy out of meta tensor; no data!", and
    the obvious reading -- parameters the checkpoint lacks -- was wrong.
    
    diffusers 0.38 converts an LTX-2 checkpoint prompt-adaln weights to
    prompt_adaln_single.* and audio_prompt_adaln_single.*, while
    LTX2VideoTransformer3DModel expects prompt_adaln.* and audio_prompt_adaln.*.
    Twelve names, one-to-one, the same tensors. They were present all along, under
    a name nobody reconciled, so they never materialised and stayed on meta.
    
    Measured identically on LTX-2.3-10Eros v1.5 and PinkCherry v1.8: 4444 GGUF
    tensors, 4186 expected parameters, and after the rename 0 missing and 0
    unused on both.
    
    The tempting fix was to initialise those twelve. That would have invented
    weights to paper over a rename -- precisely what the surrounding refusal
    exists to stop -- so it is NOT what this does. A key is moved only when the
    class does not want its current name AND does want the renamed one AND nothing
    already occupies the target, which makes it a rename of a tensor the
    checkpoint has and never the creation of one it lacks. A test pins that: a
    genuinely absent parameter must stay absent and the load must still fail.
    
    The converter is a third-party global, so it is wrapped for the duration of
    one from_single_file call and restored in a finally.
    
    Version-robust: 9 pass against the image diffusers 0.38, including the real
    checkpoint; against 0.37 the class has no prompt_adaln modules at all, so the
    repair is correctly a no-op and that test skips rather than asserting a fact
    about someone else is version.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZnmWyKjWZerwsb27jZ
    720498e8
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-acestep.txt Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...