Summary Points
- One RTX 4090 was enough: QLoRA, gradient checkpointing, and chunked loss squeezed fine-tuning a 27B model into 24 GiB of VRAM.
- The goal was focused: Teach Qwen newer Blender 5.2 scripting and a consistent low-poly diorama style—not give it new general abilities.
- Small dataset, clear gains: Training on 2,000 generated scripts raised successful Blender runs on 100 test prompts from 42 to 85.
- Adapters stay flexible: LoRA adapters can be switched on for specialist tasks and off for everyday use—though fine-tuning may affect other capabilities.
Qwen3.8-27B QLoRA: Fine-Tuning on One GPU
Start With a Narrow Job
A local RTX 4090 can do more than run a large language model. With careful memory planning, it can also fine-tune one for a specific task.
The 27-billion-parameter Qwen3.8 model used about 17 GiB of the card’s 24 GiB of VRAM during inference. Full fine-tuning would require far more memory. QLoRA offers a leaner route: it keeps the 4-bit base model fixed and trains small adapter weights instead.
Trade Speed for Memory
Adapters alone did not solve the memory problem. The training process also needed room for activations and loss calculations. Gradient checkpointing reduced memory use by recalculating some values during training. Loss chunking processed the sequence in smaller pieces.
Together, these techniques made the workload fit on one card, with some extra training time. A dataset of 2,000 Blender scripts took about six hours to train for two epochs. The examples focused on Blender 5.2 and a consistent low-poly diorama style.
Useful Gains, Not a New Generalist
On 100 test prompts, the fine-tuned model produced scripts that ran without errors 85 times, up from 42 for the untuned model. It also carried the visual style into new scenes. That’s a practical gain for a focused task, not proof of broader reasoning improvements.
There are tradeoffs. Fine-tuning can weaken performance on unrelated tasks, and some generated scenes may still miss the mark. However, users can switch adapters on for specialized work and turn them off for everyday questions. For developers with a narrow, repeated need, one GPU may be enough to build a useful tool.
Expand Your Tech Knowledge
Explore the future of technology with our detailed insights on Artificial Intelligence.
Discover archived knowledge and digital history on the Internet Archive.
AITechV1
