GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hossbit/local-ai-server-vllm: Run and manage local AI models with guided setup for vLLM and vLLM-Omni, isolated backends, and OpenAI-compatible APIs.

BranchesTags
Open more actions menu

Latest commit

 

History

55 Commits
55 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
install-localvllm.sh
install-localvllm.sh
 
 
install.sh
install.sh
 
 
localvllm
localvllm
 
 
localvllm.conf
localvllm.conf
 
 
rebuild-config.sh
rebuild-config.sh
 
 
start.sh
start.sh
 
 
stop.sh
stop.sh
 
 
uninstall-localvllm.sh
uninstall-localvllm.sh
 
 
update-localvllm.sh
update-localvllm.sh
 
 

Repository files navigation

Local AI Server for vLLM

Local vLLM: two engines, one simple CLI

Linux vLLM vLLM-Omni CUDA API Service License

Run vLLM and vLLM-Omni as two isolated local OpenAI-compatible servers, managed by one small Bash CLI and two systemd user services.

The repository directory is localaivllm; the installed command is localvllm.

Use it on a supported workstation or GPU server, including multi-GPU systems for large models. Context length, batching, GPU placement, and parallelism are configurable per model; the defaults are starting points. See the large-model and multi-GPU guide.

This project is deliberately vLLM-only. It borrows the operational conveniences of Local AI Server — installer, CLI, model discovery, per-model overrides, API keys, doctor, suggestions, benchmarks, systemd — and runs inference through vLLM's native server. Direct serving is the default; llama-swap is an optional routing layer.

Latest release Downloads (recorded repository clones) GitHub stars

The download badge counts recorded repository clones, not unique users or release asset downloads. Its total starts when badge tracking began.

❤️ Support

If you find Local vLLM useful, you can support its continued development:

Donation goal progress for the home lab upgrade
Donate via Stripe

Buy me a coffee

⭐ Starring and sharing the repository also helps.

Get started

On a supported Linux computer with an NVIDIA GPU and working driver, run:

curl -fsSL https://hossbit.github.io/localvllm/install.sh | bash

The installer sets up the text engine automatically. If a compatible Python is missing, it also downloads an isolated Python 3.12 without changing your system Python. Installation may request sudo and needs internet and about 20 GB of free disk space per engine; it stops early when there is less. Minimal server images without git or tar are fine: the installer adds tar itself. Then open a new terminal and run:

localvllm

localvllm shows commands. For a guided first setup, run localvllm menu, which offers the setup while nothing is configured. It is optional.

Choose your path

flowchart TD
    A(["🐧 Install Local vLLM"]) --> B{"Choose your setup path"}
    B --> C["🧭 Guided setup<br/>localvllm menu"]
    B --> D["🛠️ Independent commands"]
    C --> E["Choose your engine<br/><b>vLLM · Omni</b>"]
    D --> E
    E --> F["📦 Download or register<br/>a compatible model"]
    F --> G{"Choose how to serve"}
    G --> H["🎯 Direct / manual<br/>You select one model"]
    G --> I["🔄 Automatic / swap<br/>Clients choose registered models"]
    H --> J["▶ Start when you are ready<br/>localvllm start"]
    I --> J
    J --> K(["✨ Check status<br/>Connect your client"])

    classDef welcome fill:#fff2b3,stroke:#b77908,color:#493408,stroke-width:2px
    classDef choice fill:#ffe5d9,stroke:#c16645,color:#542c20,stroke-width:2px
    classDef setup fill:#eee8ff,stroke:#8063b8,color:#39295c,stroke-width:1.5px
    classDef model fill:#dcf3ee,stroke:#398875,color:#194d40,stroke-width:1.5px
    classDef direct fill:#e1efff,stroke:#5083b8,color:#234569,stroke-width:1.5px
    classDef swap fill:#fce5f1,stroke:#ae628b,color:#61354e,stroke-width:1.5px
    classDef ready fill:#e6f5d8,stroke:#608b3c,color:#314d1f,stroke-width:2px

    class A welcome
    class B,G choice
    class C,D setup
    class E,F model
    class H direct
    class I swap
    class J,K ready
Loading

The engine and serving method are separate choices. vLLM handles text, coding and supported vision-input/embedding models; Omni handles supported multimodal generation and may need a model-specific recipe. Both support direct and swap modes. Select models compatible with the chosen engine and your GPU.

