Skip to page content
SAVRN
Search Plan a project

Open-weight model · Text generation

Qwen3-Coder-Next-CQ-4bit

by ThousandML thousandml/Qwen3-Coder-Next-CQ-4bit

Qwen3-Coder-Next-CQ-4bit is an open-weight model for text generation from ThousandML, released under Apache License 2.0. It has 752M parameters and a 262,144-token context. At 16-bit it needs about 1.8 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 80 downloads a month.

Qwen3-Coder-Next quantized to 4-bit with Coded Quantization (CQ). CQ is a calibration-free 4-bit quantization method designed to preserve the behavior of the original model without requiring a calibration dataset.

Parameters752M
Context262,144
Weights41.6 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads80

Runs On

What it takes to serve Qwen3-Coder-Next-CQ-4bit (752M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 1.5 GB 1.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.8 GB 0.9 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.4 GB 0.5 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Oct 16, 2026.

Qwen3-Coder-Next-CQ-4bit on every accelerator the SAVRN Index prices, at every precision

Model Card

By ThousandML, published under apache-2.0, revision abeef0da9162.

Qwen3-Coder-Next quantized to 4-bit with Coded Quantization (CQ). CQ is a calibration-free 4-bit quantization method designed to preserve the behavior of the original model without requiring a calibration dataset. Because CQ does not optimize the quantization around a fixed calibration corpus, it is designed to generalize beyond calibration-specific data and workloads. This repository contains Qwen3-Coder-Next quantized with Coded Quantization (CQ) 4-bit. Calibration-free. CQ does not require a representative calibration dataset before quantization. This avoids tying the quantization procedure to a particular calibration corpus and is intended to provide better generalization beyond the…

Read ThousandML's full model card

80B-parameter Mixture-of-Experts coding model · 3B activated parameters · Coded Quantization (CQ) 4-bit

Note on Hugging Face's model-size display: Hugging Face may report a smaller stored parameter count for this repository because CQ stores the weights in a packed 4-bit representation. The underlying model is Qwen3-Coder-Next, with approximately 80B total parameters and 3B activated parameters per token. The smaller number reflects the packed storage tensors counted by the Hub, not the parameter count of the original model architecture.

Qwen3-Coder-Next quantized to 4-bit with Coded Quantization (CQ).

ThousandML: https://thousandml.com

CQ is a calibration-free 4-bit quantization method designed to preserve the behavior of the original model without requiring a calibration dataset. Because CQ does not optimize the quantization around a fixed calibration corpus, it is designed to generalize beyond calibration-specific data and workloads.

This repository contains Qwen3-Coder-Next quantized with Coded Quantization (CQ) 4-bit.

Why CQ?

Calibration-free. CQ does not require a representative calibration dataset before quantization.

This avoids tying the quantization procedure to a particular calibration corpus and is intended to provide better generalization beyond the data that would otherwise have been used for calibration.

4-bit inference. Model weights are quantized to 4-bit for substantially lower weight memory requirements than BF16/FP16 deployment.

Native vLLM integration. CQ models run through the CQ vLLM quantization plugin and custom CUDA kernels included in the Thousandml CQ Docker image.

Model

Base model Qwen/Qwen3-Coder-Next
Original model parameters ~80B total / ~3B activated
Model type Mixture-of-Experts coding model
Quantization Coded Quantization (CQ) 4-bit
Calibration None — calibration-free
Runtime vLLM + CQ custom kernels
Quantization name cq
Context length 262,144 tokens

Run with Docker

The recommended way to run this model is with the CQ Docker image, which contains the compatible vLLM installation, CQ quantization plugin, and CQ CUDA kernels.

1. Make sure NVIDIA Docker support works

docker run --rm --gpus all \
  nvidia/cuda:13.0.2-base-ubuntu22.04 \
  nvidia-smi

Your GPU should appear in the output.

2. Start Qwen3-Coder-Next-CQ-4bit

docker run --rm --gpus all \
  -p 8000:8000 \
  docker.io/thousandml/cq:4bit-main \
  vllm serve thousandml/Qwen3-Coder-Next-CQ-4bit \
  --quantization cq

The model is then available through vLLM's OpenAI-compatible API on port 8000.

WSL2

If you are running Docker through WSL2 and vLLM reports that UVA is unavailable, enable vLLM's WSL2 pinned-memory support:

docker run --rm --gpus all \
  -e VLLM_WSL2_ENABLE_PIN_MEMORY=1 \
  -p 8000:8000 \
  docker.io/thousandml/cq:4bit-main \
  vllm serve thousandml/Qwen3-Coder-Next-CQ-4bit \
  --quantization cq

Send a request

Once the server is ready:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "thousandml/Qwen3-Coder-Next-CQ-4bit",
    "messages": [
      {
        "role": "user",
        "content": "Write a Python function that performs binary search on a sorted list."
      }
    ]
  }'

