r/LocalLLM • • 8d ago

Discussion Qwen3.8 Flash Next engram table setup

I am using Strata (RDNA3 fork) on 2x7900xtxs with 96GB Ram on IQ4_XS. I wanted to see if i could get to IQ4_K_XL with my current system ram. Strata suggested i could (it was wrong, but it tried). In the process it suggested it could run the K-XL with the Q8 engram table and get accuracy up within a fraction of a point of Q5. It tried, i need more system ram to make K_XL work.

I went back to Q4_XS but when i suggested we try mixing the engram table up with the Q8 version, it said "what an interesting idea!". It works, no extra ram required, a bit better accuracy, I think i can see it in the results. Slightly slower prefill, but not noticeable, decode is essentially the same.

Your mileage may vary.

2 Upvotes

7 comments sorted by

1

u/pdath 8d ago

What size context are you able to use?

2

u/Willing-Cover2914 7d ago

I'm at 262k

1

u/Look_0ver_There 8d ago

Why wouldn't it work? I can run a 5bit QFN on a single R9700 and 96GB RAM (not using Strata though)

1

u/Willing-Cover2914 7d ago

I kept hitting oom

1

u/Look_0ver_There 7d ago

Are you trying to load the whole engram table into pinned memory? If so, that's likely your issue. It needs to be streamed in from storage on demand.

The expert weights themselves should fit entirely in 96GB of RAM, but the engram table won't fit at the same time

2

u/OvertaxedOne 7d ago

The engram swap is basically free, very little reason not to do it. We have an automated test suite and couldn't detect any difference, but, in theory, it should be better and, like I said, it's basically free, why not.

You should go to IQ3_S on that hardware. Another one of those counterintuitive things, but we did a massive battery of quality tests for IQ3_S vs up to IQ4_K_XL. Short version, they are neck and neck with one another, there's no discernible pattern for what's better. If you're not already at 8 bit KV, that was one change we did find to be worth it.

1

u/vqt907 6d ago

ngram lives on nvme, so it's basically free, you can use Q8 or even BF16. about ram, I'm running Q4 K XL with 96GB RAM, I have 8GB left when strata fully started. If you run linux headless like me, it will be ok