• Stefy Lanza (nextime / spora )'s avatar
    engine: cache VRAM in /internal/engine-state so health poll stays fast mid-generation (C) · 2d8d5a22
    Stefy Lanza (nextime / spora ) authored
    The front health-polls /internal/engine-state every ~2s. It called
    torch.cuda.mem_get_info + get_device_name on EVERY poll, touching the CUDA context,
    which can serialize behind the running forward pass and stall the handler past the
    poll timeout — flipping a busy engine to "not responding". Cache the VRAM snapshot
    (4s TTL) and device names (permanent), so mid-generation polls return instantly
    from cache instead of blocking on CUDA. (llama-cpp-python 0.3.30 uses ctypes, which
    already releases the GIL during eval, so the compute itself wasn't the blocker.)
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    2d8d5a22
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...
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...
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-nvidia.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...
video_editor.config.json Loading commit data...