Tool calling

Qwen3-Coder-Next is designed for coding and agentic workflows and can be served with vLLM's automatic tool-choice support.

Example:

docker run --rm --gpus all \
  -p 8000:8000 \
  docker.io/thousandml/cq:4bit-main \
  vllm serve thousandml/Qwen3-Coder-Next-CQ-4bit \
  --quantization cq \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder

Hugging Face authentication

For higher Hugging Face Hub rate limits, pass your Hugging Face token into the container:

docker run --rm --gpus all \
  -e HF_TOKEN="$HF_TOKEN" \
  -p 8000:8000 \
  docker.io/thousandml/cq:4bit-main \
  vllm serve thousandml/Qwen3-Coder-Next-CQ-4bit \
  --quantization cq

On WSL2, combine it with:

-e VLLM_WSL2_ENABLE_PIN_MEMORY=1

About Coded Quantization (CQ)

Learn more at https://thousandml.com.

Coded Quantization (CQ) is a calibration-free quantization approach for efficient LLM inference.

Traditional post-training quantization methods can depend on a calibration dataset to estimate quantization parameters. The resulting quantization can therefore be influenced by the distribution and composition of that calibration data.

CQ removes that calibration-data requirement. The goal is to retain strong fidelity to the original model while allowing the quantized representation to generalize beyond any particular calibration corpus.

Base model

This checkpoint is derived from Qwen/Qwen3-Coder-Next, a Mixture-of-Experts coding model designed for software development, agentic coding, tool use, and long-context workflows.

Please refer to the original Qwen model card for architecture details, capabilities, usage guidance, limitations, and upstream licensing information.

License

The base model is released under the Apache 2.0 License. See the repository license and the original Qwen model card for applicable terms.

Configuration

Architecture
Qwen3NextForCausalLM
Context length (tokens)
262,144
Layers
48
Hidden size
2,048
Feed-forward size
5,120
Attention heads
16
Key/value heads
2
Head dimension
256
Vocabulary size
151,936
Experts
512
Experts active per token
10
Model type
qwen3_next
Quantization
cq

Identity and Version

Repository
thousandml/Qwen3-Coder-Next-CQ-4bit
Publisher
ThousandML
Task
Text generation
Modality
Text
Library
Not stated by the source
Parameters
752M parameters
Languages
cq
Revision
abeef0da9162e649adf428c8e61e106c10fac57e
First published
2026-08-30
Last updated
2026-10-16

Files and Weights

62 files, 41.7 GB in total. The weights are 48 files totalling 41.6 GB in safetensors.

