# halogen-flash-server

> A single-model inference server for Qwen3.8-Flash-Next on AMD Strix Halo

- Category: Models & Inference / Serving & Deployment
- Language: Shell (repository); the engine ships as a compiled binary in the container image
- Licence: Proprietary (halogen EULA: free to use, including commercially; model weights licensed separately)
- Repository: https://github.com/peonist-ai/halogen-flash-server
- Website: https://peonist-ai.github.io/halogen-flash-server/
- Canonical page: https://ai-tldr.dev/tools/halogen-flash-server/

## In short

halogen-flash-server is an inference server built for exactly one GPU and one model family: Qwen3.8-Flash-Next on AMD Strix Halo (gfx1151), the integrated GPU in machines such as the Ryzen AI Max+ 395. It sits in the Serving & Deployment category of the Models & Inference tools and is open-source, written in Shell (repository); the engine ships as a compiled binary in the container image and licensed Proprietary (halogen EULA: free to use, including commercially; model weights licensed separately).

## Overview

halogen-flash-server is an inference server built for exactly one GPU and one model family: Qwen3.8-Flash-Next on AMD Strix Halo (gfx1151), the integrated GPU in machines such as the Ryzen AI Max+ 395. Its maintainers, Peonist, say every kernel is written for that chip and that model, with no general-purpose runtime, portability layer or fallback path, and the build rejects any other GPU architecture. It ships as a container image that downloads the weights on first start and serves an OpenAI-compatible endpoint on port 8731.

The server is aimed at coding agents with long sessions. Besides /v1/chat/completions and /v1/completions it speaks the OpenAI Responses API (for Codex) and the Anthropic Messages API (for Claude Code), and a prompt cache lets each turn resume from the conversation it has already read. The project's own measurements for release 0.18.0 on a Ryzen AI Max+ 395 with 128 GB report agent turns with 30,000 to 96,000 tokens of context finishing in a median 4.2 seconds, first token in 1.6 seconds, decode of up to 94 tokens per second on repetitive output and 73 when writing code, and prefill around 1,700 to 1,800 tokens per second up to 131,072-token prompts.

Speculative decoding uses two draft sources, the model's own draft head and prompt lookup over the request's text, and the README states that at temperature 0 output is byte-identical to serial greedy decode. The default checkpoint is a 4.16 bits-per-weight quantisation broken down tensor by tensor in the repository's QUANT.md, and since 0.7.0 the engine can also open a llama.cpp GGUF of the same model directly. The engine is a closed-source binary under Peonist's own EULA, which allows free use including commercial and production use; the GitHub repository holds the documentation, compose files and tooling.

## What it does

- Kernels written for one GPU (gfx1151) and one model family, with no fallback path
- OpenAI Chat Completions, Completions and Responses APIs plus the Anthropic Messages API, usable from Codex and Claude Code
- Speculative decoding from a draft head and prompt lookup, byte-identical to greedy decode at temperature 0
- Prompt cache that resumes long agent conversations, with an optional on-disk cache that survives restarts
- Opens a llama.cpp GGUF of the model directly, with no conversion step
- Built-in bench and sweep modes, plus /metrics in Prometheus format

## Getting started

halogen-flash-server needs an AMD Strix Halo machine and runs from a container image. Before the first start, the Quickstart says to set the BIOS UMA frame buffer (dedicated graphics memory) to its smallest explicit value, not Auto, because the engine uses host RAM rather than dedicated VRAM.

1. Create a directory for the weights

   Podman refuses a bind mount whose source does not exist, so create it first.

```bash
mkdir -p ~/halogen-models
```

2. Run the server

   The first start downloads the weights (about 111 GiB) into the mounted directory, then serves an OpenAI-compatible endpoint on port 8731. On Docker, replace --group-add keep-groups with --group-add video --group-add render.

```bash
podman run --rm -p 8731:8731 \
  --device /dev/kfd --device /dev/dri --group-add keep-groups \
  --ipc=host --ulimit memlock=-1:-1 \
  -e HALOGEN_DOWNLOAD=peonist-ai/halogen-qwen3.8-flash-next \
  -v ~/halogen-models:/models \
  ghcr.io/peonist-ai/halogen-flash-server:0.18.6
```

3. Or fetch the weights yourself

   Download the weights repository with the Hugging Face CLI and mount it read-only.

```bash
hf download peonist-ai/halogen-qwen3.8-flash-next --local-dir ~/halogen-models

podman run --rm -p 8731:8731 \
  --device /dev/kfd --device /dev/dri --group-add keep-groups \
  --ipc=host --ulimit memlock=-1:-1 \
  -v ~/halogen-models:/models:ro \
  ghcr.io/peonist-ai/halogen-flash-server:0.18.6
```

4. Point Claude Code at it

   The server also speaks the Anthropic Messages API; it checks neither the key nor the model name.

```bash
export ANTHROPIC_BASE_URL=http://<your-server>:8731
export ANTHROPIC_API_KEY=anything
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
claude
```

## When to use it

- Run a local coding agent such as Claude Code or Codex against Qwen3.8-Flash-Next on a Strix Halo mini PC or laptop
- Serve one or two long-context conversations on a 128 GB Ryzen AI Max+ machine where turn latency matters more than many parallel users
- Speed up a GGUF of Qwen3.8-Flash-Next you already have without converting it
- Benchmark Strix Halo inference with the image's own bench and sweep modes and compare against general runtimes
