• Stefy Lanza (nextime / spora )'s avatar
    a worker's own interpreter dies on the environment the engine hands it · 4b223f7b
    Stefy Lanza (nextime / spora ) authored
    Live on zeiss, /v1/audio/generate answered in 0.25s with "ACE-Step
    requirements missing", which was not the problem: the venv was there and
    imported fine by hand in the same container.
    
    The container's per-engine launchers export PYTHONHOME=/opt/coderai/python
    (the standalone 3.13); PID 1 and an interactive docker exec do not. A 3.12
    interpreter inheriting it aborts before running a byte -- "Current thread ...
    <no Python frame>" -- so the worker's import probe failed instantly, and the
    caller went down the rebuild path to report a missing file instead. Reproduced
    both ways before changing anything.
    
    longcat_worker had already solved this for its 3.10 venv, behind a docstring
    saying coderai does not set those variables. It does. The helper is shared now
    (codai/api/venv_env), longcat delegates to it, and every ACE-Step spawn --
    probe, both venv-creation routes, the install, the service -- goes through it.
    The probe also prints what the child said rather than returning a bare False.
    
    Then response_format: declared as url | b64_wav | b64_mp3, and ignored. The
    response was chosen by whether a file directory was configured, so a client
    asking for base64 silently got a URL -- the same bug /v1/images had with
    b64_json. Honoured now, and b64_mp3 is really encoded, because base64 of a wav
    under an mp3 key is a decode failure at the client.
    
    Also corrected in passing: versions.env pins UBUNTU_VERSION=24.04, whose
    system python IS 3.12, so the baked venv needs no bundled interpreter. The
    Dockerfile rewrote pyvenv.cfg at /opt/coderai/py312 unconditionally, which
    would have broken a working venv when nothing was bundled there, and the build
    refused outright without a relocatable 3.12 it did not need.
    
    Verified live after the fix: b64_wav returns 5,742,296 bytes (~15s of 48 kHz
    stereo), eviction by a 21 GB model stopped the worker and took the GPU from
    7958 MiB to 274 MiB in under four seconds, and ACE-Step then reloaded and
    generated again. Suite at its 15-failure baseline, 5299 passed.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZnLhydX9QqUcfBbqLu
    4b223f7b
Name
Last commit
Last update
..
superpowers Loading commit data...
README.md Loading commit data...
admin-forward-auth.md Loading commit data...
chunking.md Loading commit data...
cluster.md Loading commit data...
deepseek-ds4.md Loading commit data...
digesta-field-report-2026-10-15.md Loading commit data...
dtype-auto-selection.md Loading commit data...
expressive-tts.md Loading commit data...
frontend-engine-split.md Loading commit data...
gguf-process-isolation.md Loading commit data...
glm-colibri.md Loading commit data...
image-prompts.md Loading commit data...
install-from-packages.md Loading commit data...
kimi-k3.md Loading commit data...
ktransformers.md Loading commit data...
longcat-video.md Loading commit data...
minimax-h3.md Loading commit data...
model-defaults-and-sources.md Loading commit data...
modelli-digesta-e-container.md Loading commit data...
moderation.md Loading commit data...
ocr-client-throughput-guide.md Loading commit data...
ocr-throughput-measurements-2026-10-18.md Loading commit data...
ocr.md Loading commit data...
orchestrator-runpod-guide.md Loading commit data...
piano-inferenza-su-coderai-prod.md Loading commit data...
process-isolation-plans.md Loading commit data...
reference-projects.md Loading commit data...
remote-execution.md Loading commit data...
reverse-proxy-nginx.md Loading commit data...
runpod-new-model-images-plan.md Loading commit data...
runpod-regional-storage-plan.md Loading commit data...
runpod.md Loading commit data...
surya-block-router-plan.md Loading commit data...
text-to-music.md Loading commit data...
tools-as-services.md Loading commit data...
unlimited-ocr-plan.md Loading commit data...
video-compose.md Loading commit data...
vllm.md Loading commit data...
vlm-lora-training-plan.md Loading commit data...
zimage-lora-training.md Loading commit data...