Qwen3-Coder 30B-A3B on Framework Desktop (Ryzen AI Max+ 395, 128 GB)

30.532B (3.3B active) on 128 GB at 256 GB/s. Hardware details · Model details

Run locally →
Yes. Qwen3-Coder 30B-A3B fits on Framework Desktop (Ryzen AI Max+ 395, 128 GB) at the recommended Q8_0 configuration, requiring approximately 33.5 GB at 8K context. Practical context capacity is 256K. Measured alternative: 52.00 t/s median across 1 comparable run at Q4_K_M and 4K context. Measured
CompatibilityComfortable
Calculated fit
Yes
Calculated Uses under 80% of usable memory. Room for a long context and other work.
Recommended quantization
Q8_0
Calculated gguf
Memory required
33.5 GB
Calculated of 105.0 GB usable — 32%
Max practical context
256K
Calculated model supports 256K
Observed resident fit: Q4_K_M with eng_llama_cpp at 4K context. This is measured evidence for those exact artifacts and settings; it does not change the standard memory calculation above.

Memory budget at 8K context

Model weights ⓘ
30.8 GB Calculated
KV cache ⓘ
0.8 GB Calculated
Runtime overhead ⓘ
1.9 GB Estimated
Total required
33.5 GB Calculated
Headroom ⓘ
71.5 GB Calculated
Highest-precision quantization that leaves headroom: uses 32% of usable memory at 8K context.
Unified LPDDR: the accelerator allocates from the same 128 GB pool as the OS. We assume 82% is available to the inference engine.
Mixture of experts: all 30.532B parameters must be resident in memory even though only ~3.3B are active per token. Memory follows total parameters; speed follows active parameters.
Performance

Estimated performance · recommended Q8_0

Decode, prefill and TTFT below are estimates for Q8_0. We do not have a comparable Q8_0 measurement on this machine.

Estimated decode
~23.5–33.8 t/s
Estimated Q8_0; calculated range
Estimated prefill
~344–714 t/s
Estimated Q8_0; calculated range
Estimated TTFT at 8K
~11.5–23.9 s
Estimated Q8_0; calculated range
Hardware load reference
130 W
Measured machine-level load; not this model run

Measured results · Q4_K_M

1 measured run

These are real Q4_K_M measurements. The recommendation above uses Q8_0, so they are not used to produce its estimated KPIs.

QuantEngineDecode modeContextRunsMedian decodeMedian prefillLatestSources
Q4_K_Mllama.cppstandard4K152.00 t/s—10 Feb 2026mindstudio.ai
How the estimate is calculated
  1. Decode: reading 3.3B active parameters at 8.50 bits/weight takes 28.40 ms at 256 GB/s x 48% achieved efficiency.
  2. MoE routing penalty of 15% applied: expert gathers are less bandwidth-efficient than a dense sweep.
  3. Prefill: 59 TFLOPS (FP16) x 18% assumed model-FLOPs utilisation, divided by 2 x 10.0B parameters per token.
  4. Prefill uses 10.0B effective parameters, not the 3.3B active in decode: a batch of hundreds of tokens routes across most of the expert pool.

  • MoE decode depends on how well the engine batches expert gathers; real results vary more than for dense models.
  • Prefill throughput is highly engine-dependent. Flash attention, batch size and quantized KV all move this number substantially, and for sparse mixture-of-experts models it is the least reliable figure we produce.
  • This is a calculated estimate, not a measurement. It assumes a single request, a short prompt, no speculative decoding and a warm model already resident in memory.

Estimator version estimator_v1. Stored with every estimated row so old estimates can be regenerated when the model improves.

This model at other quantizations on this machine
QuantizationResidentDiskTotal neededUtilisationFitMax context
Q4_K_M17.8 GB17.8 GB20.0 GB19%ComfortableResident run observed256K
Q5_K_M20.8 GB20.8 GB23.2 GB22%Comfortable256K
Q8_0recommended30.8 GB30.8 GB33.5 GB32%Comfortable256K
BF1656.9 GB56.9 GB60.3 GB57%Comfortable256K
Cost of running Qwen3-Coder 30B-A3B on this machineUnited States (federal) · C corporation · 8h/day
Monthly economic cost
$28
Calculated after tax
Codex/Claude Code
$100/mo
≈ $100/mo · local is $72 less
Net cash at purchase
$2,161
Calculated VAT not reclaimable
Total over 5 years
$1,673
Calculated after tax, after resale
Cost per USD/1M tokens
$7.68
Calculated 3.6M tokens/month

