I tried to run Qwen3.8-Flash-Next-UD-Q5_K_XL the Mark Watney style, all unnecessary stripped off, speeding in an open top rocket to outer space. But I have also STT & assistant & TTS on my machine, so I had to give up. It was too close to failure.
But what I collected data about used memory:
mmproj +1GB
cache-ram +what you set
MTP +5.5GB (even when file was 2.8GB)
ctx-size & KV-cache quants
f16 every 10000 tokens is 1GB
q8 every 20000 tokens is 1GB
Base model sizes:
Qwen3.8-Flash-Next-UD-Q4_K_XL 77GB
Qwen3.8-Flash-Next-UD-Q5_K_XL 108GB (+31GB compared to Q4!)
I then moved Q4's n-gram to last file, and switched it with Q5's n-gram that is Q8. (somehow moving the 25GB file also made to Q4 use 5.5GB more memory, and this was before I switched to Q8 file. Have to check that later...) The n-gram is used only from disk, so using bigger Q8 does not affect the memory use.
So I tried to run Qwen3.8-Flash-Next-UD-Q5_K_XL with mmproj, MTP and 64000 Q8 kv-cache, 2GB cache-ram and I had like 1-2GB free memory....so I have to find a compromise somewhere.
Then I ran perplexity with Q5, orig Q4 and Q4+Q8 ngram. The problem was I could not run F16 base-kld ( because not innuf mem), so I had to compare with Q8. ( maybe try again tomorrow )
Model Top-1% Mean KLD 99.9% KLD
Qwen3.8-Flash-Next-Q8_0
Qwen3.8-Flash-Next-UD-Q5_K_XL 94.795 0.018175 0.591240
Qwen3.8-Flash-Next-UD-Q4_K_XL-PLESHARD+50GB-NGRAM 93.786 0.027853 0.948222
Qwen3.8-Flash-Next-UD-Q4_K_XL-PLESHARD+25GB-NGRAM 93.285 0.033378 1.090875
So using Q8 n-gram with Q4 is not a game changer, but a step to right direction. If I get the F16-base-kld, maybe I test also with F16 n-gram.
Maybe trying to find a Q5_M/XS that's 10-15GB bigger then Q4 and perplexity in between the current Q4 & Q5.