Files
dgx-spark-serving-mode/serving-mode.conf.example
T
Entrpi 477bc987bd serving-mode: headless / multi-user toggle to free unified memory for vLLM
Flip a DGX Spark (or any Ubuntu box) between its desktop state and a headless
inference-serving state — multi-user.target with the desktop + maintenance
services pared back — handing the unified 128 GB's desktop overhead (~10-15 GB)
back to the GPU KV cache. Companion to Entrpi/qwen3.5-122B-A10B-on-spark.

- serving-mode: on / serve / off / status (persists across reboots)
- serving-mode.conf.example: optional site config (GPU sidecars / model unit)
- examples/vllm-model.service: run the vLLM container under systemd
2026-06-29 11:27:41 +10:00

33 lines
1.5 KiB
Plaintext

# serving-mode.conf — optional site config for the `serving-mode` script.
# Copy to ~/.config/serving-mode.conf and edit. All three vars are optional;
# without this file, serving-mode still pares the desktop and frees unified
# memory — it just won't touch any user units or a model unit.
#
# These are bash array / scalar assignments sourced by serving-mode.
# systemd --user units you want stopped+disabled by `serving-mode on -u`
# and restored by `serving-mode off -u`. (Your own GPU sidecars / agents.)
USER_UNITS=(
# my-gpu-sidecar.service
# my-agent.service
)
# The user stack `serving-mode serve` brings up headless (linger-enabled).
# Usually the same as USER_UNITS, optionally plus extras.
SERVE_USER_UNITS=(
# my-gpu-sidecar.service
# my-agent.service
)
# System unit that runs the vLLM model container (see examples/vllm-model.service).
# `serving-mode serve` starts it; leave empty to manage the model yourself.
MODEL_UNIT="vllm-model.service"
# ---------------------------------------------------------------------------
# Example: the setup this script came from (Hermes agent on a DGX Spark) ran
# USER_UNITS=(hermes-gateway.service stt-sidecar.service diarize-sidecar.service)
# SERVE_USER_UNITS=(hermes-gateway.service stt-sidecar.service diarize-sidecar.service pantalaimon.service)
# i.e. a couple of GPU sidecars (STT / diarization) + the agent + a Matrix proxy,
# all as `systemd --user` units. `serve` brings the whole stack up headless and
# linger-enabled so it survives reboot. Put YOUR units above.