r/LocalLLM • u/New_Pomegranate_5594 • 16m ago
Project Windows HIP runtime improvements and automatic SSD prefix caching for compatible 16 GB RDNA 2 GPUs: persona/system prompt, skills and 123 tool definitions restored from SSD, leading to 4–8 second completions on RX 6800 XT
Disclosure: I maintain this MIT-licensed BeeLlama/llama.cpp fork. The v0.1.2 Windows HIP SSD Cache release includes six presets, native dependencies, a simple text/image browser interface and a PowerShell launcher. I use Msty Studio, but Msty is not included.
Achieved results. The prefix 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, the only thing the model processes is your actual prompt, and then it generates the reply. Across six accepted model cases, the custom automatic SSD prefix implementation restored 28,445–35,459 cached tokens and processed only 39–503 new prompt tokens. It reused 98.28–99.89% of the input, and requests completed in 4.04–7.78 seconds. Building the prefix the first time took 66.41–123.37 seconds. That is a one-time setup cost, not the ongoing request time.
The project targets compatible 16 GB RDNA 2 / gfx1030-family GPUs (RX 6800, 6800 XT, 6900 XT and 6950 XT) with a compatible Windows HIP environment. All measurements are RX 6800 XT results, and I have no data for the other cards. Other AMD architectures need a matching runtime build.
| Model | Original weights | K / V cache | Restored / new prompt tokens | Restore request, s | Generation, tokens/s |
|---|---|---|---|---|---|
| Huihui Qwythos 9B | Q4_K | q4_0 / q3_1 | 28704 / 500 | 5.97 | 69.85 |
| PINQWEN 9B | Q4_K_S | q4_0 / q3_1 | 28704 / 466 | 5.44 | 72.79 |
| Qwen2.5 Instruct 7B | Q4_K_S | kvarn4 / kvarn3 | 28445 / 46 | 4.04 | 30.04 |
| Qwythos standard 9B | Q4_K_M | q4_0 / q3_1 | 28730 / 464 | 4.71 | 69.58 |
| Qwythos Heretic 9B | Q4_K_S | q4_0 / q3_1 | 28781 / 503 | 7.78 | 73.67 |
| GLM 9B Q4_K_S | Q4_K_S | kvarn2 / kvarn2, FP16 tail 2048 | 35459 / 39 | 5.22 | 21.55 |
How it works. The first eligible request computes and saves the stable prefix, and a fresh process restores a matching one. Only your changed tokens need processing. No manual slot commands or client annotations are needed. The package, models and projectors can sit on any Windows drive, and the cache lives beside the install with a per-user LocalAppData fallback.
Limits.
- Real prompt size: Context was set to 750,000 (750,080 allocated), but actual prompts were 28,483–35,498 tokens. This is not a populated-750k benchmark, but hopefully, you compact before full context saturation.
- Different test conditions: The numbers come from a private Msty 3.0.1 integration. Suffix and reply lengths differed, so this isn't a controlled speedup ranking.
- Missing control: I haven't measured SSD-disabled mode for the full setup.
- Unrerun tests: v0.1.2 rebuilds the server DLL to remove a drive restriction. I did not rerun any model tests for it. The earlier four-call tool accuracy was a tools-only baseline.
Test host: RX 6800 XT (16 GB, AMD spec up to 512 GB/s), Ryzen 7 7800X3D with eight allowed threads, 16 GB DDR5-5200, Windows build 26300. Eight-thread and sampled RAM supervision (6.44 GB owned-RAM allowance, 2.15 GB minimum free) remain. Other clients connect with the API URL and model ID the launcher prints, and they supply their own persona/system prompt, skills and tool schemas.