Weights48 files · 41.6 GB
Configuration7 files · 106.5 MB
Tokenizer4 files · 11.5 MB
Documentation1 file · 5.6 KB
Other1 file · 6.1 KB
Repository1 file · 1.7 KB
Every file
FileTypeSizeSHA-256
model-00001-of-00040.safetensorsWeights732.2 MB d089856a48ce
model-00002-of-00040.safetensorsWeights2.6 MB 0aa562bc2831
model-00003-of-00040.safetensorsWeights2.3 MB c0656b206de9
model-00004-of-00040.safetensorsWeights4.7 MB fc3145044766
model-00005-of-00040.safetensorsWeights4.7 MB 3f65b870e817
model-00006-of-00040.safetensorsWeights6.8 MB 7c778daa5f28
model-00007-of-00040.safetensorsWeights4.7 MB 48989bb07ea4
model-00008-of-00040.safetensorsWeights6.8 MB 2af728b9ad4c
model-00009-of-00040.safetensorsWeights2.6 MB 3ba96d2812ce
model-00010-of-00040.safetensorsWeights2.3 MB 041d63569fc5
model-00011-of-00040.safetensorsWeights5.1 MB 6b0df7959adf
model-00012-of-00040.safetensorsWeights2.6 MB 3dd192ceae0f
model-00013-of-00040.safetensorsWeights2.3 MB 023e8ccdf837
model-00014-of-00040.safetensorsWeights2.6 MB 8ddd6db7a242
model-00015-of-00040.safetensorsWeights7.2 MB 27e3206063e3
model-00016-of-00040.safetensorsWeights4.4 MB 091295c39817
model-00017-of-00040.safetensorsWeights4.7 MB be3b9893c257
model-00018-of-00040.safetensorsWeights4.7 MB f0688a7e3b52
model-00019-of-00040.safetensorsWeights2.6 MB e035eea6362b
model-00020-of-00040.safetensorsWeights4.8 MB c9d9af880f54
model-00021-of-00040.safetensorsWeights2.6 MB e0ed4126c9a1
model-00022-of-00040.safetensorsWeights2.6 MB 3b7d155e30eb
model-00023-of-00040.safetensorsWeights2.3 MB 2bbc910a57f0
model-00024-of-00040.safetensorsWeights2.6 MB 83a42eb458eb
model-00025-of-00040.safetensorsWeights7.2 MB b42dcf61f0c0
model-00026-of-00040.safetensorsWeights4.4 MB e92fc5b49368
model-00027-of-00040.safetensorsWeights6.8 MB 2d59afdbafbc
model-00028-of-00040.safetensorsWeights2.6 MB 565840247475
model-00029-of-00040.safetensorsWeights4.8 MB 1fda22b76e88
model-00030-of-00040.safetensorsWeights2.6 MB d8f3fa533690
model-00031-of-00040.safetensorsWeights2.6 MB 864f05b58a8f
model-00032-of-00040.safetensorsWeights2.6 MB a1c8ea17612f
model-00033-of-00040.safetensorsWeights2.3 MB 3b8e63ccf7c6
model-00034-of-00040.safetensorsWeights5.1 MB 104d0bdee67e
model-00035-of-00040.safetensorsWeights2.6 MB 0a4c786a33c3
model-00036-of-00040.safetensorsWeights2.3 MB c10aab8aff39
model-00037-of-00040.safetensorsWeights2.6 MB 7f7d0d23bf40
model-00038-of-00040.safetensorsWeights2.6 MB 86b142875e5d
model-00039-of-00040.safetensorsWeights8.9 MB 397ec16d0693
model-00040-of-00040.safetensorsWeights630.9 MB 52182b38ecb2
quantization_data/cq-inc-0001-00001-of-00008.safetensorsWeights5.4 GB a3ba20635e74
quantization_data/cq-inc-0001-00002-of-00008.safetensorsWeights5.4 GB e5cd4e9a38be
quantization_data/cq-inc-0001-00003-of-00008.safetensorsWeights5.4 GB af867d47b473
quantization_data/cq-inc-0001-00004-of-00008.safetensorsWeights5.4 GB 3bac5239a4c6
quantization_data/cq-inc-0001-00005-of-00008.safetensorsWeights5.4 GB 69a25db64984
quantization_data/cq-inc-0001-00006-of-00008.safetensorsWeights5.4 GB 6dda37604498
quantization_data/cq-inc-0001-00007-of-00008.safetensorsWeights5.4 GB 6819160d9dc5
quantization_data/cq-inc-0001-00008-of-00008.safetensorsWeights2.4 GB fe3571cc1839
config.jsonConfiguration2.8 KB —
generation_config.jsonConfiguration214 B —
model.safetensors.index.jsonConfiguration6.8 MB —
quantization_data/_layers.jsonConfiguration3.4 MB —
quantization_data/cq_shards.jsonConfiguration96.3 MB b6133e454340
qwen3_coder_detector_sgl.pyConfiguration19.9 KB —
qwen3coder_tool_parser_vllm.pyConfiguration31.7 KB —
README.mdDocumentation5.6 KB —
chat_template.jinjaOther6.1 KB —
.gitattributesRepository1.7 KB —
merges.txtTokenizer1.7 MB —
tokenizer.jsonTokenizer7.0 MB —
tokenizer_config.jsonTokenizer11.7 KB —
vocab.jsonTokenizer2.8 MB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
41.6 GB
Download from ThousandML

Released by ThousandML through its official repository on Hugging Face. Read the license.

Built From

  • Derived from Qwen/Qwen3-Coder-Next
  • Quantized from Qwen/Qwen3-Coder-Next

Memory Requirements

PrecisionWeights in memory
As published41.6 GB
16-bit1.5 GB
8-bit0.8 GB
4-bit0.4 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Qwen3-Coder-Next-CQ-4bit

How much GPU memory does Qwen3-Coder-Next-CQ-4bit need?

