• Stefy Lanza (nextime / spora )'s avatar
    stop two models sharing a weights path from overwriting each other · 3bd589ad
    Stefy Lanza (nextime / spora ) authored
    A request for LTX-2.3-10Eros loaded LTX-2.3-PinkCherry: a different 15.9 GB
    transformer, silently, and from an entry that was DISABLED.
    
    self.config is keyed <kind>:<model_name> where model_name is the weights path,
    so entries sharing a path clobber one another and only the last survives. That
    is not a corner case -- it is how one base checkpoint is served under several
    configurations: lisa / lisa-32k differ only in context length, 10Eros /
    PinkCherry only in which GGUF is their transformer. PinkCherry comes second in
    models.json, so it won, parked or not.
    
    The VRAM estimator already disambiguated this way, by the id the caller asked
    for, after lisa-32k was once sized at lisa 51.97 GB. The config used to LOAD
    the model did not. Now both do:
    
    * every type setter stores a config under its ALIAS as well as its path, so a
      sibling is reachable by the only name that distinguishes it. The path key
      keeps its old meaning (last writer wins) for callers that know only a path.
    * _config_for_model_key takes the requested id and prefers the entry whose
      alias matches.
    
    Applied to all eight setters rather than video alone -- the collision is the
    same for audio, image and embedding, and fixing one type is how this survived
    being found twice already.
    
    Also: build_gguf_pipeline_components passed `model_name` as the diffusers repo
    supplying the component configs. Once siblings became reachable by alias that
    can BE the alias -- "LTX-2.3-10Eros", not a repo -- and from_single_file
    rejects it. The repo is whatever the entry names in `path`, every time.
    
    Verified live: LTX-2.3-10Eros now loads its own transformer and the pipeline
    assembles, 8/8 components.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZnmWyKjWZerwsb27jZ
    3bd589ad
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...