Build Log / Entry 008 / AI in production

Self-hosting open-weight models, part 1: running them.

We ran our own LLMs on four RTX 5090s for Merger Daily and our own tools. Part 1 of our assessment: what it took to keep four model generations running.

The short version

  • Running hybrid clouds provides flexibility and is cost effective.
  • Self-hosting open-weight models works, but plan for a model upgrade roughly every month.
  • Use a systemd template unit with one environment file per model to switch vLLM models with one command.
  • Cap RTX 5090s at 400 W: the same results, with less heat and lower electricity costs.
Published
Read
7 min
Written by
AI team
Stack
vLLM · Qwen · NVIDIA RTX 5090 · Docker · Ubuntu 24.04
In this entry · 6 sections
  1. 01The models never stop changing
  2. 02Keeping up outpaced our evaluation
  3. 03The hardware was ahead of the software
  4. 04Making a switch cheap
  5. 05The GPUs couldn’t join the rest of our infrastructure
  6. 06What part 1 adds up to

Every team building AI features eventually asks whether to keep paying per token for a hosted model or to run open-weight models on its own hardware. We tried the second option. Our AI server, server-ai-01, had four NVIDIA RTX 5090s on bare-metal Ubuntu 24.04 and served models through vLLM’s OpenAI-compatible API. It ran Merger Daily’s AI features and our engineers’ own tools.

This is the first of two entries assessing that decision. This one covers what it took to keep the server useful: the work, the surprises, and what made it manageable. The second covers the economics, and what we decided.

The models never stop changing

Between May and August 2026, the server ran four different models, each replacing the last as better open-weight releases appeared:

  • May: Qwen2.5-32B-Instruct, split across all four GPUs.
  • Early July: Qwen3-Coder-Next, in FP8.
  • July: Qwen3.6-35B-A3B, in FP8, a mixture-of-experts model with reasoning and vision support.
  • Mid-August: Qwen3.8-27B, in FP8, days after its release.

All four are Qwen models. We tried other open-weight models along the way, but at the time, Qwen was the most effective for our workloads.

Each was an upgrade, and that’s the point: a self-hosted model server is never finished. With a hosted API, a better model arrives as a new model name. Here, every upgrade was ours to download, configure, debug and roll out, roughly once a month.

Keeping up outpaced our evaluation

We had an evaluation harness, built in 2025 for one of Merger Daily’s AI tasks: extracting the companies, tickers and authors mentioned in a research note. It runs a model over 102 notes whose correct answers were curated by people, matches the model’s answers against them (by ticker, by normalized company name, and by fuzzy matching for near-misses), and reports precision, recall and F1, split between fundamental and M&A coverage.

None of the 2026 switches went through it. The harness was written against Ollama, the server had moved to vLLM, and each new release looked clearly better on published benchmarks and in features: Qwen3.6 added a reasoning mode and vision, which Coder-Next lacked. We found each newer model acceptable in our own use, but that’s a judgment, not a measurement.

For anyone self-hosting, this is the lesson we’d pass on first. Connect the evaluation to the serving API before the first model goes live. When releases arrive monthly, an evaluation that takes effort to run won’t get run.

The hardware was ahead of the software

The RTX 5090 is a consumer Blackwell GPU (SM120), and some of the fastest kernels vLLM uses didn’t support it yet. Qwen3-Coder-Next crashed on startup with an Unknown SF transformation error: vLLM had picked DeepGEMM, DeepSeek’s FP8 matrix-multiply library, which has no kernels for this architecture in that checkpoint’s scale format.

The fix took two steps. VLLM_MOE_USE_DEEP_GEMM=0 moved the mixture-of-experts layers to Triton kernels, but startup still failed, because DeepGEMM was also selected for the ordinary FP8 layers. VLLM_USE_DEEP_GEMM=0 turned it off everywhere, and vLLM fell back to Triton and Marlin kernels. Both settings stayed in place for every later model.

The fallback works, but it’s expected to be slower than DeepGEMM on hardware it supports; we never measured by how much. Buying the newest consumer GPUs means running them before the software is ready for them, and paying for that in debugging time and in performance you can’t easily see.

Making a switch cheap

What kept monthly upgrades manageable was making each one a configuration change. The first model ran from a single systemd unit with its settings written into the unit file. From Qwen3.6 on, we used a systemd template, vllm@.service, with one environment file per model under /etc/vllm/. Starting vllm@qwen3.8 reads /etc/vllm/qwen3.8.env, which sets the vLLM image and the arguments for that model.

Fig. 008.1: One template unit for every model, one environment file per model. Switching is stopping one instance and starting another.
/etc/vllm/qwen3.8.env
VLLM_IMAGE=vllm/vllm-openai:v0.24.0-cu129-ubuntu2404
VLLM_ARGS=--model Qwen/Qwen3.8-27B-FP8 --served-model-name qwen3.8-27b --tensor-parallel-size 2 --gpu-memory-utilization 0.90 --max-model-len 262144 --kv-cache-dtype fp8 --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder --enable-prefix-caching --max-num-seqs 350
008.2: what changes per model, what stays the same, and how a switch happens.vLLM · Docker · systemd

Each environment file also sets --served-model-name, so clients ask for a short name like qwen3.8-27b instead of the Hugging Face path. That name changes with each model, though, so every switch also meant updating the clients that ask for it.

Even with the template, settings didn’t always carry over. Qwen3.6 ran with up to 512 requests in flight; the same setting stopped Qwen3.8 from starting. Qwen3.8 is a hybrid model whose per-sequence state vLLM keeps in a separate, fixed-size cache, and split across two GPUs, that cache had room for 350 sequences. Each new model needed its limits found again.

The GPUs couldn’t join the rest of our infrastructure

The rest of our infrastructure ran on a Proxmox cluster with Ceph storage and automatic failover (see entry 002). The natural plan was to move this server onto it, with the GPUs passed through to a VM. We didn’t, because of a known problem: after a VM using an RTX 5090 shuts down or reboots, the card can stop responding (“not ready 65535ms after FLR”) until the host is fully powered off. When we checked in August 2026, NVIDIA had reproduced the problem but not shipped a fix.

So the AI server stayed on bare metal, outside the cluster’s failover, with no automatic recovery if it went down.

What part 1 adds up to

Running our own models worked: four model generations served real workloads on hardware we controlled. It also turned model upgrades into a monthly operations task, put us ahead of the software support for our own GPUs, left our evaluation behind, and kept the server outside the failover we relied on everywhere else. Part 2 weighs those costs against what self-hosting saved, and what we decided.

Let's Discuss
Your Ideas

Tell us what you're building. We'll tell you how we'd approach it.

Schedule a call