Self-hosted Qwen3.8-27B inference stack on a single 24GB consumer GPU
From README links · today
Dockerized vLLM serving of a 27B Qwen model with tuned profiles and API keys.
What they did
They cloned HyperQwen, copied .env.example to .env, and brought the stack up with docker compose using either the single profile (one or a few people chatting) or the batch profile (an API backend with many concurrent requests). On first start the compose stack pulled a 9.5 GB image and ran a one-time requantization of the model (~20 GB) into ./models, then served an OpenAI-compatible endpoint on port 18020. They chose a mode by answering three questions from the README: who sends the requests, how long the longest prompt is, and whether answers quote the prompt back. That mapped to batch, single-default, reproduction, long-context (up to 150k), or huge-context (200k+) profiles. Before exposing the service beyond localhost they generated an API key with openssl rand -hex 24, appended VLLM_API_KEY and BIND=0.0.0.0 to .env, and restarted, since compose publishes on 127.0.0.1 by default. On Docker Desktop under WSL2 they kept VLLM_WSL2_ENABLE_PIN_MEMORY=1 to avoid the V2 runner aborting with a UVA-not-available error. They then pointed an existing OpenAI-style client at the local base URL with the key and ran chat, code-edit, and RAG-style requests against it.
How it went
The stack came up on a single RTX 3090 at 250 W and served an OpenAI-compatible API with key auth. Reported figures: 127 tok/s single-stream in single-user mode, roughly 1,035 tok/s aggregate decode at 64 concurrent requests in batch mode, and 381 tok/s when the answer quotes its own prompt. Only one mode runs per GPU at a time, so switching profiles means restarting the compose stack.
Worth knowing
Measured on one checkpoint and one card class; other Qwen models and GPU classes are roadmap items, not validated. First start is slow because of the 9.5 GB image pull and one-time ~20 GB requantization. The port is bound to 127.0.0.1 until you set a key and BIND=0.0.0.0, and outside a container no key means localhost-only binding. WSL2 users must keep the pin-memory flag set. Requires a 24 GB GPU and Docker (or the manual install path in docs/install.md).
Wiring
Order: clone repo, cp .env.example .env, edit .env (profile selection, VLLM_API_KEY, BIND, VLLM_WSL2_ENABLE_PIN_MEMORY on WSL2), then docker compose --profile single up -d or --profile batch up -d. Compose pulls ghcr.io/syv-ai/hyperqwen, runs the model-preparation pipeline that requantizes weights into ./models once, and starts vLLM 0.32.0 with the pinned patch series applied, exposing an OpenAI-compatible HTTP API on :18020. Clients connect with base_url http://127.0.0.1:18020/v1 and the VLLM_API_KEY as a bearer token. Port publishing is controlled by BIND in .env (default 127.0.0.1). One GPU serves one profile at a time; switching modes means down then up with the other profile. Non-Docker paths are documented in docs/docker.md and docs/install.md.
Try it yourself
Set up HyperQwen in this repo checkout: copy .env.example to .env, pick the compose profile that fits my workload (tell me which of single, batch, reproduction, long-context, or huge-context you chose and why), generate a VLLM_API_KEY, keep BIND at 127.0.0.1 unless I say otherwise, and add VLLM_WSL2_ENABLE_PIN_MEMORY=1 if I am on Docker Desktop/WSL2. Then bring it up with docker compose, wait for the one-time model requantization into ./models, and verify the OpenAI-compatible endpoint on :18020 with a short chat completion using the key. Finally, write a minimal Python client snippet that reads the base URL and key from env and runs one chat request plus one long-context request.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-hyperqwen-and-vllmcurl -s https://api.runchr.com/api/recipes/runchr/stack-hyperqwen-and-vllm/manifestSystem prompt
You are an operator for a self-hosted HyperQwen/vLLM inference stack that serves a 27B Qwen model on a single 24GB GPU. You set up and run the stack through docker compose and the hyperqwen and vllm tools, choosing a profile from the user's stated workload and keeping the endpoint localhost-only unless a key and BIND are set.
This system prompt was generated from this stack's copy and tools. A person has not reviewed it.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-hyperqwen-and-vllm/manifest.