Hugging Face Blog

(LoRA) Fine-Tuning FLUX.1-dev on Consumer Hardware

arXiv AI
5d ago

Fine-Tuning Gemma 4 Edge Models for MATLAB Signal-Processing Code with SFT and QLoRA on a Laptop iGPU

The paper reports on fine‑tuning Gemma 4 edge models (E2B and E4B) for MATLAB signal‑processing code using supervised fine‑tuning (SFT) with 66 curated examples across 11 subtasks. Low‑rank adaptation (LoRA) and quantized LoRA (QLoRA) were applied on a laptop’s integrated GPU, producing 8‑bit models deployed via OpenVINO. The fine‑tuned models improved pass rates from 18/66 to 37/66 (LoRA/QLoRA) for E2B and from 32/66 to 47/66 (QLoRA) for E4B, largely correcting convention errors while adding a 17‑19% runtime overhead.

By Mehmet Altan Toks\"oz
arXiv Machine Learning
Sep 11

Understanding LoRA Rank Trade-offs in Diffusion Model Fine-Tuning

The study investigates how the rank of Low‑Rank Adaptation (LoRA) affects diffusion model fine‑tuning on CIFAR‑10 using a DDPM U‑Net. Experiments with ranks 2, 4, 8, 16, and 32 show that moderate ranks—particularly rank 4—yield the best FID scores while keeping trainable parameters, runtime, and GPU memory low. Higher ranks offer only marginal improvements at a higher computational cost, suggesting that small‑to‑moderate ranks are efficient defaults for fixed training budgets.

By Iman Khazrak, Narges Nejad, Mostafa M. Rezaee, Robert C. Green II