Independent path Steps after installation
Direct/manual (default) add ORG/MODEL or add /path/to/model → use MODEL → mode direct → start
Automatic switching add ORG/MODEL or add /path/to/model → mode swap → start

Prefix every step with localvllm --backend vllm or localvllm --backend omni. For Omni, install its engine first with localvllm backend install omni. Use localvllm backend default omni to persist your choice; a one-command --backend override does not change it. The default engine need not be running.

Downloads and registration leave serving alone. For models added to an already running router, use reload when ready; it may interrupt active requests. Setup configures a stopped backend and leaves it stopped. It never starts a service or model. If the chosen backend is running, it tells you to stop it first.

ui --open requires an already running backend: direct opens API docs (/docs, not chat); swap opens the model dashboard (/ui). If stopped, it prints a backend-specific start command without opening a dead page. See localvllm help paths or the workflow guide.

Already installed and Omni reports a Python error? Run localvllm update --scripts-only, then retry localvllm backend install omni.

Running Local vLLM on a server you reach over SSH? Turn on autostart so the service starts at boot and keeps running after you log out:

localvllm autostart on vllm

No GPU? vLLM needs a CPU build of its own, so the installer stops instead of downloading the CUDA packages. For GGUF models on the CPU, use Local AI Server. For AMD, CPU, ARM64, or advanced setups, see the installation guide.

Why Local AI Server for vLLM?

Compare this managed vLLM server with vLLM, SGLang, Ollama, and Unsloth. Unsloth also focuses on model training, while this project focuses on serving.

Feature locallvllm Raw vLLM SGLang Ollama Unsloth
Easy setup ✅ Guided CLI ⚠️ Manual ⚠️ Manual ✅ Simple CLI ✅ Studio UI
Text and multimodal ✅ vLLM + Omni ✅ Supported models ✅ Supported models ✅ Supported models ✅ Supported models
OpenAI-compatible API ✅ ✅ ✅ ✅ Subset ✅ Studio
Fine-tuning — External tools — External tools ⚠️ Training integrations — External tools ✅ Built in
Linux service ✅ Managed ⚠️ Configure ⚠️ Configure ✅ Service ⚠️ Configure
Separate vLLM + Omni ✅ Managed ⚠️ Separate setup — Different engine — Different engine — Different workflow
Monitoring ✅ CLI + metrics ✅ Metrics + tools ✅ Server tools ✅ CLI + API ✅ Training UI
Staged update rollback ✅ Built in ⚠️ Self-managed ⚠️ Self-managed — —

✅ Available or included · ⚠️ Requires extra setup or management · — Not a matching feature here or handled by separate tools.

API endpoints, model support, hardware requirements, and performance vary by version and configuration. Model downloads need network access; local inference can run offline once the required files are available.

Sources: vLLM documentation, SGLang documentation, Ollama documentation, and Unsloth.

Main advantage

One small, auditable Bash manager gives you plain vLLM for text and vLLM-Omni for multimodal generation, each with its own environment, models, port, service, API key, and tuning — without hand-writing pip commands or systemd units.

Requirements

  • Linux x86-64 or ARM64 and enough disk space. New environments use Python 3.11–3.13; the installer can provide an isolated Python 3.12 if needed.
  • An NVIDIA GPU with a working driver and enough VRAM for your chosen model is recommended. ROCm needs compatible wheels; CPU support is experimental. Fedora/RHEL and ARM64 availability depends on upstream packages and drivers. ROCm installs select Python 3.12 and verify that PyTorch is a ROCm build.
  • The installer may need sudo for system packages. It does not install GPU drivers. See the full requirements.

Common commands

Most users only need these:

Command Purpose
localvllm Show available commands.
localvllm menu Guided first setup, then interactive management.
localvllm add ORG/MODEL Download a model without switching the server.
localvllm add /path/to/model Register a complete existing model folder.
localvllm use MODEL Select the model to serve in direct mode.
localvllm models List models.
localvllm mode Show direct or automatic serving mode.
localvllm start Start the server.
localvllm stop Stop the server.
localvllm reload Apply model or setting changes; restarts only if something changed.
localvllm status Check the selected backend.
localvllm autostart on Start at boot and keep running after logout (off, status; add vllm, omni or all).
localvllm ui --open Open the API docs or the model dashboard.
localvllm doctor all Diagnose both backends.
localvllm doctor --config Validate the configuration without changing anything.
localvllm version Show manager, engine, Python, and router versions.
localvllm update Update the active backend, llama-swap, and helpers. --all updates every installed backend; --check only reports what is available.
localvllm update --rollback Return to the environment before the last update.
localvllm backend install omni Add vLLM-Omni later.