The $100 comparison uses the Codex Pro 5x / Claude Max 5x plans. A fixed planning conversion is used for USD. This compares monthly spend only: subscriptions have usage limits, local hardware has different capabilities and constraints, and taxes or regional pricing may change the charged amount. Prices checked 7 September 2026.

Purchase-price input: $2,161 in United States (federal), tax/VAT excluded · estimated · Framework (converted catalogue estimate). This is the localized purchase input; the after-tax economic cost is calculated separately below.

Monthly breakdown

Depreciation
1,837 over 5 years, straight-line to a 324 residual
$30.62
Electricity
6.3 kWh/month at 0.140/kWh
$0.88
Cost of capital
4.0%/yr on 1,243 average capital employed
$4.14
Monthly cost before tax$35.63
Electricity tax shield
Running costs are deductible business expenses
−$0.18
First-year expensing
§179 (100.0%)
−$7.56
Monthly economic cost after tax$27.89

Three different numbers, deliberately

Cash cost
$2,161
Money that leaves the bank account on day one, net of reclaimable VAT.
Accounting depreciation
$30.62/month
$1,837 written down over 5 years to a $324 residual.
After-tax economic cost
$27.89/month
Depreciation plus running costs plus cost of capital, less the tax those deductions save. This is the figure to compare between machines.
Assumptions and sources (verified 2026-09-07)
VAT rate
0% Official spec
VAT recoverable
0% Official spec
Federal C-corporation estimate at the flat 21% rate. Pass-through entities should use the sole-proprietor estimate as a rougher proxy.
Effective deduction rate
21.00% Calculated
Headline marginal rate 21.00%.
Depreciation
5 years, straight-line Assumption
Residual value
$324 (15%) Assumption
Two GPU generations later, the card is worth a fraction of its list price.
Electricity
$0.140/kWh Assumption
Average power draw
36 W Calculated
Load 130 W for 20% of powered hours, idle 12 W for the rest — a machine that is on is not generating tokens the whole time.
Investment allowances
§179 100.0% Official spec
Worth $454 in total — first-year expensing that replaces later tax depreciation.
Cost of capital
$4.14/month Assumption
Assumes the machine generates tokens 20% of its 176 powered hours per month. Cost per token scales inversely with this number — halve the utilisation and the cost per token doubles.
Federal planning estimate only, not tax advice. State and local income tax, sales/use tax and incentives are excluded. It assumes 100% business use, a Section 179 election, enough business income to use it, and that the full annual limit remains available.
Efficiency metrics
Decode per $1,000 spent
13.3 t/s
Calculated purchase price only
Decode per $100/month
102.7 t/s
Calculated after-tax ownership cost
Tokens per joule
0.80
Calculated same as tokens/s per watt
USD per 1M output tokens
$7.68
Calculated at 20% utilisation
Local versus hosted APIs
Hosted modelUSD/1M outputBreak-evenAPI at your volumeVerdictComparison type
Qwen3.8 Flash
Alibaba Cloud
$0.4218.1M/mo$6API cheaperDifferent model
DeepSeek-V4.1 Flash
DeepSeek
$0.6015.5M/mo$7API cheaperDifferent model
DeepSeek-V4 Pro
DeepSeek
$1.983.8M/mo$26About equalDifferent model
DeepSeek V4 Pro (Together)
Together AI
$4.401.3M/mo$77Local cheaperDifferent model
GLM-5.3
Z.ai
$4.401.8M/mo$57Local cheaperDifferent model
Claude Haiku 4.5
Anthropic
$5.002.1M/mo$47Local cheaperDifferent model
Different-model comparison: the hosted model is not the model you would run locally. Treat this as a workload-quality trade-off, not a direct economic equivalence — the frontier model may complete a task in fewer tokens, or complete tasks the local model cannot. Break-even is the monthly output volume at which API spend equals the $28/month economic cost of owning this machine, assuming 8 input tokens per output token. Hosted prices are published in USD. This table is the canonical US default.