mirror of
https://github.com/mudler/LocalAI
synced 2026-05-24 09:28:23 +00:00
Closes #9601 Makes the temporary scratch paths in vllm, vllm-omni, tinygrad, and pocket-tts backends configurable via the standard TMPDIR env var, instead of always writing to /tmp. This is a one-line change per call site that calls tempfile.gettempdir() for the directory and keeps the same filename suffix. Users who run on systems with a small root partition (or want to relocate scratch files to a larger volume) can now redirect these by setting TMPDIR (e.g. TMPDIR=/data/tmp), without affecting the existing LOCALAI_GENERATED_CONTENT_PATH or LOCALAI_UPLOAD_PATH options that already cover other temp paths. Files touched: - backend/python/vllm/backend.py (1 site: video base64 scratch) - backend/python/tinygrad/backend.py (1 site: image fallback dst) - backend/python/pocket-tts/backend.py (1 site: tts wav fallback dst) - backend/python/vllm-omni/backend.py (2 sites: video + audio scratch) |
||
|---|---|---|
| .. | ||
| backend.py | ||
| install.sh | ||
| Makefile | ||
| package.sh | ||
| README.md | ||
| requirements-after.txt | ||
| requirements-cpu-after.txt | ||
| requirements-cpu.txt | ||
| requirements-cublas12-after.txt | ||
| requirements-cublas12.txt | ||
| requirements-cublas13-after.txt | ||
| requirements-cublas13.txt | ||
| requirements-hipblas-after.txt | ||
| requirements-hipblas.txt | ||
| requirements-install.txt | ||
| requirements-intel-after.txt | ||
| requirements-intel.txt | ||
| requirements-l4t13-after.txt | ||
| requirements-l4t13.txt | ||
| requirements.txt | ||
| run.sh | ||
| test.py | ||
| test.sh | ||
Creating a separate environment for the vllm project
make vllm