Hugging Face Blog

Faster Stable Diffusion with Core ML on iPhone, iPad, and Mac

arXiv AI
Oct 23

SAKURA: Serving Attention Key-Value State Under Rate Adaptation for Private Image Editing on Phones

SAKURA is a cloud-edge system that delivers reusable attention key‑value state to mobile devices for diffusion‑based image editing while respecting a bandwidth budget. It compresses the state with a token‑importance‑aware method, dynamically selects cache representations based on network conditions, and overlaps transfer with on‑device computation. Experiments on a Snapdragon 8 Elite Gen 5 phone show that SAKURA cuts latency by up to 3.27× and reduces cache storage by 3.06× compared to uncompressed caches, all while maintaining image quality.

By Shuncheng Jie, Desen Sun, Ri Hong, Yuyang Tian, Hong Zhang, Sihang Liu
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