localvllm help shows the common commands and localvllm help --all shows every one. Older names (check, config check, metrics, pull, rollback, setup, switch) still work.

The default backend is vllm. Use localvllm --backend omni to target Omni.

Put your own complete model folder in ~/ai-vllm/models/vllm/ (or models/omni/). Run localvllm models --paths to see storage locations, then select a folder with localvllm use FOLDER_NAME. Existing folders elsewhere also work with localvllm use /path/to/model. Model storage guide.

Under systemd the service runs in the foreground (Type=simple). localvllm start and restart return once the API answers, or fail after LOCALVLLM_HEALTH_CHECK_TIMEOUT seconds. If the engine crashes, systemd restarts it, and localvllm status reports it as not running in the meantime. Set LOCALVLLM_READY_WAIT=0 to return as soon as systemd has started the unit.

Updates always resolve the newest vLLM / vLLM-Omni release from PyPI unless you pin VLLM_VERSION or VLLM_OMNI_VERSION. Each backend is updated in its own staged copy, verified (import, pip check), and only then promoted; if a restarted service does not become ready, everything is restored. After a successful update the replaced environment is kept as <venv>.previous, so localvllm update --rollback vllm (or omni) can switch back, and running it again returns to the newer one. Only one previous environment is kept per backend. It uses the disk space of a full venv; set LOCALVLLM_KEEP_PREVIOUS=0 to delete it after each successful update. conf/backends/<backend>/environment.txt records the resolved Python, vLLM, vLLM-Omni, and PyTorch versions, the CUDA or ROCm runtime that PyTorch was built for, the GPU and driver, and the requested version policy. environment.lock holds the full pip freeze. pip's download cache is not kept, which saves several GB in ~/.cache/pip; set LOCALVLLM_PIP_CACHE=1 to keep it.

On CUDA, after a vLLM install or update that provides vllm download-kernels (vLLM 0.32 and newer), the installer adds FlashInfer's precompiled kernels, so vLLM does not disable FlashInfer when no CUDA compiler is installed. It installs only the kernels for the GPUs in this machine (about 7 GB per environment), removes kernels left from an older FlashInfer first, and removes the new ones again if FlashInfer then fails to load. localvllm update also adds them to an existing environment that lacks them. A failed download only prints a warning, and the step is skipped when less than LOCALVLLM_KERNELS_MIN_FREE_GB (15) GB are free. Set LOCALVLLM_DOWNLOAD_KERNELS=all for every GPU architecture, or 0 to skip it.

Per-model tuning files in conf/backends/<backend>/models.d/ are sourced as Bash. They can set shell variables and arrays such as EXTRA_ARGS, so only install or edit files you trust and keep them owned by your user.

GPU memory is left to vLLM by default. If a model does not fit, localvllm start prints the settings to change. See GPU memory.

For GGUF models, consider Local AI Server, which uses llama.cpp. GGUF details.

Security

Servers listen on 127.0.0.1 by default. API keys do not protect every vLLM endpoint. For network access, use a TLS reverse proxy with authentication. Read the security guide before exposing a server.

Help, logs and monitoring

localvllm help                     # Commands and common workflows
localvllm help models              # Also: modes, keys, logs, metrics, troubleshoot
localvllm logs --list              # All log files in one place
localvllm logs all --no-follow     # Recent output from all current files
localvllm status --metrics --watch # Readable queue, cache and token statistics

Logs live in ~/ai-vllm/logs/ by default (localvllm logs --path shows your actual directory). Use --backend omni for Omni. Metrics observe ready models without loading them; --raw retains the native Prometheus output.

Documentation

  • Getting started — install, choose a model, and run the server.
  • AMD, CPU, and ARM64 setup — hardware-specific guidance.
  • Commands and configuration — full reference and tuning options.
  • Troubleshooting — installation and runtime help.
  • vLLM and vLLM-Omni — upstream documentation.

Installer hub · Report an issue

License

MIT. See LICENSE.

About

Run and manage local AI models with guided setup for vLLM and vLLM-Omni, isolated backends, and OpenAI-compatible APIs.

hossbit.github.io

Topics

linuxllm-inferencelocal-ailocal-llmmultimodal-aiopenai-compatibleself-hostedvllmvllm-omni

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.