About 1.8 GB at 16-bit and 0.5 GB at 4-bit: the weights (752M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Qwen3-Coder-Next-CQ-4bit on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Qwen3-Coder-Next-CQ-4bit commercially?

Yes. Qwen3-Coder-Next-CQ-4bit is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is Qwen3-Coder-Next-CQ-4bit's context length?

262,144 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

dQwen3.5-0.8B-Base

IFML

A masked diffusion language model adapted from Qwen3.5-0.8B. The backbone is hybrid: only its attention layers are made bidirectional, and the Gated DeltaNet layers stay causal. This is a base model, with no instruction tuning. Paper: dQwen3.5: Hybrid-Attention Diffusion Language Models. Code: https://github.com/AntonXue/dQwen Needs a CUDA GPU and transformers>=5.13 (tested with torch 2.7.1+cu128, flash-linear-attention 0.5.1). generate decodes the whole canvas at once, committing positions above a confidence threshold (tau=0.9); pass blocklength=32 for left-to-right block decoding, or tau=None, stepsperblock=k for a fixed budget. The 50B-token checkpoint from the paper is…

Open weights apache-2.0 752M parameters 262,144 tokens transformers

This is a separate research bf16 LoRA adapter (r=16, alpha=32) on Qwen/Qwen3.5-0.8B, trained with Unsloth on a laptop Blackwell GPU, with a derived merged artifact also present in the repository. "Placeholder" describes release status, not absence of weights. It does not overwrite ReceiptAgent v2 Sizes were read from the Hub listing; no weight file was downloaded or hashed by this pass, and the revision SHA was not captured. The Hub-hosted banner referenced by the szl-forge card (holo-banner.svg) is not on this tree, so it is not embedded here. The training receipt records 180 training rows and train loss 0.0537. Training loss is not evaluation. The receipt describes the local laptop…

Open weights apache-2.0 752M parameters 262,144 tokens peft

Model · Text generation

hydra-nano-git

Rahul kumar

A 0.75B-parameter local model that lets a coding agent hand off routine, read-only repository work. Hydra Nano is the model behind Hydra, a CLI that a frontier coding agent (Claude Code, Codex and others) calls instead of running noisy commands itself. Hydra asks the model to choose from a fixed menu of read-only probes, runs those probes in code, and returns the command's own output lines. The model never writes a shell command. One model serves all five Hydra heads: All figures are end-to-end Hydra results: the task counts as solved only when the probe plan is right and the returned evidence contains every expected fact with nothing forbidden. Errors and timeouts count as failures. Every…

Open weights apache-2.0 752M parameters 262,144 tokens transformers

Model · Text generation

petal-w1-4bit

Aayush Pokharel

petal-w1 turns raw dictation into the text you meant to type. It is the on-device cleanup model in Petal, a free macOS dictation app. It runs with MLX on Apple silicon. It is a full fine-tune of Qwen3.5-0.8B, and it does one job: - Removes fillers, stutters, false starts, and verbal tics ("you know what I mean?"). - Keeps only the final version of a self-correction ("Friday, no wait, Thursday" becomes "Thursday"), also when speech recognition mishears the correction words. - States a point once when the speaker repeats it in different words, and keeps every detail. - Condenses rambles into clear sentences, and keeps every fact, name, number, and request. - Keeps questions as questions and…

Open weights apache-2.0 752M parameters 262,144 tokens mlx

Model · Text generation

petal-w1

Aayush Pokharel

petal-w1 turns raw dictation into the text you meant to type. It is the on-device cleanup model in Petal, a free macOS dictation app. It runs with MLX on Apple silicon. It is a full fine-tune of Qwen3.5-0.8B, and it does one job: - Removes fillers, stutters, false starts, and verbal tics ("you know what I mean?"). - Keeps only the final version of a self-correction ("Friday, no wait, Thursday" becomes "Thursday"), also when speech recognition mishears the correction words. - States a point once when the speaker repeats it in different words, and keeps every detail. - Condenses rambles into clear sentences, and keeps every fact, name, number, and request. - Keeps questions as questions and…

Open weights apache-2.0 752M parameters 262,144 tokens mlx

Model · Text generation

qwen3p5-0p8b-medical-mlp5

Aditya G

Qwen/Qwen3.5-0.8B fine-tuned directly (no LoRA/adapters) on medical reasoning data, to turn a general-purpose model into a domain-focused one. Overfitting to the training data was an accepted trade-off of this experiment; the goal was to study the training/validation loss behaviour. Loss is computed on the assistant response only (reasoning + answer); the prompt is masked. Best validation loss at epoch. See losscurve.png for train vs validation loss. - Research into domain adaptation, partial fine-tuning, and overfitting behaviour of small models. - Offline experimentation with medical-style question answering and reasoning formats. - Clinical decision support, diagnosis, treatment…

Open weights apache-2.0 752M parameters 262,144 tokens transformers