Unsloth has added features to run Qwen4 on developers' own hardware and customize downloaded compressed models. Rather than retraining the entire model, it creates an adapter, a small set of extra parameters, for use in chats.

1. Running Qwen4 35B-A3B locally

Qwen4-35B-A3B, supported in 0.1.927-beta, is a mixture-of-experts model that selects only some experts, activating 3 billion of its 35 billion parameters. It supports image input and a context of up to 1,048,576 tokens.

Unsloth provides guidance for running it through the desktop app and the latest llama.cpp. The app automatically manages the model's engram tables.

Engram is an index table for looking up text patterns. Unsloth keeps it in RAM for fast access when memory allows, or moves it to SSD. This trades access speed for memory available to model weights and context.

Memory needs vary by quantization, which compresses models by reducing numerical precision. The company reports that the smallest quantization starts at about 9.3GB of combined RAM and VRAM, and 4-bit at about 24.1GB.

The docs list 21–25GB for 4-bit weights with engram on disk. They suggest UD-IQ4_XS as a starting point for 24GB devices and UD-IQ3_XXS with short context for 18GB devices. For images, they recommend the former or higher.

In Qwen's official tests, Qwen4 scored 21.2 on Terminal-Bench 4.1 versus Qwen3.8-Flash-Next's 24.2, but 61.8 on DeepSWE v1.1 versus 58.7 for that model. Rankings vary by test. Unsloth separately ran the quantization tests below.

2. Quality and resource use vary by quantization

The company reports that 4-bit quantization accuracy was close to the uncompressed BF16 baseline. The docs compare average accuracy over 300 questions from four evaluations, with four generations per question.

300 questions from GSM8K, MATH-500, CRUXEval-O and MMLU-Pro, 4 runs per question, thinking mode enabled, official sampling settings, llama.cpp

Average accuracy by quantization (%)
Model / quantizationAccuracy
BF1695.3
UD-IQ1_S89.6
UD-IQ4_XS95.2
UD-Q4_K_XL95.0

The company describes accuracy differences within about 1 percentage point as variation arising from repeated runs.

In the same tests, the smallest quantization had lower accuracy than 4-bit. This shows the difference between minimizing memory use and preserving quality.

Release notes list download sizes from 20.8GB for the smallest quantization to 60.6GB for the largest. The full quantization table in the docs lists 21.3GB and 62.3GB respectively, differing from the release notes.

3. MTP and new inference engines

Qwen4's GGUF quantized model files include an MTP head for speculative decoding, which proposes and checks upcoming tokens. The docs list this extra layer at 0.49–1.72GB depending on quantization. llama.cpp loads it separately.

The company reports that gains varied by draft depth and task even on the same graphics card. Draft depth is the number of tokens proposed at once.

RTX 5090(32GB), UD-Q4_K_XL, greedy selection, thinking mode disabled, upstream llama.cpp

Generation speed by draft depth (tokens/s)
Draft settingCode generationProse generation
Disabled174.9168.6
Depth 1224.0205.3
Depth 3221.2174.9

Chart: Generation speed at baseline and by draft depth. Conditions: RTX 5090(32GB), UD-Q4_K_XL, greedy selection, thinking mode disabled, upstream llama.cpp. Unit: tokens/s

xychart-beta
    x-axis ["Code·baseline", "Code·depth1", "Code·depth3", "Prose·baseline", "Prose·depth1", "Prose·depth3"]
    y-axis "Generation speed(tokens/s)" 0 --> 250
    bar [174.9, 224.0, 221.2, 168.6, 205.3, 174.9]

Using (draft speed÷baseline speed−1)×100, depth 1 gains were about 28.1% for code and 21.8% for prose. Depth 3 gained only about 3.7% for prose, so depth 1 was faster for both tasks here. Separate tests led the docs to recommend depth 2.

An inference engine is software that actually runs a model. This version adds ExLlamaV3 for EXL3 models.

It also adds the Strata engine for GGUF; the new engines are installed through settings. The new ExLlama engine runs on Windows with an NVIDIA GPU without a separate compatibility layer.

4. LoRA training from downloaded GGUF files

LoRA trains a small adapter rather than the whole model. The new feature trains from a downloaded GGUF and saves a LoRA GGUF adapter for llama.cpp. In chat, the adapter can be loaded over the base GGUF, the underlying model file.

In the app, select a GGUF from the models stored on the device in the training screen. In code, the following setting loads supported GGUF files.

gguf_packed = True

Models explicitly listed in the release as supporting this code setting include Gemma 3·4 and DeepSeek V4.1. The update adds Qwen4 inference support alongside GGUF-based training support.

5. Workflow changes and costs

The practical benefit is using downloaded GGUF files as a starting point for training too. Training results can be applied in the chat screen, connecting inference and customization.

Downloads also include engram and MTP heads, so runtime memory and storage space need separate consideration.

The memory figures in the docs are starting points, not total runtime requirements. GGUF training in the app is unavailable on Mac.

Unsloth 0.1.927-beta connects local Qwen4 inference and GGUF-based adapter training in one workflow, but practical choices depend on memory, storage and operating system.