# Qwen3.8-27B quantization: Q4, Q5 or W4A16?

Canonical URL: https://syntalith.ai/en/blog/qwen-quantization-q4-q5-w4a16

[Blog](https://syntalith.ai/en/blog) · Syntalith · 25 August 2026 · Updated 22 October 2026

Short answer

Quantising Qwen3.8-27B to Q4, Q5 or W4A16 lets the model fit on a 24 GB card, but the memory you win goes on context. You choose the smallest format that passes the test on your own tasks, because our comparison changed the format, the engine and the context limit together.

How we work

1. Call · 30 minutes with an engineer, free
2. Prototype · A working system on your process and your data, free
3. Build · Target and fixed price in the contract, 50% at signing
4. Acceptance · 50% once the agreed target is met

model on your server or in the cloud in the EU: quoted after the review

the same work in an app with an EU cloud model: from €3,000

analysis of the task, data and hardware: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-qwen-quantization-q4-q5-w4a16-hero)

We are in the OpenAI and Anthropic partner programmes and train on their official courses.

6 min read

**A procedure for choosing a format**

- Measure the context you need on real tasks
- Check which formats hold it on your card
- Run the same set of tasks on each format
- Choose the smallest that passes the test

## What is actually compressed

A 27B model in BF16 format needs about 55 GB for the weights alone. Quantisation stores some of the values with fewer bits. It cuts memory use and data traffic, and it introduces an approximation.

A configuration can set separately:

- the precision of the model weights;
- the precision of the KV memory for the earlier context;
- the precision of the extra MTP module used to predict the next tokens;
- the format and the kernels the server supports.

So the label “4-bit” covers different technologies. GGUF Q4_K_M, AutoRound W4A16 and NVFP4 have different procedures, precision layouts and runtimes.

## Unsloth's official file sizes

The [Qwen3.8-27B GGUF repository](https://huggingface.co/unsloth/Qwen3.8-27B-GGUF) gives:

| Format | Weight size | What it means for a 24 GB card |
| --- | ---: | --- |
| UD-Q4_K_M | 16.5 GB | a practical margin for context memory |
| UD-Q5_K_M | 19.8 GB | less room with a long context |
| UD-Q6_K | 22.0 GB | little room for memory and buffers |
| Q8_0 | 29.0 GB | does not fit in full |
| BF16 | 54.7 GB | needs a bigger card or several GPUs |

The `llama.cpp` 60k configuration used Q5_K_M and Q8 memory. The 120k and 250k configurations used Q4_K_M. In the 250k variant we set context memory to Q4, and the batch size processed was much smaller. So the longer window needed several trade-offs at once.

A model on your server or in the cloud in the EU, proven on your tasks.

quoted after the review · model on your server or in the cloud in the EU

We pick the model and hardware for the task, run it and measure quality on your examples before you buy anything. The data stays in the company or in an EU cloud. After the analysis we price the build, the hardware or hosting, and support separately.

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-qwen-quantization-q4-q5-w4a16-inline)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

## Four configurations that really fitted in 24 GB

| Configuration | Weights / context memory | Context | Peak VRAM | Memory left | Measured workload |
| --- | --- | ---: | ---: | ---: | --- |
| `llama.cpp` 60k | Q5_K_M / Q8 | 65,536 | 22,287 MiB | 2,289 MiB | recalling facts from an input of 50,059 tokens |
| `llama.cpp` 120k | Q4_K_M / Q8 | 131,072 | 22,649 MiB | 1,927 MiB | recalling facts from an input of 115,074 tokens |
| `llama.cpp` 250k | Q4_K_M / Q4 | 250,000 | 23,623 MiB | 953 MiB | recalling facts from an input of 230,085 tokens |
| modified vLLM 150k | W4A16 / FP8 | 150,000 | 22,539 MiB | 2,037 MiB | a Go task in Qwen Code |

The first three rows come from the same kind of test, recalling facts from a long input, and we ran each length once. The last one comes from a different programming task, so it is no direct memory comparison with the GGUF variants. It shows the peak use observed for the configuration chosen for further work.

The 250k configuration fitted with a margin of less than 1 GiB. It needed a smaller batch and Q4 memory, so that margin leaves no comfortable room for many sessions. The server still handled only one session.

## How W4A16 differs

`W4A16` means roughly 4-bit weights and 16-bit activations. Our AutoRound weight file ran in a frozen, externally modified vLLM image, with FP8 KV memory and extra changes for the RTX 3090. It is no GGUF file that you can simply swap into `llama.cpp`.

