Qwen
lastmod 2026-03-09created 2025-02-028 edits
See also
- LLM
- Qwen-Image - Image generation model with native text rendering
- Qwen-Image-Edit - Release of a dedicated image editing model
- Qwen3-Omni-Flash-2025-12-01 - Next-generation native multimodal large model
- Qwen3-TTS family released as open source: provides voice design, cloning, and generation
Qwen3.5 fine-tuning guide
The Qwen3.5 model family (0.8B–122B) can be fine-tuned on text and vision with Unsloth, an open-source framework for LLM fine-tuning and reinforcement learning
- Unsloth offers 1.5x faster training and 50% less VRAM than FlashAttention-2, enabling efficient training with a bf16 LoRA setup
- The 0.8B, 2B, and 4B models can be tried for free via Colab notebooks, and notebooks for the 27B and 35B models are provided for A100 environments
- MoE models (35B, 122B, etc.) get 12x faster training, 35% less VRAM, and 6x longer context length with the latest kernels
- After training, models can be exported to various deployment formats such as GGUF, vLLM, Ollama, LM Studio, and SGLang
Qwen3.5 fine-tuning overview
- The Qwen3.5 model family (0.8B, 2B, 4B, 9B, 27B, 35B‑A3B, 122B‑A10B) can be fine-tuned with Unsloth
- Supports both text and vision
- Qwen3.5‑35B‑A3B bf16 LoRA runs on 74GB VRAM
- VRAM usage: 0.8B (3GB), 2B (5GB), 4B (10GB), 9B (22GB), 27B (56GB)
Training environment and setup
- Qwen3.5 is a multilingual model supporting 201 languages
- Reinforcement Learning (RL) and Vision RL (VLM RL) are also supported through Unsloth
- A100 Colab notebooks provided: Qwen3.5‑27B, Qwen3.5‑35B‑A3B
- For local training, update to the latest version
- Command: pip install --upgrade --force-reinstall --no-cache-dir unsloth unsloth_zoo
MoE model fine-tuning (35B, 122B)
- Supports Qwen3.5‑35B‑A3B / 122B‑A10B / 397B‑A17B models
- 12x faster training, 35% less VRAM, 6x longer context length
- For multiple GPUs, set device_map = "balanced" or see the multiGPU guide
Quickstart
- Text-only SFT (supervised fine-tuning) example provided
- Qwen3.5 has a Causal Language Model + Vision Encoder architecture
- Vision dependencies (torchvision, pillow) must be installed
- per_device_train_batch_size=1, reduce max_seq_length
- Keep gradient_checkpointing="unsloth" to save VRAM and extend context
Vision fine-tuning
- Supports vision fine-tuning of multimodal Qwen3.5 models
- Qwen3-VL GRPO/GSPO RL notebooks can be used (just change the model name)
- Selective fine-tuning among Vision, Language, Attention, and MLP layers
- All enabled by default
Saving and deploying models
- Supports various deployment methods such as llama.cpp, vLLM, llama-server, Ollama, LM Studio, and SGLang
Saving to GGUF
- Unsloth supports saving directly to GGUF format and uploading to Hugging Face
- If performance degrades during inference, the main cause is usually a wrong chat template or EOS token
Saving for vLLM
- vLLM 0.16.0 does not support Qwen3.5
- Requires 0.170 or later, or a Nightly version
Qwen3.5 local run guide
- Qwen3.5 local run guide | GeekNews
- Alibaba's Qwen3.5 model family comes in sizes from 0.8B to 397B, with multimodal hybrid reasoning and 256K context
- Unsloth provides all Qwen3.5 models as Dynamic 2.0 GGUF quantizations, which can be run locally via llama.cpp or LM Studio
- You can switch between thinking and non-thinking modes; small models (0.8B–9B) default to non-thinking mode
- Required RAM/VRAM and recommended settings (temperature, top_p, etc.) are listed for each model, and the 27B and 35B models can run even on a 22GB Mac
- Unsloth GGUF improves performance with an enhanced quantization algorithm and imatrix data, and is not compatible with Ollama
Favorite site
Pages that link here