LoRA over GGUF – Train Qwen3.8-Flash-Next in 40G VRAM
- Source
- github.com
- Author
- woctordho
- Date
Fine-tuning a large mixture-of-experts model usually means renting multi-GPU servers or converting quantized weights back to full precision first. This repository takes a different route: it trains LoRA adapters directly on top of GGUF-quantized weights through Hugging Face Transformers, in the style of QLoRA. The headline example is Qwen3.8-Flash-Next fitting in 40GB of VRAM, and the author reports memory footprints and token rates measured on AMD Strix Halo hardware, a high-memory single machine rather than a datacenter card. Those measured figures are the useful part, because they let you check whether your own box can run a job before you start. It is a practitioner recipe rather than a supported product, so expect to work through version pinning and rough edges. For teams that already serve GGUF models locally, it removes one conversion step between the model they run and the model they want to adapt.
Context
A maintainer's recipe reports Qwen3.8-Flash-Next, a Qwen model, with 40 GiB of GPU memory and no CPU offload. It combines a compressed base model stored in GGUF format with fine-tuning, a method for adapting an existing model by training small added pieces. The README lists this run among the configurations the author tried.
The hardware conditions matter. The README says the kernels and parameters are tuned for a platform called Strix Halo and that more work is needed to support other GPUs, and the author says CPU or disk offload and multi-GPU training are not yet worked on. The 40 GiB figure is therefore one reported configuration on one platform, not a general memory requirement.
- The usual local QLoRA stack (Transformers with a bitsandbytes 4-bit base) stalled on models because bitsandbytes does not yet support MoE. The author says Transformers 5.18 added GGUF loading that covers recent MoE and sparse- models.
- The author reports training Qwen3.8-Flash-Next (125B-A6B plus a 51B engram) in 40 GiB of VRAM without CPU offload, at 200 tokens/s on AMD Strix Halo, and DeepSeek-V4-Flash (284B-A13B) in 90 GiB at 100 tokens/s.
- There is headroom: the same setup reaches over 1,600 tokens/s on prompt processing, and LoRA training with gradient checkpointing usually costs 4-5x prompt-processing work, so 200 tokens/s is below the expected ceiling. CPU/disk offload and multi-GPU are still unoptimized.
- fine-tuning — Taking a trained model and training it a bit more on your own examples so it gets better at one specific job.
- LoRA — A cheap way to fine-tune a model by training a small add-on layer instead of changing all of the model's weights.
- mixture-of-experts — A model built from many specialist sub-networks where only a few activate per token, giving big-model capability at small-model running cost.
- attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
Checking sign-in…
Loading comments…


