• Stefy Lanza (nextime / spora )'s avatar
    longcat: training wants 8n+1 frames, generation wants 4n+1 (v0.2.60) · 7a05d7e3
    Stefy Lanza (nextime / spora ) authored
    Two rules, and I had conflated them. Generation obeys the VAE's 4n+1 — 93, 173 and
    333 are whole LongCat segments, which is what the dataset builder and the township
    templates use. TRAINING is stricter: SimpleTuner's longcat_video family rounds DOWN
    to 8n+1 (frames % 8 == 1) and says nothing about it.
    
    So a job asking for 93 trained at 89, the config recorded 93, and frame_problems()
    validated the generation rule and passed it. Three places agreeing on a number that
    was not the one being used.
    
    training_frames() now applies the same rounding SimpleTuner does — verified against
    its adjust_video_frames() for every count from 0 to 400 — and the job is adjusted
    BEFORE validation, so a legal clip length is never rejected for being legal in the
    other sense. The adjustment is emitted to the progress stream and the log:
    
      num_frames 93 -> 89 (8n+1)
    
    frame_problems() now states the training rule and explains why the number looked
    valid, rather than asserting a constraint the trainer does not use.
    
    Found by reading SimpleTuner's model.py while answering a question about whether
    clips are needed at all — not from a failure. It would have shipped as a quiet
    discrepancy between the configured and actual frame count.
    
    23 tests.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    7a05d7e3
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...