433 yesterday

IQ4_XS quantization from Unsloth with 128k context window

ollama run smtek/Qwen4-35B-A3B:IQ4_XS

Details

yesterday

9eb34152d751 · 32GB

qwen4exp
·
35.9B
·
IQ4_XS
·
20.5B
{ "min_p": 0, "num_ctx": 131072, "presence_penalty": 1.5, "repeat_penalty": 1, "

Readme

Qwen4-35B-A3B

GGUF quantization of Qwen4-35B-A3B:IQ4_XS for Ollama, with context windows tuned for 24gb VRAM budget.

Vision tags include the mmproj-F16 projector (multimodal, FP16). MTP tags enable speculative decoding via the model’s built-in MTP drafter (draft_num_predict 4); small builds disable it (draft_num_predict 0) to save VRAM. The latest tag is the MTP build without vision.

All tags use lowered sampling temperature for more deterministic output:

PARAMETER temperature 0.6
PARAMETER top_k 20
PARAMETER top_p 0.8
PARAMETER repeat_penalty 1
PARAMETER num_predict -1
PARAMETER min_p 0
PARAMETER presence_penalty 1.5

Usage

ollama run smtek/Qwen4-35B-A3B:IQ4_XS

Or via the API:

curl http://localhost:11434/api/generate -d '{
  "model": "smtek/Qwen4-35B-A3B:IQ4_XS",
  "prompt": "Hello"
}'

Recommended Optimization

By default, Ollama allocates the KV-Cache in f16, which will exceed VRAM over long contexts. To run stably up to the full 256K window, set these environment variables in your system ( on Linux).

By default, Ollama allocates the KV cache in f16, which can exceed VRAM over long contexts. To run stably up to the full 256K window, set these environment variables on your system (/etc/systemd/system/ollama.service.d/override.conf on Linux). Also, since this is an MoE model, Ollama now supports expert sharing, allowing multiple agents to share the weights while each maintains its own KV cache.

[Service]
Environment="OLLAMA_FLASH_ATTENTION=1"
Environment="OLLAMA_KV_CACHE_TYPE=q4_0"
  • Flash Attention
  • q4_0 Cache

After editing, reload and restart:

sudo systemctl daemon-reload
sudo systemctl restart ollama

Source

  • Hugging Face: unsloth/Qwen4-35B-A3B-GGUF
  • License: Apache-2.0