How to Run Qwen3.8 Flash Next Locally on a Ryzen AI Max+ 395 Mini PC

Updated 9 Oct 2026
How to Run Qwen3.8 Flash Next Locally on a Ryzen AI Max+ 395 Mini PC

Running a large language model on your own hardware means private prompts, no per-token bills and no dependence on a cloud provider. This beginner-friendly guide shows you how to run Qwen3.8 Flash Next locally on an AMD Ryzen AI Max+ 395 system with 128GB of unified memory, using llama.cpp, the Vulkan backend and MTP speculative decoding. When you finish, the model will run as a background service and expose an OpenAI-compatible API on your own network.

The steps are based on a real deployment tested on 8 September 2026. If you want a compact machine built on the same platform, the GEEKOM A9 Mega AI Mini PC pairs the Ryzen AI Max+ 395 with up to 128GB of LPDDR5X memory in a 171 × 171 mm chassis.

What You Will Get

After following this guide, Qwen3.8 Flash Next will run as a background service with these characteristics (measured on the tested system):

  • Generation speed: about 31–33 tokens/s internally
  • End-to-end HTTP speed: about 26–36 tokens/s
  • Memory usage: about 110GB
  • Context window: up to 256K tokens
  • Reliability: starts automatically at boot and restarts after a failure

What You Need

A9 Mega Max+ 395
  • An AMD Ryzen AI Max+ 395 system with 128GB of memory. The GEEKOM A9 Mega is one such option; it ships with Windows 11 Pro and is compatible with Linux distributions such as Ubuntu and Debian. This guide uses Linux.
  • A 64-bit Linux installation
  • At least 110GB of free disk space (130GB recommended)
  • A working Vulkan driver
  • A user account with sudo access

Why 128GB? The Ryzen AI Max+ platform uses unified memory shared between the CPU and GPU. That is what lets a model of this size, plus a long-context KV cache, sit entirely on the integrated GPU. To learn more about the chip itself, see our overview of AMD Strix Halo.

Paths in this guide. Commands use $HOME/models as the model folder and $HOME/llama.cpp as the source folder. If you keep models on a separate drive, change these paths everywhere they appear, including in the service file in Step 6.

Install the required tools

On Ubuntu or Debian:

Verify that Vulkan detects the AMD GPU:

If no AMD GPU appears, fix the graphics driver before continuing.

Step 1: Download the Models

Create the model folders:

Download all three parts of the main model:

Then download the MTP draft model:

The -c option resumes an interrupted download. All three main model files are required.

Step 2: Build llama.cpp with Vulkan and MTP Support

Download the source code:

Apply the patch that adds the required MTP support:

If you see patch failed or does not apply, stop. The patch may already have been merged, or the current source may no longer match the tested version. Check the status of PR #28243 before continuing.

Build the Vulkan version:

The server binary is created at $HOME/llama.cpp/build-vulkan-mtp/bin/llama-server.

Step 3: Start the Server for the First Time

Run the server in a terminal to confirm everything works:

What the key options do:

OptionPurpose
-mdLoads the MTP draft model
--spec-draft-n-max 2Drafts up to two tokens at a time
-ngl 999Place as many model layers as possible on the GPU and unified memory
-ctk q8_0 -ctv q8_0Uses an 8-bit KV cache to reduce memory use
-c 262144Enables a 256K context window

Once the server is listening, open a second terminal and check its health:

A healthy response means the server is working. Press Ctrl+C in the server terminal when you are done testing.

Running out of memory? Halve the context window by replacing -c 262144 with -c 131072.

Step 4: Run It in the Background and at Boot

A systemd user service keeps the model running without an open terminal. Create the service file:

Paste the following. In systemd unit files, %h stands for your home directory, so no edits are needed if you used the default paths above:

In nano, press Ctrl+O, then Enter, then Ctrl+X to save and exit.

Enable and start the service:

Check its status:

The service is ready when it shows active (running).

Step 5: Use the OpenAI-Compatible API

Your local endpoint is:

Test it with curl:

Or with Python:

To use the model from another device on your network, replace localhost with the server’s local IP address. A mini PC with dual 2.5GbE Ethernet, like the A9 Mega, is well suited to acting as a small, always-on AI server for a home or office.

Security note: the API has no authentication by default, and the commands above listen on all network interfaces (--host 0.0.0.0). Do not expose port 8080 directly to the public internet. If you only need access from the same machine, change this to --host 127.0.0.1.

Managing and Troubleshooting the Service

View recent logs:

Restart or stop the service:

After editing the service file, always run:

Common problems

  • Model not found: Check that the model drive is mounted and that every path in the service file is correct.
  • Out of memory: Change -c 262144 to -c 131072, then reload and restart the service.
  • Port 8080 is busy: Run ss -ltnp | grep ':8080' to see what is using it, or choose a different port.
  • Unknown MTP option: The patch was not applied correctly, or a different llama-server binary is running.

Frequently Asked Questions

Can I run this on a machine with less than 128GB of memory?

This exact configuration, with a 256K context, needs about 110GB of memory. On a smaller system, you would need a smaller model, a more aggressive quantisation or a much shorter context window, and the results in this guide would not apply.

Why Vulkan instead of ROCm?

This guide uses Vulkan because it is the backend that was tested and that produced the results above. llama.cpp also supports other backends, so it is worth experimenting once you have a working baseline.

Is my data sent to the cloud?

No. After the models are downloaded, inference runs entirely on your own hardware, so prompts and documents stay on your machine.

Can I use this with existing tools?

Yes. Any application that supports a custom OpenAI-compatible base URL can point to http://localhost:8080/v1.

Final Thoughts

With around 110GB of unified memory in use, a 256K context window and speeds of roughly 26–36 tokens/s end-to-end, a single compact machine can host a capable private LLM server. If you are looking for hardware to build this on, take a look at the GEEKOM A9 Mega AI Mini PC, which offers the Ryzen AI Max+ 395 with 128GB of memory, dual M.2 storage slots and UK stock with a 3-year warranty.

Picture of Laurent Chammas

Laurent Chammas

Laurent Chammas is the creator behind Laurent's Choice, a technology YouTube channel and companion website. He produces PC hardware reviews, component deep-dives, short tutorials, and tech news, with a strong focus on motherboards, CPUs, and custom-build gaming rigs. His content blends hands-on testing with accessible, enthusiast-friendly explanations for builders and gamers.

Share

Share this article

Pass it along to friends, teammates, or anyone comparing the latest processors.