• 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
..
__init__.py Loading commit data...
_film_net.py Loading commit data...
_rife_ifnet.py Loading commit data...
app.py Loading commit data...
archive.py Loading commit data...
audio_backends.py Loading commit data...
audio_clean.py Loading commit data...
audio_gen.py Loading commit data...
audio_stems.py Loading commit data...
characters.py Loading commit data...
custom_pipelines.py Loading commit data...
ds4_kv_janitor.py Loading commit data...
ds4_worker.py Loading commit data...
embeddings.py Loading commit data...
environments.py Loading commit data...
faceswap.py Loading commit data...
images.py Loading commit data...
log.py Loading commit data...
loras.py Loading commit data...
parler_worker.py Loading commit data...
pipelines.py Loading commit data...
prompt_cache.py Loading commit data...
ratelimit.py Loading commit data...
spatial.py Loading commit data...
state.py Loading commit data...
text.py Loading commit data...
transcriptions.py Loading commit data...
tts.py Loading commit data...
tts_backends.py Loading commit data...
urlutils.py Loading commit data...
video.py Loading commit data...
voice_clone.py Loading commit data...
voice_convert.py Loading commit data...