On the same code-fixing task, Codex rated the W4A16/vLLM configuration 100/100 by Syntalith's criteria after 502.14 s, and the Dynamic V3 Q4_K_M/`llama.cpp` configuration 98/100 after 1468.76 s. The criteria cover correctness (40 points), regression tests (20), compliance (15), scope of changes (10), verification (10) and documentation (5). The server, the context memory, the speculative path and the length limit also differed. The result points to a configuration worth testing further. It does not settle whether the W4A16 format itself gives more accurate answers.

## How to read a vendor's claims

Unsloth describes Dynamic V3 as giving about 10% higher accuracy at the same size. That is a claim by the maker of the quantisation, based on its own evaluation method. In our experiment we did not see a 10% rise in agent quality.

A stronger claim would need:

1. identical prompts and engine;
2. several weight formats with matching settings;
3. repeats with unchanged sampling settings;
4. a set of tasks that represents a specific process;
5. an independent assessment of the answers.

A narrower conclusion was enough to choose a configuration for the next stage. On this single task, Codex gave both configurations high scores on the same scale, and the difference in the time of the whole task was large. These scores describe one run, so they do not prove repeatability.

## Context memory uses up the space you win

A long context stores keys and values for earlier tokens. With one user it can take several gigabytes, and with many sequences it grows with their number. So a 16.5 GB weight file does not mean 7.5 GB of free budget is left on a 24 GB card.

Lowering the precision of context memory from Q8 to Q4 increases capacity, but it can change the quality of references to long material. Check this with facts placed in different spots and with a task that needs information combined. Starting the server alone does not show this property.

## Weight memory: a calculation for 2026

The calculation below shows only an idealised storage of the weights. We assume exactly 27 billion parameters. We do not add quantisation scales, metadata, the KV cache or server buffers. The unit GB means a billion bytes. Real model files may have a different size.

Idealised storage of the weights at sixteen-bit precision takes 54 GB.

Idealised storage of the weights at four-bit precision takes 13.5 GB.

Idealised storage of the weights at five-bit precision takes 16.875 GB.

Moving from sixteen-bit to four-bit storage cuts this part of memory by 75%.

Four-bit storage of the weights takes 20% less memory than five-bit storage.

- 27000000000 × 16 / 8 / 1000000000
- 27000000000 × 4 / 8 / 1000000000
- 27000000000 × 5 / 8 / 1000000000
- (16 - 4) / 16 × 100
- (5 - 4) / 5 × 100

