• Stefy Lanza (nextime / spora )'s avatar
    longcat: a slow venv check is not a broken venv (v0.2.61) · 5188ee6b
    Stefy Lanza (nextime / spora ) authored
    Three clip generations failed while OCR and other work was running, with:
    
      RuntimeError: the venv at /AI/guffcache/longcat_venv was built but still does
      not report Python 3.10 with torch 2.6 / transformers 4.41
    
    The venv reports exactly that. It holds torch 2.6.0+cu124, transformers 4.41.0,
    numpy 1.26.4, on Python 3.10.18 — read from its own dist-info, and the probe
    passes when run by hand.
    
    The check imports torch from a 6.2 GB venv. Timed on an IDLE box: 106 seconds,
    against a 120 second limit. Under the load that necessarily accompanies a
    generation request it expired, TimeoutExpired was caught by a bare `except
    Exception: return False`, and the caller turned "I could not finish asking" into
    "the answer is no" — then rebuilt, re-probed, and failed again.
    
    Both probes are now tri-state: True verified, False a real mismatch, None could
    not be determined. An unverified venv is USED; only a verified-bad one is rebuilt
    or rejected. The limit is 900s, and a genuine failure now prints what the probe
    actually said instead of asserting versions nobody checked.
    
    Nothing was wrong with the OCR/paddle side, and there were no VRAM, eviction,
    swap or queue failures in the window — the 1626 apparent "503"s are those digits
    occurring inside OCR'd Italian legal documents in the request debug dumps, and
    the 1792 "ERROR"s are mostly the same plus vLLM warnings. The only real
    exceptions in two hours were this one and the LongCat training chain.
    
    32 tests.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    5188ee6b
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...