Skip to main content

CLI for managing vLLM inference on GPU workstations

Project description

vserve

A CLI for managing vLLM inference on GPU workstations.

Download models. Calculate limits. Serve with one command. Control fans.

Python 3.12+ vLLM 0.18+ Tests License


Install

uv tool install vserve

Or with pip:

pip install vserve

Quick Start

vserve init                  # scan GPU, vLLM, CUDA, systemd — write config
vserve download              # search HuggingFace, pick variant, download
vserve tune <model>          # calculate context/concurrency limits for your GPU
vserve start <model>         # interactive config → serve via systemd

What It Does

vserve manages the full lifecycle of serving LLMs with vLLM on a GPU workstation:

  • Download — search HuggingFace, see available weight variants (MXFP4, BF16, GGUF) with sizes, download only what you need
  • Tune — calculate exactly what context lengths and concurrency your GPU can handle, based on model architecture and available VRAM
  • Start/Stop — interactive config wizard, systemd service management, health check with timeout
  • Fan control — temperature-based curve daemon with quiet hours, or hold a fixed speed
  • Multi-user — file-based locking, terminal notifications when another user holds the GPU
  • Doctor — diagnose GPU, CUDA, vLLM, systemd issues with actionable fix suggestions

Commands

Command Description
vserve Dashboard — GPU, models, status
vserve init Auto-discover vLLM and write config
vserve download [model] Search and download from HuggingFace with variant picker
vserve models [name] List models or show detail (fuzzy match)
vserve tune <model> Calculate context/concurrency limits for your GPU
vserve start [model] Configure and start serving
vserve stop Stop the vLLM service
vserve status Show current serving config
vserve fan [auto|off|30-100] GPU fan control with temp-based curve
vserve doctor Check system readiness

All commands support fuzzy matchingvserve start qwen fp8 finds the right model.


Prerequisites

Requirement Check Install
NVIDIA GPU + drivers nvidia-smi nvidia.com/drivers
CUDA toolkit nvcc --version sudo apt install nvidia-cuda-toolkit
vLLM 0.18+ vllm --version docs.vllm.ai
systemd (most Linux servers) See troubleshooting
sudo access for systemctl, fan control

Configuration

Auto-discovered on first run. Override at ~/.config/vserve/config.yaml:

vllm_root: /opt/vllm
cuda_home: /usr/local/cuda
service_name: vllm
service_user: vllm
port: 8888

Fan Control

vserve fan              # show status, interactive menu
vserve fan auto         # temp-based curve with quiet hours
vserve fan 80           # hold at 80% (persistent daemon)
vserve fan off          # stop daemon, restore NVIDIA auto

The auto curve ramps with temperature and caps fan speed during quiet hours (configurable). Emergency override at 88C ignores quiet hours.


Development

git clone https://github.com/Gavin-Qiao/vserve.git
cd vserve
uv sync --dev
uv run pytest tests/              # 175 tests
uv run ruff check src/ tests/     # lint
uv run mypy src/vserve/           # type check

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vserve-0.1.0.tar.gz (73.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vserve-0.1.0-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file vserve-0.1.0.tar.gz.

File metadata

  • Download URL: vserve-0.1.0.tar.gz
  • Upload date:
  • Size: 73.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vserve-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9774a67a9596bed94ffb19357232ef1e78d02bb934154be832dfdff991cfe92d
MD5 b2fce1ad0e4f665320fd3878b37b6599
BLAKE2b-256 408a266dfb15b7faea6ba5b01d0db6b3e853b49475832a2f8b51c8de701a3995

See more details on using hashes here.

Provenance

The following attestation bundles were made for vserve-0.1.0.tar.gz:

Publisher: publish.yml on Gavin-Qiao/vserve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vserve-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vserve-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vserve-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 683be23ca95dbcbff59d0135f72114df2f7862d2a1981f80ae8d5beb38a56be7
MD5 cb171229de8586eaa6fb97b9f27ad95b
BLAKE2b-256 ec5c502a8a49adac2f842e63e56aa8cca16bff6c7f409ddb43099dfc0a0fc3f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vserve-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Gavin-Qiao/vserve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page