Jais-3-0.9B NVFP4A16 (GPTQ with capped first-token statistics, weights only)

NVFP4 quantization of inception42/Jais-3-0.9B, made by PureTensor from the official BF16 weights. Weights are 4-bit; activations stay 16-bit (W4A16). The file is 0.89 GB against 2.16 GB for BF16.

This is a test release. It is not affiliated with or endorsed by the model's authors.

Read this first: this is the smallest model of the family and the hardest to quantize. This checkpoint is 2.5 points below BF16 on MMLU, 2.1 on ArabicMMLU and 3.0 on GSM8K. A standard GPTQ recipe loses 11 to 25 points on this model, or fails completely, depending on the calibration text. The section "Why the standard recipe fails here" explains what we changed.

What was done

Source inception42/Jais-3-0.9B, BF16
Format compressed-tensors nvfp4-pack-quantized, scheme NVFP4A16: 4-bit E2M1 values, one FP8 E4M3 scale per group of 16, one FP32 scale per tensor
Quantized the weights of every Linear layer in the 28 transformer blocks
Kept in BF16 token embeddings and output head, all norms, all activations
Method GPTQ (block_size 128, dampening_frac 0.01, actorder static) with a cap on per-token weight in the calibration statistics (below)
Calibration 2,048 samples, up to 2,048 tokens each: 1,024 Arabic instruction and answer pairs (the first rows of arbml/CIDAR) and 1,024 from mlabonne/open-perfectblend. Every second row is given as raw text with no chat template and no start-of-text token; the others are chat-formatted
Tools llm-compressor 0.15.0, compressed-tensors 0.20.1, transformers 5.21.0, torch 2.14.1

The base model's chat template requires a thinking field on assistant turns. For calibration and evaluation text we passed an empty reasoning_content.

Measured quality

One harness, BF16 as reference. The saved checkpoint reloaded from disk to logits identical to the in-memory quantized model, and the benchmarks below were run on the reloaded file.

BF16 This checkpoint Change Paired test
ArabicMMLU, accuracy (14,455 questions) 47.00 44.92 -2.08 1,251 lost, 950 gained, p = 2e-10
GSM8K, exact match (1,319 problems) 45.49 42.46 -3.03 164 lost, 124 gained, p = 0.02
MMLU, accuracy (14,042 questions) 47.24 44.74 -2.50 1,066 lost, 715 gained, p = 9e-17
WikiText-2 perplexity (131,072 tokens) 15.37 16.08 +0.71
Text Tokens Mean KL divergence 99th percentile KL Same top token as BF16
WikiText-2 test (English) 131,072 0.079 0.60 85.8%
Chat (HuggingFaceH4/ultrachat_200k, test_sft, 256 conversations, English) 243,954 0.070 0.62 88.0%
Arabic (arbml/CIDAR, 256 pairs from row 9,000 on) 72,413 0.101 0.93 84.2%
WikiText-2 test without the start-of-text token 130,944 0.083 0.68 85.4%
  • Benchmarks: default arabicmmlu, mmlu and gsm8k configurations of lm-evaluation-harness 0.4.13, no chat template, GSM8K flexible-extract. This model's tokenizer does not add the start-of-text token, so these benchmark prompts run without it. The paired test is an exact McNemar test on per-question correctness.
  • KL divergence: full next-token distribution, teacher-forced, windows of 1,024 tokens. The first three rows begin with the start-of-text token, the last does not. The Arabic and chat sets share a dataset family with the calibration data (different rows), so those two rows are flattering; ArabicMMLU, MMLU and WikiText are unrelated to it.
  • A second build of the same recipe on different calibration rows (not published) scored 44.86 on MMLU, 44.01 on ArabicMMLU and 43.37 on GSM8K, so the numbers above are not one lucky draw.

Why the standard recipe fails here

GPTQ picks 4-bit values that keep each layer's output unchanged on the calibration inputs, weighting every input by its size. In this model one early MLP layer receives an input at the first token position whose squared norm is millions of times that of any other position. That one token then makes up more than 99.9% of the layer's calibration statistics.

Which layer it is depends on how the text starts: block 1 when the prompt begins with the start-of-text token, block 3 when it does not. Chat-formatted text always begins with that token. This model's tokenizer does not add it, so raw completions and standard benchmarks run in the other regime. A quant calibrated only on chat-formatted text never sees that regime and breaks on it.

