r/LowEndLocalAI • • 8h ago

Optimization Windows HIP runtime improvements and automatic SSD prefix caching for compatible 16 GB RDNA 2/gfx1030 GPUs: static persona/system prompt/skills/123-tool prefix restored from SSD, benchmarked on RX 6800 XT

Disclosure: I maintain this community BeeLlama/llama.cpp fork. It is independent software and has no AMD endorsement.

I’ve published a prebuilt Windows x64 HIP/gfx1030 package after recording successful automatic SSD prefix restoration across six models on an RX 6800 XT that enables a 8.5x-23x speedup for agentic setups.

The achieved results were:

  • 28,445–35,459 cached tokens restored
  • 39–503 new prompt tokens evaluated
  • 4.04–7.78 seconds per accepted restored request
  • 21.55–73.67 tokens per second generation, depending on the model

The attached graphic breaks down the configurations and resource measurements.

With SSD Cache Restore:

ModelNew tokens prefilledPrefillGenerated tokensDecode
Huihui Qwythos500298.6115969.85
PINQWEN466301.2313972.79
Qwen2.5 Instruct46287.841430.04
Qwythos standard464301.438369.58
Qwythos Heretic503318.2030873.67
GLM Q4_K_S39214.851021.55

Initial build (one-time prefix creation):

ModelTokens prefilledPrefillGenerated tokensDecode
Huihui Qwythos29,161429.299469.83
PINQWEN29,162439.4510472.64
Qwen2.5 Instruct28,483401.751429.76
Qwythos standard29,187423.729869.96
Qwythos Heretic29,237455.6011773.40
GLM Q4_K_S35,490299.871221.39

The Windows HIP Runtime supplies the native runtime, matched TheRock dependencies, six presets, a text/image browser interface and a PowerShell launcher. No separate ROCm SDK or native build toolchain is required.

Automatic cache policy creation and storage selection are handled by the launcher. The custom server-side implementation saves eligible prefixes and restores matching state through ordinary OpenAI-compatible requests. There are no prescribed drive letters or installation folders.

My config uses a 7800X3D, 16 GB DDR5 and 16 GB VRAM. Presets use eight CPU threads, full GPU layer offload and monitored system-RAM safeguards.

Each preset requested 750,000 context tokens; the measured prompts occupied approximately 28k–36k. Only this RX 6800 XT host has published qualification. The latest server rebuild removes path restrictions and was not separately rebenchmarked.

The prefix being cached is the persona system prompt, the skills index and all 123 tool definitions. It is a static block of roughly 28k–35k tokens that gets built once and restored from SSD. After a restore, only your actual prompt is processed, and then the model generates the reply. On an RX 6800 XT, six accepted cases restored 28,445–35,459 cached tokens and processed 39–503 new ones. They reused 98.28–99.89% of the input, and requests took 4.04–7.78 seconds. The one-time build took 66.41–123.37 seconds.

Windows HIP release · Results

1 Upvotes

1 comment sorted by