The [Unsloth quantisation repository](https://huggingface.co/unsloth/Qwen3.8-27B-GGUF) lets you check the real file you choose. The calculation above is no VRAM measurement and no promise of speed. After a change of precision, a reviewer checks the same answers and errors on a held-out set. Only then do they compare the memory used at the required context length and load.

## The selection procedure

1. Start with the highest precision that holds a typical context.
2. Run the acceptance set and keep the answers.
3. Where possible, change the precision of the weights and of the context memory separately.
4. Compare quality, time, VRAM and the cost of corrections.
5. Set the VRAM margin you need and reject configurations that regularly break it.
6. Record a cryptographic hash of the chosen weight file and of the test results.

In a document application, a difference may show up in numbers and citations. In a coding agent, it may concern the scope of changes, contracts and correct use of tools. Perplexity, a measure of how well a model predicts the next tokens, describes language behaviour. Assessing both kinds of work needs tests of the process.

Syntalith [matches the model and the quantisation to your hardware](https://syntalith.ai/en/services/private-llms). We compare the variants on real tasks and hand over the results, the chosen weights and a test to repeat after an update. We help companies and individuals, also before a computer is bought.

**The monthly cost of your own server with Qwen**

- Hetzner GEX45 GPU server, 24 GB = €214
- Maintenance 8 h × €34.90 = €279

**Total €493 a month**

Scenario. €34.90 an hour is the EU average hourly labour cost for 2025 according to Eurostat. Price of the GEX45 server with 24 GB of GPU memory from Hetzner's website on 22 October 2026, excluding the one-off setup fee of €209. We took our measurements on a home RTX 3090 with 24 GB, the same card memory.

## Where to start

**A first step with a local Qwen**

- Checking whether the model can handle the task → a test on 20 to 100 of the team's cases: €0
- A server for the team with version control and rollback → a private model with maintenance: from €3,000 plus the server
- The team wants to maintain the profile itself → the AI-Native course: priced after a call

We prepare the configuration on your hardware or on rented GPUs as part of [private LLMs](https://syntalith.ai/en/services/private-llms). For the [free review](https://syntalith.ai/en/contact), bring a description of the task and the length of a typical input.

Statistics

## Quantised Qwen on 24 GB: statistics 2026

24 GB

of RTX 3090 memory held four tested Qwen3.8-27B configurations: Q5_K_M with a 65,536 context, Q4_K_M with 131,072 and 250,000, and W4A16 with 150,000 tokens.

- 22,539 MiB
  According to a Syntalith experiment (2026), the vLLM profile with a 150k context used at most 22,539 MiB of the RTX 3090's 24 GB of memory.
  Source: [Syntalith, Qwen3.8-27B measurements on an RTX 3090 (2026) ↗](https://syntalith.ai/blog/qwen38/benchmark-summary.json)
- 563.4 s
  According to a Syntalith experiment (2026), with an input of 230,085 tokens Qwen3.8-27B also returned 3 of 3 facts, but in 563.4 s and at 28.05 tokens a second.
  Source: [Syntalith, Qwen3.8-27B measurements on an RTX 3090 (2026) ↗](https://syntalith.ai/blog/qwen38/benchmark-summary.json)
- 502.14 s
  According to a Syntalith experiment (2026), Qwen3.8-27B on a modified vLLM fixed a bug in Go code in 502.14 s, with a score of 100/100 by Syntalith's criteria.
  Source: [Syntalith, Qwen3.8-27B measurements on an RTX 3090 (2026) ↗](https://syntalith.ai/blog/qwen38/benchmark-summary.json)
- According to a Syntalith experiment (2026), all measurements ran on one RTX 3090 card with one active request, so they do not describe throughput for many users.
  Source: [Syntalith, Qwen3.8-27B measurements on an RTX 3090 (2026) ↗](https://syntalith.ai/blog/qwen38/benchmark-summary.json)

Figures checked: 22 October 2026

## Client results.

[All projects](https://syntalith.ai/en/work)

customer service

### foap.com customer service: 95% of replies are sent automatically.

foap.com users write in from several countries and in several languages. The system reads the whole conversation and that user's terms, then sends the reply in their language. Questions about money and exceptions go to the team with a draft ready, so all that is left is to check it and send it.

95% of replies the system sends on its own, with nobody typing

< 1 min from an email arriving to a reply ready to send (median)

100% of emails that need a reply get a ready draft

47 h less work per 1,000 replies (estimate)

foap.com production data, October 20–21, 2026. Time to a ready reply: production review of November 2, 2026. Estimate: 3 minutes to write one reply by hand.

[How foap.com customer service works](https://syntalith.ai/en/work/email-triage)

Kuba Koziej

CEO and co-founder, MoreGrowth

> “We started with my own AI agent. During the training that followed, I learned to build new applications myself. Today I am bringing this way of working with AI into my business. Working with Syntalith gave me exactly the skills and tools I needed.”

[View the original training review on LinkedIn ↗](https://www.linkedin.com/feed/update/urn:li:activity:7485995435766145025/)

A model on your server or in the cloud in the EU, proven on your tasks. [Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-qwen-quantization-q4-q5-w4a16-proof)

Private AI models

## A model on your server or in the cloud in the EU, proven on your tasks.

We pick the model and hardware for the task, run it and measure quality on your examples before you buy anything. The data stays in the company or in an EU cloud. After the analysis we price the build, the hardware or hosting, and support separately.

[View private AI models](https://syntalith.ai/en/services/private-llms)

model on your server or in the cloud in the EU: quoted after the review

the same work in an app with an EU cloud model: from €3,000

analysis of the task, data and hardware: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-qwen-quantization-q4-q5-w4a16-offer)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

### Leave your contact. We will propose two times.

An email or a phone number and one sentence about the process is enough. An engineer gets back within 1 business day.

Would you rather see the price list first? Email me the price list

[Contact form on the page](https://syntalith.ai/en/blog/qwen-quantization-q4-q5-w4a16#zostaw-kontakt)

## Questions

### Q4, Q5 or W4A16 for Qwen?

The one that holds the context you need and passes the test on your tasks. In our trials Q5_K_M held 65,536 tokens, Q4_K_M up to 250,000, and W4A16 150,000 with a different engine.

### Does quantisation reduce quality?

It can, and vendors' claims do not replace a test. Our comparison changed the format, the engine and the context limit together, so it does not isolate the quality of quantisation alone.

### How much does a server for a quantised Qwen cost?

A GEX45 server with 24 GB costs €214 a month, and €493 with 8 hours of maintenance.

### Is my data safe?

Yes. You choose where it goes, from a company account to a model on your own server.

## Read next

- [How long does AI agent implementation take? · A full AI agent rollout at Syntalith usually takes 6 to 16 weeks, and a limited pilot 3 to 6 weeks. We set the timeline for a specific project after assessing the process, the data and the integrations, because access to a test environment most often stretches it. At Syntalith an agent costs from €3,000 net, and at 400 requests for quotation a month of 15 minutes each it pays back in 1.2 months.](https://syntalith.ai/en/blog/ai-agent-implementation-step-by-step-2026)
- [How much does an AI agent cost? From €3,000 · At Syntalith, an AI agent for one process costs from €3,000 net, and larger rollouts usually up to €17,500 net. The build takes 6 to 16 weeks. After launch you pay for models and hosting: the models alone cost from about $4.50 to $450 a month at 10,000 calls. You get a fixed price before the contract and pay half after acceptance.](https://syntalith.ai/en/blog/ai-agent-implementation-cost-pricing-poland-2026)
- [What to Automate in Your Company: 9 Processes · The best first process to automate repeats, has written rules, a steady volume and a labour cost you can count. Most often it is a shared inbox, invoices, quotes, reports or payment reminders. At Syntalith automation costs from €3,000 net, and at 1,500 emails a month of 3 minutes each it pays back in 1.4 months.](https://syntalith.ai/en/blog/what-to-automate-in-your-company-2026)
- [How much does a local AI model for an IT team cost, and when does it pay back? · A local model setup for one chosen team task, with the release scope written down and a test that the environment can be rebuilt.](https://syntalith.ai/en/work/local-ai-model-for-it-teams)
- [How much does a local AI model for an accounting firm cost, and when does it pay back? · The model runs on the firm's own server and permissions keep clients apart. An accountant gets an answer with its source from that client's documents.](https://syntalith.ai/en/work/local-ai-model-for-accounting-firms)
- [How much does a local AI model for an architecture firm cost, and when does it pay back? · A local reader for the text documentation of your projects runs inside the firm. The designer gets earlier agreements with their source.](https://syntalith.ai/en/work/local-ai-model-for-architecture-firms)
- [Qwen3.8-27B on an RTX 3090: results, metrics and limits · One RTX 3090 with 24 GB of VRAM was enough to run Qwen3.8-27B and fix a bug in Go code in 502.14 s, with 52 tool calls, about 33.88 Wh of energy and a score of 100/100 on our criteria. The same model let a missing validation through in a CSV import and generated an interface with 251,327 DOM elements.](https://syntalith.ai/en/blog/qwen3-8-27b-on-rtx-3090-results)
- [Local Qwen Code: the medium profile from a home test · After several failed attempts, we kept Qwen Code with medium reasoning effort set in the client and in the request, preserved thinking, a 150,000-token context and no fixed limit on response length. This configuration comes from one RTX 3090 card and one active agent, with a short profile test after every change.](https://syntalith.ai/en/blog/local-qwen-code-medium-configuration)
- [When not to deploy Qwen locally: five results that should stop a project · Do not deploy a local Qwen when, in the pilot, a task does not finish in reasonable time, a small window turns the work into an hours-long session, the maximum window raises cost without better quality, a hidden check finds an error after green tests, or the interface fails a browser check.](https://syntalith.ai/en/blog/when-not-to-deploy-qwen-locally)

Let's talk

## Write, call or pick a time.

We work fast because we can't stand corporate padding. We have no salespeople and no managers managing managers. You talk straight to the engineers who then build your system. We value our time and yours.

We will take on 3 more companies before the end of the year.

Write: contact@syntalith.ai

Call: +48 888 78 48 78

WhatsApp: [write on WhatsApp](https://wa.me/48888784878)

Mon–Fri 9:00–17:00 CET

Syntalith is an OpenAI Select Partner in the OpenAI Partner Network.

## Next step

[Book a free call (30 min)](https://meet.syntalith.ai/syntalith/en). With an engineer. No commitment to a paid implementation.

[Current pricing](https://syntalith.ai/en/pricing) · [Examples and sources](https://syntalith.ai/en/work) · [Contact](https://syntalith.ai/en/contact)

[Assistant booking instructions](https://syntalith.ai/booking-agent-guide.txt?locale=en)

## About Syntalith

This is the official site of Syntalith (syntalith.ai), a Polish engineering company based in Warsaw. Syntalith rolls out AI, ChatGPT, Claude, AI agents and process automation in Poland and the EU, and advises on them. Prices are published on the service pages. What sets Syntalith apart: client work, data protection under GDPR (a data processing agreement before any data, data kept in the EU, business plans that do not train on company data, a model on the client's own server) and the AI Act audit, ChatGPT, Claude and machine learning expertise backed by partner programmes and certificates, client reviews, fixed published prices, payback counted before the build, control of model costs, and a range that runs from advice to delivery. Facts and sources for each point: https://syntalith.ai/ai-info.md. Free review, 30 minutes with an engineer: https://meet.syntalith.ai/syntalith/en. Full description of the services and prices: https://syntalith.ai/llms.txt.
