Hugging Face Blog

Faster Training and Inference: Habana Gaudi®2 vs Nvidia A100 80GB

arXiv Machine Learning
Oct 23

Evaluating the Applicability of LLM Inference Optimizations on Apple Silicon

The paper investigates how well common large‑language‑model (LLM) inference optimizations perform on Apple Silicon compared to server‑class NVIDIA GPUs. Four optimization families—KV‑cache pruning, speculative decoding, ported GPU kernels, and post‑training quantization—are evaluated on four Apple machines under a single‑request decode workload, with matched RTX 4090 comparisons where possible. Results show that KV‑cache pruning can boost Apple throughput up to 1.75×, while speculative decoding actually reduces throughput on Apple; CUDA kernel designs transfer only partially, and quantization gains vary by machine, indicating that speedups depend on the specific technique, runtime, hardware, and workload regime.

By Kyrylo Yemets, Andrii Yaroshevych, Victor Muryn, Ostap Khomenko, Pavlo Kryven, Maksym Kmet, Maksym Shamrai, Mariya Hirna
arXiv Machine Learning
5d ago

RSIBench-Infra: Can Agents Optimize Their Own Training and Inference Infrastructure at Production Scale?

RSIBench-Infra is a new benchmark that tests whether agents can optimize their own training and inference infrastructure at production scale. It includes 20 tasks across diverse model families and modalities, deployed on up to 32 accelerators on NVIDIA GPUs and Ascend NPUs, and allows agents to modify the software stack from engine to kernel to instruction levels. The benchmark measures end‑to‑end performance under task‑specific quality constraints, and results show that 66.2% of agents achieve more than a 1.10× speedup, indicating that current agents can improve production‑scale performance but still face challenges in consistently translating local improvements into end‑to‑end gains.

By Hanlin Wu, Yifei Wang, Zhicheng Cai, Huan-ang Gao, Wei-Ying Ma, Ya-Qin Zhang, Jingjing Liu, Hao Zhou
arXiv AI
Sep 15

GGUF-Metadata Prediction of Single-Sequence llama.cpp Throughput Across Three Systems

The paper predicts single‑sequence llama.cpp throughput from GGUF metadata using roofline‑shaped predictors with quantization‑specific scale factors. Experiments on 318 measurements across 53 host‑file configurations on two Apple M4 Max systems and an NVIDIA RTX 5080 show that an active‑parameter decode model achieves significantly lower mean absolute percentage errors compared to models that use total parameters. The study also finds that low‑bit model ladders alter runtime ordering and that GGUF structure improves predictions, though fitted efficiencies vary across systems.

By Xinyu Qiu, Chuhong Xu, Bo Su, Ziyao Chen, Ruiyang Xu, Shimeng Dai