Fine-Tuning Qwen2.5-7B on an 8GB GPU

Why a GGUF model can't be fine-tuned directly, and how QLoRA through Unsloth made a single 8GB card enough.

By Akshay More · 2026-06-23 · 6 min read · AI

Fine-Tuning Qwen2.5-7B on an 8GB GPU

I needed to fine tune Qwen2.5 7B on a small astrology dataset and deploy it with vLLM. The first mistake was assuming I could fine tune the GGUF model I already had pulled through Ollama.

Why GGUF didn't work

GGUF is a quantized, inference only format. There is no gradient path back through it. Training needs the original Hugging Face safetensors weights, not the compressed artifact Ollama serves.

The actual pipeline

Pull the base model in HF safetensors format. Apply QLoRA using Unsloth, which keeps the base weights in 4 bit and only trains small adapter layers. Merge or keep adapters separate depending on the deployment target.

An 8GB card cannot hold a 7B model's full gradients. It can absolutely hold its LoRA adapters.

Deployment

pip install vllm
vllm serve ./merged-model --max-model-len 4096

Takeaway

Quantized inference formats and trainable formats are not the same thing, even when they come from the same base model. Check which one you actually have before writing the training loop.