r/LocalLLM • • 15d ago

Question Cheapest Setup for good coding local LLM Qwen3.8-27b? RTX 3060 XT + 64GBs RAM

Hello,

I want to get a local LLM setup for a comparable fair price (Qwen3.8-27b and future Qwen4). After some research and chatting with Claude Opus the best options would be RTX 3060 XT 12GB with 64GBs of RAM running on Strata.

e.g. upgrading my PC for around 650€ (used parts bought online)

Can someone confirm that this Setup will let me run it on a performative useful level. I will use my 20€ claude plan fpr hard tasks or a kind of divide and conquer style usign both (experienced Software Engineer but a Hardware noob).

Does anyone have experiences with that, advices or alternative setups?

3 Upvotes

23 comments sorted by

7

u/x_MASE_x 15d ago

You need about 16gb for Qwen3.8-27B to be anywhere near usable. If I remmebr correctly iq3s and about 128k context I think what I managed to get.

With 12gb you won't fit it inaide the gpu at all.

So you need more vram and also check out adaptive kv cache llama.cpp fork. It's very good with dense models that spill to ram.

But check Qwen3.8-Flash-Next using strata you have a better chance getting this running at reasonable speed than Qwen3.8-27B

1

u/SlimMonkey_ 15d ago

Yeah my bad I meant Qwen3.8-Flash-Next. So my setup would be the cheapest for that? a RX 7800 XT woudl cost 500€ itself + Ram for like 350€. Is there a real difference you can feel day to day worth the 150€ more spent?

1

u/Funcore1650 15d ago

How you get a 128k context on 16GB VRAM? Which setup using for that? I have 5060Ti 16GB, and can't reach even stable 50k (I have a 48GB RAM for VM, but using Unsloth Desktop as server with Qwen 3.8 27B in Q3)... How I can try Strata?

2

u/x_MASE_x 15d ago
  "Qwen3.8-27B":
    env:
      - "CUDA_VISIBLE_DEVICES=0"
    cmd: |
      ${llama-bin}
      -m ${models-dir}\MTP\Qwen3.8-27B-UD-Q3_K_XL.gguf
      --host 127.0.0.1 --port ${PORT} -fa on --no-ui --metrics --load-mode mlock --jinja --cont-batching -t 8 -tb 16 -ot "token_embd.weight=CPU" 
      --chat-template-file ${models-dir}\Templates\chat_template-v22.5.jinja
      -ctk kvarn5 -ctv kvarn4 --kv-tail-tokens 1024 -b 256 -ub 256 -np 1 -c 150000
      --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.00 --presence-penalty 0.0 --repeat-penalty 1.0
    cmdStop: ${stop-with-wait}
    proxy: http://127.0.0.1:${PORT}

  "Qwen3.8-27B-Q3":
    env:
      - "CUDA_VISIBLE_DEVICES=0"
    cmd: |
      ${llama-bin}
      -m ${models-dir}\MTP\Qwen3.8-27B-UD-IQ3_S.gguf
      --host 127.0.0.1 --port ${PORT} -fa on --no-ui --metrics --load-mode mlock --jinja --cont-batching -t 8 -tb 16 -ot "token_embd.weight=CPU"
      --chat-template-file ${models-dir}\Templates\chat_template-v22.5.jinja
      --spec-type draft-mtp --spec-draft-n-max 3
      -ctk kvarn5 -ctv kvarn4 --kv-tail-tokens 1024 -b 1024 -ub 512 -np 1 -c 130000
      --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.00 --presence-penalty 0.0 --repeat-penalty 1.0
    cmdStop: ${stop-with-wait}
    proxy: http://127.0.0.1:${PORT}

this is from llama-swap file, I think this is the best i could get then toke a chance with strata and went with strata all the way for some time now.

And now I installed Linux and testing strata on linux and also basalt. Which should be even better than strata.

I'm using beellama so the kv caching is a little bit weird. But you can use q4 with normal llama.cpp and have similar result.

IF you really need to use bigger context then you have to use adaptive kv cache repo, its very good for dense models that spill.

for strata just download it for windows or whatever os you can, there is now a desktop app which i dont really like but its getting better.

1

u/Funcore1650 15d ago

Ah, thank you very much, I'll try that

1

u/x_MASE_x 15d ago

You're welcome 😊

1

u/d0pe-asaurus 10d ago

A bit later to the party here but with adaptive-kv-streaming on this fork you might be able to get more.

https://github.com/RaymondHuang210129/llama.cpp-adaptive-kv-streaming

I'm using an amd version of this and i'm getting 262k context on my 9060XT 16GB

1

u/Dry_Particular_7623 15d ago

I have 16gb vram (5060ti) but when I ran qwen3.8-27B, 1 time it showed bluescreen and restarted, I dont know why it caused coz even the model that I used was around 11GB. Iq3s or smth like that, it was the lowest one..

Could it be cuz I have only 16gb ram?

1

u/x_MASE_x 15d ago

Bsod could mean many things. Cpu or gpu or ram or even drivers. You have to check the logs for clues. But with 16gb you should work fine.

1

u/Dry_Particular_7623 15d ago

Drivers are latest. I check event logs, it just said unexpected shutdown and bluescreen or smth.. I dont know why...

Maybe I just ipened my pc and ran that AI.. coz later on it was working, though I havent ran it much since..

1

u/x_MASE_x 15d ago

What's your system specs and what quant and context size and kv cache quant you are using

1

u/Dry_Particular_7623 15d ago

16gb ram, 5060ti 16gb vram, intel core ultra 225f , for kv i think 8bit ans contxt size 16k prolly but i later made it 8k.

1

u/x_MASE_x 15d ago

You need to use occt and check the system stability since something is wrong. So download its and stress test the cpu and ram and ram and some components and check for high temps or faults.

Also you need to use q4. You don't have the luxury of using q8 with 16gb vram. Also check my config down there for some config hints.

1

u/Dry_Particular_7623 15d ago

It is a new build, so i dont think anything is wrong.. when I bought it, during test it went around 66 degree max temp. That was a month back.. so it is mostly a ai thing that i think i will need to fix, but i dont have the knowledge of deep local ai and what every setting mean

→ More replies (2)

1

u/Wally-Gator-1 15d ago

I did 2 x RTX3060, one running on PCIex16 and one running on PCIex4. 24 GB is really what's needed to run it comfortably with Q4 18 GB size and the KV.
Unsloth studio is easy to setup and use with both GPUs.
32 GB RAM is sufficient in most cases.

1

u/SlimMonkey_ 15d ago

I don't think my mainboard will fit 2 RTX3060 comfortable wihtout possible heating/cooling problems and this would be 800-900€ sicne 320€ for a 3060 plus the 32gigs of RAM.

1

u/Wally-Gator-1 15d ago

Q4 is 18 GB for Qwen 3.8 27B so it won't fit a single RTX3060. You will end up with really slow performance like I had before due to CPU offloading.

1

u/SlimMonkey_ 14d ago

What about a quantified version?

1

u/MediumAd4983 15d ago

27b - you need at least 24GB VRAM.

1

u/SlimMonkey_ 14d ago

What about a quantified version?

1

u/MediumAd4983 14d ago

It is about quantified Q4 with 128k context will fill the entire VRAM even without vision.