:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-grade hardware. No GPU required. Runs gguf, transformers, diffusers and many more models architectures. Features: Generate Text, Audio, Video, Images, Voice Cloning, Distributed, P2P inference
## Enable/Disable single backend (useful if only one GPU is available)
SINGLE_ACTIVE_BACKEND=true
### Watchdog settings
###
# Enables watchdog to kill backends that are inactive for too much time
LOCALAI_WATCHDOG_IDLE=true
#
# Time in duration format (e.g. 1h30m) after which a backend is considered idle
LOCALAI_WATCHDOG_IDLE_TIMEOUT=30m
# Enables watchdog to kill backends that are busy for too much time
LOCALAI_WATCHDOG_BUSY=true
#
# Time in duration format (e.g. 1h30m) after which a backend is considered busy
#
LOCALAI_WATCHDOG_BUSY_TIMEOUT=30m
LocalAI version: localai/localai:latest-aio-gpu-nvidia-cuda-12
Environment, CPU architecture, OS, and Version:
Linux machinelearning 6.8.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:51:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug LocalAI leaves open python and backend processes that are no longer used, often duplicated.
Here, only the two first process are not LocalAI related. Meaning 8 Processes are running just for LocalAI
A restart of the LocalAI docker removes them immediately.
To Reproduce
Leave LocalAI running for a while and issue commands.
Expected behavior Processes to be killed properly by the watchdog
Logs
Additional context
This is my .env: