Four months after my previous post, it’s clear that at least grunt-work-designated LLMs are here to stay. I still retain my overall sceptical stance on LLM adoption and capabilities, but models have reached enough maturity to close the heuristic-automation gap. I think it hit me hardest a couple of weeks ago during the wave of X2shell vuln drops (hate the naming and sensationalist disclosure approach btw). I realized that doing my usual workflow (at least for the time being) is no longer enough on its own, and some automation is needed.
So, why have i decided to get a local LLM?
- Mainly to do N-day vulnerability research. I expect long, sustained sessions and prefer not to worry about token expenditure, trading that for upfront cost and speed concessions
- To experiment with local inference: the setup, limitations, hacks, and automation
- Compliance, verification, account flagging, and prompt rejection became too cumbersome with Western models. Being able to run ablated models is important
- Open-weight models reached impressive capability levels
- Insurance against any sudden price hikes and/or service outages, although i doubt there will be any given the competition in the field. Still, better safe than sorry.
- Privacy concerns
The selection process turned out to be a bit more complicated than i thought.
Hardware requirements
In general, the more weights a model has - the more capable it is. That means the memory will be our priority when choosing a suitable hardware. Secondly, we should look into inference speed which is affected by type for memory used (VRAM > Unified > RAM), raw GPU computing power and memory bandwidth.
To know the required memory, we need to estimate a model memory footprint. For that, we need to know what kind of model we are going to run.
Current open-weight models can be roughly split into five groups based on their weight/hardware requirements:
- Tiny (<4B) - mostly Google, designed for edge-device use, like smartphones.
- Small (~30B) - the consumer-hardware-achievable ceiling. Qwen is the most notable here, and it’s the one we will target.
- Medium (~120B) - still theoretically possible to run, but getting a comfortable setup with full context, speed, and normal quantizations puts the cost into prohibitive territory.
- Large (~500B) - most open-weight models are somewhere around here and require server-grade hardware.
- Enormous (>1T) - flagship open-weight models like Kimi.
There are two common types of models: dense and sparse (aka mixture-of-experts). The former use all their weights to infer the result and thus need to be fully loaded, preferably in VRAM. These are usually small (30B and below). The latter use a fraction of their total weights at a time, which gives room for some clever tinkering to work around memory limitations. Larger models (30B+) are almost exclusively sparse.
For our estimation, we’ll use three models: Qwen3.8-27B (Q27), Inkling 2 Mini (I2m) and Qwen3.8-Flash-Next (QNF).
WARNING: the following are crude estimates from a person without a data science background. These might (and probably are) wrong.
| Model | Total parameters | Active parameters |
|---|---|---|
| Qwen3.8-27B | 27B | 27B |
| Inkling 2 Mini | 26.4B | 5.4B |
| Qwen3.8-Flash-Next | 125B (+51B n-gram and +5B MTP) | 6B |
We can lower the precision of weights from the original FP16 (16 bits) to smaller quants, reducing the size and memory footprint of the model. Of course, the lower the quantization, the more the model’s quality degrades. How fast? Fortunately, people have run comparative benchmarks we can check out. Although not universal, a very rough rule of thumb would look like this:
- Use
Q2to test whether the model runs; its quality is degraded, and it is mostly unusable - Use
Q4for performance, with half the memory footprint and mostly retained efficiency - Use
Q8if possible; it’s essentially the same as the original model.
Each conversation with a model also has context. For three models listed, the maximum context is 256 thousand tokens. Each subsequent agent will have its own context. I’ll spare the details and list KV weight per token for each model:
| Model | KV size / token | KV size at full (256t) ctx | Extended KV size (1mil) ctx |
|---|---|---|---|
| Q27 | 65 KB | 17.2 GB | 65 GB |
| I2m | 32.6 KB | 7.97 GB | 30.8 GB |
| QNF | 30 KB | 7.6 GB | 30 GB |
That allows us to estimate the combined memory footprint for a single session at full context with different model quantizations:
| Model | Quant | Active weights size, GB | Total weights size, GB | Max ctx, GB | Total Weights + ctx, GB |
|---|---|---|---|---|---|
| Q27 | Q4 | 19.4 | 19.4 | 17.2 | 36.6 |
| Q27 | Q8 | 28.6 | 28.6 | 17.2 | 45.8 |
| I2m | Q4 | 16 | 30.8 | 48.8 | |
| I2m | Q8 | 25.5 | 30.8 | 56.3 | |
| QNF | Q2 | 2.8 | 83.1 | 7.6 | 90.7 |
| QNF | Q4 | 4.5 | 111.3 | 7.6 | 118.9 |
| QNF | Q8 | 7.8 | 188.3 | 7.6 | 195.9 |
These estimations should make it obvious why Q27 and QNF and not Deepseek or other larger models are the focus for hardware selection.
Model comparison
Now let’s see how models compare to each other in order to understand if pushing for QNF or even higher models worth paying premium.
A late entry into capable small models pool is Thinking Machine’s sparse Inkling 2 mini (26.4B / A5.4B). I’ve also added Deepseek4.1-Flash and Kimi3.1 as larger models for comparison.
Data is sourced from Artificial Analysis. Their ‘Intelligence Index’ is skewed because it compounds scores from nine different benchmarks including visual understanding and niche fields like medicine that are not that relevant for a mostly technical workloads. Instead, i’ll focus on three specific benchmarks: general knowledge (HLE Diamond), coding (FrontierCode) and CLI usage (Terminal Bench 4.1).
On general knowledge, i was surprised to see that Q27 and QNF do not show a noticeable difference. DeepSeek and Kimi show noticeable gains:

On the CLI usage, Q27 fails at the latest Terminal Bench (to be fair: it’s difficult and earlier versions are not that bad for Q27) while QNF almost matches DeepSeek:

For coding smaller models are, as expected, less efficient, but Kimi, Deepseek and QNF are roughly equal:

I would’ve compared them on cybersecurity as well, but smaller Qwen models are not rated on either Cybergym or Exploitbench. So instead, here are benchmarks with closed-weight models added:

Q27 falls a bit short of latest entry-level models, but QNF is challenging them.
In summary, pushing for QNF should give a noticeable code quality gain, but for generic tasks smaller Q27 should be more than enough.
Hardware options
Keeping memory estimations and model selection in mind, what options do we have to be able to run them?
Discrete GPU
I will exclude server-grade cards due to either complicated procurement or limited software support and stick with consumer-grade ones. That gives us:
| GPU | VRAM | Price, ¥ | Memory bandwidth |
|---|---|---|---|
| 2x RTX 5060 Ti | 32 GB | 320000 | 448 GB/s |
| AMD R9700 | 32 GB | 420000 | 640 GB/s |
| RTX 5090 | 32 GB | 1400000 | 1,792 GB/s |
Unless we want super-fast local inference, we can discard the RTX 5090 option. Two RTX 5060 Ti cards would be power-hungry and hard to install on the motherboard (plus, the second card will be slowed due to a PCI limitation), but they will support CUDA if that’s important. Otherwise, the R9700 seems to be the obvious optimal choice here.
The noticeable ceiling is 32 GB of VRAM. We can push through it with the help of Strata and RAM, but only for MoE models where the active layer would fit inside the VRAM. For dense models, additional RAM won’t help us without significant speed degradation, so with 32 GB of VRAM we’re practically limited by Q27 Q4 at around max context.
Here are prices for current 64 GB and 128 GB RAM sticks comparable with unified-memory chips:
With that, let’s move on to the other option.
Unified Memory
The upside of a unified-memory mini-PC is its overall convenience and price: it’s a small box sitting on a shelf, quiet, energy- and heat-efficient, and always on. The downsides are lack of upgradeability (you’d have to sell it and buy a new one) and inference speed (unified chips are obviously weaker in raw compute, and only Apple’s chips have bandwidth comparable to discrete GPUs).
Three chip families currently exist:
- NVidia’s
GB10, sold as:NVidia DGX Spark(sold out)ASUS Ascent(sold out)Acer Veriton(site closed for http/2 vuln mitigation)Gigabyte AI TOP ATOM(not available in Japan)MSI EdgeXpert(closed quotes)- Lenovo ThinkStation PGX
- HP ZGX G1n
- Dell Pro Precision GB10
Given that most of the options are usually sold out and the available ones have a serious price premium (way above Macs) over alternatives, it seems people usually pick these for CUDA, to run or test specific payloads before dropping them into server-grade hardware.
- AMD’s Ryzen
Strix Halo, sold as:AMD Ryzen AI Halo(not available in Japan)- GMKtec EVO-X2
Beelink GTR9 Pro(not available in Japan)- Minisforum MS-S1 Max
- HP Z2 Mini G1a
Strix Halo’s major downside is limited memory bandwidth that limits inference speed, but it’s x86, which might be required for specific security research purposes.
- Apple’s
M-familychips:- Mac Mini
- Mac Studio
Except for baseline models, the Pro models are comparable with Strix in speed, and the Max and Ultra models are much faster (with Ultra even beating R9700). Since they’re Arm-based, compatibility issues might arise for security work.
Now, let’s list items available to order in Japan:
| Model | Price, ¥ | CPU | Memory | Disk | Memory Bandwidth | Sustained power consumption |
|---|---|---|---|---|---|---|
| Lenovo ThinkStation PGX | 1200000 | GB10 | 128 GB | 2 TB | 273 GB/s | 160 W |
| HP ZGX G1n | 1299100 | GB10 | 128 GB | 4 TB | 273 GB/s | 160 W |
| Dell Pro Precision GB10 | 1549680 | GB10 | 128 GB | 1 TB | 273 GB/s | 160 W |
| GMKtec EVO-X2 | 347999 | Ryzen 395 | 64 GB | 1 TB | 256 GB/s | 160 W |
| GMKtec EVO-X2 | 566999 | Ryzen 395 | 128 GB | 1 TB | 256 GB/s | 160 W |
| Minisforum MS-S1 Max | 460799 | Ryzen 395 | 64 GB | 2 TB | 256 GB/s | 130 W |
| Minisforum MS-S1 Max | 691999 | Ryzen 395 | 128 GB | 2 TB | 256 GB/s | 130 W |
| HP Z2 Mini G1a | 1680800 | Ryzen 395 | 64 GB | 2 TB | 256 GB/s | 160 W |
| HP Z2 Mini G1a | 2854500 | Ryzen 395 | 128 GB | 2 TB | 256 GB/s | 160 W |
| Mac Mini | 524800 | M5 Pro | 64 GB | 1 TB | 307 GB/s | 55 W |
| Mac Studio | 596400 | M5 Max | 64 GB | 1 TB | 614 GB/s | 150 W |
| Mac Studio | 855600 | M5 Max | 128 GB | 1 TB | 614 GB/s | 150 W |
| Mac Studio | 1993800 | M5 Ultra | 256 GB | 2 TB | 1200 GB/s | 385 W |
NVIDIA-based PCs (i think because of CUDA and clustering) carry a significant price premium.
Minisforum MS-S1 Max is more expensive than GMKtec EVO-X2 because it’s extendable by design, so it’s catered more towards mini-servers than personal compute.
At the same price, the choice lands between a faster 64 GB Mac Studio and a larger 128 GB GMKtec EVO-X2. And despite it’s price, Mac Studio seems to be the only viable alternative for 128 GB+ memory setup because clustering is cumbersome and speed-limited, while with Mac you also gain ‘Ultra’ chip with even higher memory bandwidth.
What to Pick
WARNING: I’ll remind you once again that i’m not an expert in this field and all conclusions here are purely theoretical, so always double-check everything yourself and follow them at your own risk
Here’s a quick comparison of the options:
| Setup | Price, ¥ | Qwen3.8-27B | Qwen3.8-Flash-Next |
|---|---|---|---|
| R9700 | 420000 | Q4 | No |
| R9700 + 64 GB | 600000 | Q4 | No |
| R9700 + 128 GB | 990000 | Q4 | Q4* |
| GMKtec EVO-X2 (64) | 347999 | Q8 | No |
| GMKtec EVO-X2 (128) | 566999 | Q8 | Q4* |
| Mac Studio (64) | 596400 | Q8 | No |
| Mac Studio (128) | 855600 | Q8 | Q4* |
| Mac Studio (256) | 1993800 | Q8 | Q8 |
‘*’ - QNF options depend on the quantization, runtime, context, and RAM/SSD offloading. The 64 GB machines can also be used to experiment with suitable offloading.
With that, decision chart should look something like this:
Conclusion
As of today:
- Cheapest local LLM setup costs 35万¥ / 2200$.
- Either faster (x2 inference speed) or larger (128 GB) setup costs 60万¥ / 3800$ (+71%)
- Larger model capable setup costs 200万¥ / 12500$ (+471%)
Given the current prices and available models, it’s still hard to say that a fully capable local LLM is available to the general public. Q27 seems to be a ‘smaller’ model that needs larger external models to do the work, but it should be enough for running daily automation tasks or a grunt job. QNF seems to be an entry-level model for serious local-only work, but it requires substantial investment in hardware (128 GB+). Getting a budget-friendly machine with around 64 GB would enable people to experiment with local inference and decide whether or not to invest more money later.
I’m leaning toward either the 64 GB Mac or the 128 GB Strix myself, and once i settle and tinker with it later on - i’ll try to follow up on this article.
