For the complete documentation index, see llms.txt. This page is also available as Markdown.

Qwen3.8 Fine-tuning Guide

Learn how to fine-tune Qwen3.8-27B with Unsloth.

Qwen3.8-27B can now be fine-tuned and trained with reinforcement learning (RL) via Unsloth. It is a dense 27B unified vision-language model with native text, image and video support, thinking controls and a 262K context window.

  • Unsloth trains Qwen3.8 ~1.5x faster with ~50% less VRAM than FA2 setups (no accuracy loss)

  • Fine-tune Qwen3.8-27B via our free Kaggle notebooks:

Conversational (you can enable Vision)

  • QLoRA works with 24GB and LoRA needs >36GB

  • You can also train Qwen3.8 with reinforcement learning (RL) free or on 24GB VRAM.

  • Full fine-tuning (FFT) works as well, but it will use 4x more VRAM.

  • Unsloth utilizes Flash Linear Attention kernels for efficient Qwen3.8 training

  • Use Qwen3.8-27B-unsloth-bnb-4bit for 4-bit QLoRA, then export to NVFP4, FP8, GGUF etc.

  • If you want to preserve reasoning ability, mix reasoning-style examples with direct answers and keep at least 75% reasoning data.

Please use the latest Transformers v5. Qwen3.8 uses the qwen3_5 architecture. The first run can take longer while the Gated DeltaNet kernels compile.

🦥 Unsloth Guide

Qwen3.8 can be run and fine-tuned in Unsloth Desktop, our new open-source web UI for local AI.

With Unsloth Studio, you can run models locally on MacOS, Windows, Linux and train NVIDIA GPUs. Intel, MLX and AMD training support coming this month.

1

Install Unsloth

The easiest way to get started is by downloading the Unsloth Desktop app. Works on macOS, Windows, and Linux.

Download Unsloth

Or, if you prefer to install manually:

MacOS, Linux, WSL:

curl -fsSL https://unsloth.ai/install.sh | sh

Windows PowerShell:

irm https://unsloth.ai/install.ps1 | iex
2

Train Qwen3.8

Go to the Train tab then search for Qwen3.8-27B in the search bar and select your desired model and dataset. Next, adjust your hyperparameters, context length as desired.

3

Monitor training progress

After you click start training, you will be able to monitor and observe the training progress of the model. The training loss should be steadily decreasing. Once done, the model will be automatically saved.

4

Export your fine-tuned model

Once done, Unsloth Studio allows you to export the model to GGUF, safetensor etc formats.

5

Compare fine-tuned model vs original model

Click on Compare Mode to compare the LoRA adapter and the original model.

SFT recipe

Below is a minimal SFT recipe for text-only fine-tuning. Your dataset needs a text column already rendered with the Qwen chat template.

offload_embedding=True is optional and reduces resident VRAM by keeping the large, untied input embedding in RAM. Unsloth disables it automatically on unsupported platforms.

If you OOM, reduce max_seq_length and keep batch size 1 with "unsloth" gradient checkpointing.

Vision fine-tuning

Qwen3.8 supports native image and video inputs. For multimodal training, enable the vision layers and use a conversational vision dataset with UnslothVisionDataCollator.

Set finetune_vision_layers=False when your dataset is text-only.

Reinforcement Learning (RL)

Qwen3.8 uses the same qwen3_5 architecture, so use the Qwen3.5 Unsloth RL path and disable fast vLLM inference:

Saving / export fine-tuned model

Use the same chat template and EOS token during deployment that you used during training.

Save to GGUF

Save to vLLM

To save only the LoRA adapters:

Last updated

Was this helpful?