We measured four builds of this model in the same harness:

Calibration MMLU ArabicMMLU GSM8K KL without the start-of-text token
BF16 reference 47.24 47.00 45.49 0
Standard GPTQ, every row chat-formatted 23.74 30.80 0.08 2.07
Standard GPTQ, every second row raw text 33.88 36.01 20.92 0.136
Round-to-nearest, no calibration 43.63 40.97 31.99 0.141
Capped statistics, every second row raw text (this checkpoint) 44.74 44.92 42.46 0.083

The cap: while GPTQ accumulates its statistics for a layer, any token whose input norm is more than 4 times the median norm of its sequence is scaled down to that limit. Only the statistics change. The model's own computation during calibration is untouched, and nothing is added at inference. Caps from 1 to 16 gave the same result.

recipe.yaml records the GPTQ settings but not the cap, which is a small wrapper around llm-compressor's calibration hook:

from llmcompressor.modifiers.gptq.base import GPTQModifier

CAP = 4.0
_orig = GPTQModifier.calibrate_module

def calibrate_module(self, module, args, _output):
    inp = args[0]
    if inp.dim() == 3:
        n = inp.float().norm(dim=-1, keepdim=True)
        med = n.median(dim=1, keepdim=True).values
        inp = inp * (CAP * med / n.clamp_min(1e-12)).clamp(max=1.0).to(inp.dtype)
    return _orig(self, module, (inp, *args[1:]), _output)

GPTQModifier.calibrate_module = calibrate_module

On the larger models of this family (3.7B, 7B) and on an unrelated 2B model the same cap made no reliable difference, so we treat it as a fix for this failure, not as a general improvement.

Related work

We discovered this independently on 20 November 2026, while diagnosing the failure described above, and only then searched for earlier work. We were not first:

  • The GPTQModel project reported the same diagnosis on 16 November 2026: on another model, the start-of-text row made up 99.0 to 99.97% of one down-projection layer's Hessian norm and GPTQ did worse than round-to-nearest (issue 4393). The next day it merged a cap on calibration row norms at 4 times the median (pull request 4909), the same idea and the same constant as the cap used here.
  • The MiniCPM4 paper (arXiv 2506.07900, section 4.1.2, June 2025) describes initial tokens distorting the GPTQ Hessian of down-projection layers and leaves the first four positions out of it.
  • The large first-token activations themselves are described in Massive Activations in Large Language Models (2024).

What this card adds is a measured case: the failure on prompts without the start-of-text token, and benchmark results for the cap on this model.

Usage

vLLM:

vllm serve PureTensorAI/Jais-3-0.9B-NVFP4A16 --trust-remote-code

Transformers (requires pip install compressed-tensors):

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "PureTensorAI/Jais-3-0.9B-NVFP4A16"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).to("cuda")

msgs = [{"role": "user", "content": "لخّص دورة الماء في جملتين."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True).to("cuda")
out = model.generate(**ids, max_new_tokens=256)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))

Limitations

  • Quality is 2 to 3 points below BF16 on all three benchmarks, as measured above. The larger models of the family lose much less at 4 bits: see Jais-3-7B-NVFP4A16 and Jais-3-32B-NVFP4A16.
  • This file was not benchmarked on a serving engine. It uses the same format as our other Jais-3 quants, which vLLM 0.34.0 serves with its weight-only FP4 kernel. An earlier weights-only build of this model served 1.28 times faster than BF16 single-stream there.
  • In Transformers the weights are expanded back to 16-bit at load, so there the saving is disk and download size only.
  • No safety, dialect, or long-context evaluation was run on the quantized model.

License

Apache-2.0, as the base model. Changes from the base release: the Linear weights are quantized to NVFP4 and stored packed, and config.json gains a quantization_config block.

Downloads last month
52
Safetensors
Model size
1B params
Tensor type
BF16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for PureTensorAI/Jais-3-0.9B-NVFP4A16

Quantized
(7)
this model

Collection including PureTensorAI/Jais-3-0.9B-NVFP4A16

Papers for PureTensorAI/Jais-3-0.9B-NVFP4A16