• Stefy Lanza (nextime / spora )'s avatar
    longcat: vendor the upstream source instead of cloning it (v0.2.52) · 8033f3eb
    Stefy Lanza (nextime / spora ) authored
    `longcat_video` — the pipeline, DiT, VAE, scheduler and INT8 quantisation helpers
    — lives inside the upstream repo and is not on PyPI, so resolve_source_dir looked
    for a checkout at ~/.coderai/LongCat-Video or a path baked at build time. Neither
    exists in a published image, which means anyone pulling it had to clone from
    GitHub before LongCat would run at all: a third-party network dependency in the
    middle of someone else's install, on whatever `main` happened to be that day.
    
    The 26 source files are now vendored under third_party/, MIT, pinned to commit
    6b3f4b85. 496 KB, no weights, no wheels, nothing compiled. The resolver prefers
    them over every fallback, and an explicit longcat_source still wins for anyone
    running their own checkout.
    
    They ship automatically: the image does COPY . /opt/coderai/app, and third_party
    is not in .dockerignore — asserted by a test, since that is the sort of thing a
    later ignore rule breaks silently.
    
    The ISOLATED VENV is unaffected and still builds on first use from
    requirements-longcat.txt. Only the source is vendored; torch 2.6+cu124 and the
    rest are installed, not carried.
    
    While confirming the fp8 question: upstream's quantization.py implements INT8
    only — QuantizedLinear holds weight_int8 + weight_scale, and there is no fp8 code
    anywhere in the package. The fp8 checkpoints on HF carry no loader either, and
    szwagros/LongCat-Video-Avatar-1.5-fp8's own card is a verbatim copy of upstream's
    and documents `--use_int8`, never fp8. So a VRAM-resident DiT goes through INT8,
    not fp8.
    
    88 tests.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    8033f3eb
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-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...