This is a
simulated 2-bit
quantized version of
moonshotai/Kimi-K2.5
, produced using
GSQ
, a learned post-training quantization method. The model weights are stored in
compressed-tensors
format and are compatible with vLLM for inference.
Note — Simulated quantization:
The quantization was optimized at 2-bit precision during training, but the resulting weights are serialized into a 4-bit packed integer format (
int32
with 8 values per element) via compressed-tensors. At inference time, vLLM loads and dequantizes from this 4-bit container. The weight values themselves only use 4 distinct levels (matching true 2-bit), but the on-disk and in-memory representation is 4-bit — there is no memory or storage saving beyond INT4 in this checkpoint.
Evaluated on a 128-sample held-out split during quantization, measured every 6 layers as quantization progressed:
Checkpoint
WikiText-2 PPL
Dense baseline
1.734
After layer 6
1.734
After layer 12
1.733
After layer 24
1.733
After layer 36
1.735
After layer 48
1.741
After layer 60 (final)
1.749
The final 2-bit quantized model retains perplexity within 0.015 of the dense baseline (< 1% relative degradation).
Quantization Details
This model was quantized using
GSQ
, a learned post-training quantization method. Quantization was applied independently to each transformer layer using 4,096 calibration samples of sequence length 4,096 from the
OpenThoughts
dataset, with group size 128.
Only the MoE expert feed-forward weights (
gate_proj
,
up_proj
,
down_proj
) in layers 1–60 are quantized. The following components are kept in original precision:
Attention projections (
self_attn
)
Embeddings and the LM head
Layer norms
The shared expert
Layer 0's dense MLP
All vision tower and multimodal projector weights
Usage
This model requires
vLLM
for inference. Because Kimi-K2.5 uses a custom model architecture (
kimi_k25
), you must pass
--trust-remote-code
.
While the MoE expert weights are quantized to 2-bit, the attention, embedding, and norm weights remain in bfloat16, so the on-disk size is ~511 GB and the model still requires substantial GPU memory. In our testing,
8× NVIDIA GH200 96 GB GPUs
(2 nodes with tensor parallelism 8) are needed for serving.
--tokenizer-mode hf
: Required to prevent garbled output on extended serving sessions (vLLM issue
#35718
).
--mm-encoder-tp-mode data
: Required for Kimi-K2.5's vision encoder — ViT dimensions are not evenly divisible by the tensor-parallel size, which causes cuBLAS errors without this flag.
--max-model-len 4096
: Adjust upward if GPU memory permits; 4096 is what was used during our testing.
--distributed-executor-backend ray
: Required for multi-node serving.
Offline inference with vLLM
from vllm import LLM, SamplingParams
llm = LLM(
model="daslab-testing/Kimi-K2.5-2bit-GSQ",
trust_remote_code=True,
tensor_parallel_size=8,
tokenizer_mode="hf",
mm_encoder_tp_mode="data",
max_model_len=4096,
gpu_memory_utilization=0.85,
)
sampling_params = SamplingParams(temperature=0.6, top_p=0.95, max_tokens=1024)
outputs = llm.generate(["Explain the concept of entropy in thermodynamics."], sampling_params)
print(outputs[0].outputs[0].text)
Chat template
Kimi-K2.5 uses its own tokenizer and chat template. Use the tokenizer bundled with this repository:
This is a research quantization, not a production-ready release. Expect some quality degradation relative to the full-precision model, particularly on tasks requiring precise arithmetic or complex multi-step reasoning.
Vision/multimodal capabilities have not been evaluated post-quantization (only the language model weights were quantized).
The model uses a custom architecture; some inference frameworks other than vLLM may not support it without modification.
Kimi-K2.5-2bit-GSQ huggingface.co is an AI model on huggingface.co that provides Kimi-K2.5-2bit-GSQ's model effect (), which can be used instantly with this daslab-testing Kimi-K2.5-2bit-GSQ model. huggingface.co supports a free trial of the Kimi-K2.5-2bit-GSQ model, and also provides paid use of the Kimi-K2.5-2bit-GSQ. Support call Kimi-K2.5-2bit-GSQ model through api, including Node.js, Python, http.
Kimi-K2.5-2bit-GSQ huggingface.co is an online trial and call api platform, which integrates Kimi-K2.5-2bit-GSQ's modeling effects, including api services, and provides a free online trial of Kimi-K2.5-2bit-GSQ, you can try Kimi-K2.5-2bit-GSQ online for free by clicking the link below.
daslab-testing Kimi-K2.5-2bit-GSQ online free url in huggingface.co:
Kimi-K2.5-2bit-GSQ is an open source model from GitHub that offers a free installation service, and any user can find Kimi-K2.5-2bit-GSQ on GitHub to install. At the same time, huggingface.co provides the effect of Kimi-K2.5-2bit-GSQ install, users can directly use Kimi-K2.5-2bit-GSQ installed effect in huggingface.co for debugging and trial. It also supports api for free installation.