KW

KwaiCoder AutoThink Preview

KwaicoderGGUF by bartowskiUpdated 2025-06-10
Download on Hugging Face
Parameters40.6B
Context32K
Layers80
Architectureqwen2
Smallest quant11.1 GB
Quick answer

KwaiCoder AutoThink Preview needs about 27.8 GB of memory at Q4_K_M (a 24.6 GB file) with an 8K context window, so it fits on a 32 GB GPU. This repository has 27 quants, from 11.1 GB (IQ2_XXS) to 81.1 GB (BF16). Longer context needs more: at 32K tokens the KV cache alone adds about 10.7 GB.

40.6B Qwen2 model focused on coding tasks

KwaiCoder AutoThink Preview is a 40.6B parameter Qwen2 model designed for code generation. It dynamically adjusts reasoning depth based on input difficulty. The model is available in multiple GGUF quantizations.

Good at

  • Code generation
  • Dynamic reasoning
  • Large context support

Limits

  • No vision support
  • License is MIT but model license applies
  • Requires 8k context for estimates

Best for

  • Developers needing code suggestions
  • Automated coding assistants
  • Debugging help

Who it’s for. Engineers and developers who need a large‑scale LLM for coding tasks. The model is suitable for integration into IDE plugins or code review tools.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
IQ2_XXS11.1 GB 14.3 GB
Too big Get file →
IQ2_XS12.2 GB 15.4 GB
Too big Get file →
IQ2_S12.8 GB 15.9 GB
Too big Get file →
IQ2_M13.9 GB 17.0 GB
Too big Get file →
Q2_K15.2 GB 18.4 GB
Too big Get file →
IQ3_XXS15.9 GB 19.1 GB
Too big Get file →
Q2_K_L16.0 GB 19.2 GB
Too big Get file →
IQ3_XS16.9 GB 20.1 GB
Too big Get file →
Q3_K_S17.9 GB 21.0 GB
Too big Get file →
IQ3_M18.3 GB 21.5 GB
Too big Get file →
Q3_K_M19.7 GB 22.9 GB
Too big Get file →
Q3_K_L21.3 GB 24.5 GB
Too big Get file →
IQ4_XS21.9 GB 25.0 GB
Too big Get file →
Q3_K_XL22.0 GB 25.2 GB
Too big Get file →
IQ4_NL23.1 GB 26.3 GB
Too big Get file →
Q4_023.1 GB 26.3 GB
Too big Get file →
Q4_K_S23.3 GB 26.4 GB
Too big Get file →
Q4_K_M24.6 GB 27.8 GB
Too big Get file →
Q4_K_L25.1 GB 28.3 GB
Too big Get file →
Q4_125.5 GB 28.7 GB
Too big Get file →
Q5_K_S28.0 GB 31.2 GB
Too big Get file →
Q5_K_M28.8 GB 32.0 GB
Too big Get file →
Q5_K_L29.3 GB 32.4 GB
Too big Get file →
Q6_K33.3 GB 36.5 GB
Too big Get file →
Q6_K_L33.7 GB 36.8 GB
Too big Get file →
Q8_043.1 GB 46.3 GB
Too big Get file →
BF1681.1 GB (3 parts) 84.3 GB
Too big Get file →

For 8 GB VRAM, use IQ2_XXS (file size 11.09 GB, estimated memory 14.3 GB). For 16 GB VRAM, IQ4_K_M (file size 24.57 GB, estimated memory 27.8 GB) offers a good balance of quality and memory. For 32 GB VRAM, Q5_K_L (file size 29.26 GB, estimated memory 32.4 GB) provides higher precision.

What GPU do you need for KwaiCoder AutoThink Preview?

These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.

  • 4 GB VRAM: no quant fits at an 8K context.
  • 6 GB VRAM: no quant fits at an 8K context.
  • 8 GB VRAM: no quant fits at an 8K context.
  • 12 GB VRAM: no quant fits at an 8K context.
  • 16 GB VRAM: the best quant that fits is IQ2_S (12.8 GB file, about 15.9 GB in use).
  • 24 GB VRAM: the best quant that fits is Q3_K_M (19.7 GB file, about 22.9 GB in use).
  • 32 GB VRAM: the best quant that fits is Q5_K_M (28.8 GB file, about 32.0 GB in use).
  • 48 GB VRAM: the best quant that fits is Q8_0 (43.1 GB file, about 46.3 GB in use).

Which KwaiCoder AutoThink Preview quant should you choose?

Q4_K_M is the usual starting point for KwaiCoder AutoThink Preview: it balances file size and quality well. Here it is a 24.6 GB file.

The Q8_0 file is 43.1 GB, about 1.8 times the size of Q4_K_M. It keeps the weights closer to the original, which only matters if you have the memory to spare.

If memory is tight, the smallest file is IQ2_XXS at 11.1 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architectureqwen2
Parameters40.6B
Layers80
Trained context32,768 tokens
KV cache (fp16)320 KB per token

Source

Quantized bybartowski
FamilyKwaicoder
Licenseother
Downloads (HF)1,862
Last updated2025-06-10

Frequently asked questions about KwaiCoder AutoThink Preview

How much VRAM does KwaiCoder AutoThink Preview need?

About 27.8 GB at Q4_K_M with an 8K context window. That is the 24.6 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.

Can I run KwaiCoder AutoThink Preview on an 8 GB GPU?

Not at an 8K context. The smallest file needs about 14.3 GB, so you would need a larger GPU or CPU offloading.

What is the file size of KwaiCoder AutoThink Preview GGUF?

It depends on the quant: IQ2_XXS is 11.1 GB, IQ2_XS is 12.2 GB, IQ2_S is 12.8 GB, IQ2_M is 13.9 GB, Q2_K is 15.2 GB, IQ3_XXS is 15.9 GB and 21 more.

What context length does KwaiCoder AutoThink Preview support?

The GGUF header lists a trained context length of 32,768 tokens (32K). The KV cache grows with the context you use: about 2.7 GB at 8K and 10.7 GB at 32K.

Where can I download KwaiCoder AutoThink Preview GGUF?

The files are on Hugging Face in the bartowski/Kwaipilot_KwaiCoder-AutoThink-preview-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

What license does KwaiCoder AutoThink Preview use?

Hugging Face lists the license as other. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.

Can I run this model on 8 GB VRAM?

The smallest quant IQ2_XXS requires about 14.3 GB memory at 8k context, so 8 GB VRAM is insufficient.

Does the model support vision?

No, the model has no vision capabilities.

What license applies to this model?

The model is licensed under MIT, but the model license applies for use.

Other GGUFs of KwaiCoder-AutoThink-preview

Similar models

Browse all →

More from bartowski

All by bartowski →

More Kwaicoder models

All Kwaicoder →

Other large models

All large models →