---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=hugging-face&tag=performance"
---

# Posts

Filtered by topics: Performance engineering, source: Hugging Face.

Posts 1–24 of 93, page 1 of 4, newest first.

## 2026-11-27

- [Taking Trainium3 to the Track: Generating Videos with LTX-2.5](https://swe.quest/articles/taking-trainium3-to-the-track-generating-videos-with-ltx-2-5-b0838d9918a36e17.md): Hugging Face · 2026-11-27 · Hard · 14 min read · Inference & serving, Performance engineering, Hardware, Video & media, Python
  LTX-2.5 video-with-audio generation was ported to AWS Trainium3 via diffusers, cutting a 10-second clip from 5 min 20 s at 960×544 to 22–23 s at 2048×1024 on 32 of 64 NeuronCores, roughly matching LTX's paid API.

## 2026-11-25

- [Hill-climbing Inkling 2 Mini inference on one RTX PRO 6000](https://swe.quest/articles/hill-climbing-inkling-2-mini-inference-on-one-rtx-pro-6000-c3647a6de3f84545.md): Hugging Face · 2026-11-25 · Hard · 9 min read · Inference & serving, Performance engineering, LLMs, AI agents
  Agent-driven tuning of Inkling 2 Mini, a looped 26B-total/3B-active MoE, on a single RTX PRO 6000 raised single-user decode from 136 to 190.6 tok/s (+40%) and 8-user throughput from ~570 to 716 tok/s by switching from SGLang to vLLM nightly and enabling DSpark speculative decoding with 7 drafts and probabilistic draft sampling.

## 2026-11-18

- [180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers](https://swe.quest/articles/180b-parameters-32gb-of-ram-pushing-moe-inference-to-the-limit-with-transformers-63cd3cf21432f7c3.md): Hugging Face · 2026-11-18 · Hard · 11 min read · Inference & serving, LLMs, Performance engineering, Caching, Hardware
  Streaming MoE experts from SSD through a bounded device-side slot pool lets Transformers run Qwen3.8-Flash-Next (121 GB of experts) on a 32 GB MacBook M5 at ~13.9 tok/s, within 6% of the specialized Strata engine on decode and slightly faster on prefill.

## 2026-10-21

- [Profiling TorchNeuron (Part 1): System-level profiling on AWS Trainium.](https://swe.quest/articles/profiling-torchneuron-part-1-system-level-profiling-on-aws-trainium-034696b775aee014.md): Hugging Face · 2026-10-21 · Medium · 9 min read · Performance engineering, Inference & serving, Hardware, Python
  A beginner-friendly walkthrough of system-level profiling for PyTorch on AWS Trainium using TorchNeuron.

## 2026-10-20

- [MPS in PyTorch 2.15](https://swe.quest/articles/mps-in-pytorch-2-15-b68893e8d3c0039f.md): Hugging Face · 2026-10-20 · Medium · 11 min read · Inference & serving, Performance engineering, Python, Hardware
  PyTorch 2.15 adds FP8 (float8\_e4m3fn) tensors and scaled\_mm on Apple's MPS backend and replaces many MPSGraph paths with dedicated Metal kernels.

## 2026-09-22

- [Transformers now runs llama.cpp quants](https://swe.quest/articles/transformers-now-runs-llama-cpp-quants-cff2353854049dc6.md): Hugging Face · 2026-09-22 · Medium · 11 min read · Inference & serving, LLMs, Python, Performance engineering
  Hugging Face transformers can now load GGUF (llama.cpp) quantized checkpoints via \`from\_pretrained(..., gguf\_file=...)\` and serve them through \`transformers serve\` with an OpenAI-compatible API.

## 2026-09-21

- [tokenizers v1: encode, decode and scaling, measured](https://swe.quest/articles/tokenizers-v1-encode-decode-and-scaling-measured-49d0c7f94c7739e1.md): Hugging Face · 2026-09-21 · Medium · 10 min read · Performance engineering, Rust, LLMs, Algorithms
  tokenizers v1 encodes text 3 to 30 times faster than v0.23 single-threaded on an Apple M4 Max and scales at 76% of linear across eight cores, while producing identical token IDs and keeping the same API.

## 2026-09-01

- [Introducing @huggingface/kernels: 200+ WebGPU Kernels for Local AI](https://swe.quest/articles/introducing-huggingface-kernels-200-webgpu-kernels-for-local-ai-9e38d7de6105d26d.md): Hugging Face · 2026-09-01 · Medium · 9 min read · Inference & serving, Browsers, Performance engineering, JavaScript, Open source
  Hugging Face released @huggingface/kernels, a JavaScript loader for 207 Apache-2.0 WebGPU kernels published as versioned Hub repositories.

## 2026-08-20

- [Up to 3.2x Faster Inference with LFM2.5-DSpark](https://swe.quest/articles/up-to-3-2x-faster-inference-with-lfm2-5-dspark-a1b740b4334807f0.md): Hugging Face · 2026-08-20 · Medium · 6 min read · Inference & serving, LLMs, Performance engineering
  Liquid AI releases ~300M-parameter DSpark speculative-decoding draft models for LFM2.5-1.2B-Instruct, LFM2.5-2.6B and LFM2.5-8B-A1B.

## 2026-08-10

- [Making Knowledge Distillation Cheap Enough to Run at Scale](https://swe.quest/articles/making-knowledge-distillation-cheap-enough-to-run-at-scale-f55a4297b4be9cef.md): Hugging Face · 2026-08-10 · Hard · 8 min read · Model training, LLMs, Performance engineering, Memory management
  Two systems changes make LLM knowledge distillation far cheaper: caching the teacher's top-100 logits offline so the teacher never shares memory with the student, and a fused chunked KL loss that folds the output projection into the loss and recomputes chunks in the backward pass, so the full vocabulary × sequence logits grid is never materialized.

## 2026-07-23

- [Bringing Nunchaku 4-bit Diffusion Inference to Diffusers](https://swe.quest/articles/bringing-nunchaku-4-bit-diffusion-inference-to-diffusers-c0f307e158fa29ca.md): Hugging Face · 2026-07-23 · Hard · 11 min read · Inference & serving, Performance engineering, Python, Hardware
  Diffusers can now load SVDQuant/Nunchaku 4-bit (W4A4) diffusion checkpoints natively via from\_pretrained(), with CUDA kernels fetched from the Hub through the kernels package instead of compiled locally.

## 2026-07-10

- [Profiling in PyTorch (Part 3): Attention is all you profile](https://swe.quest/articles/profiling-in-pytorch-part-3-attention-is-all-you-profile-44c4f73b7586bec2.md): Hugging Face · 2026-07-10 · Medium · 21 min read · Performance engineering, Inference & serving, Python, Hardware, LLMs
  Profiling attention variants in PyTorch on an A100 shows how each implementation appears in profiler traces.

## 2026-07-08

- [Native-speed vLLM transformers modeling backend](https://swe.quest/articles/native-speed-vllm-transformers-modeling-backend-cb3f698fe9046ce3.md): Hugging Face · 2026-07-08 · Hard · 5 min read · Inference & serving, LLMs, Performance engineering, Python
  The transformers modeling backend in vLLM now matches or beats vLLM's hand-written native implementations in throughput.

## 2026-06-24

- [Accelerating Transformers Fine-Tuning with NVIDIA NeMo AutoModel](https://swe.quest/articles/accelerating-transformers-fine-tuning-with-nvidia-nemo-automodel-c196d721b8de0a9a.md): Hugging Face · 2026-06-24 · Hard · 10 min read · Model training, Performance engineering, LLMs, Python
  NeMo AutoModel subclasses Transformers v5's AutoModelForCausalLM and adds Expert Parallelism as a dedicated mesh orthogonal to data parallelism, DeepEP fused all-to-all dispatch, and TransformerEngine kernels.

## 2026-06-11

- [Profiling in PyTorch (Part 2): From nn.Linear to a Fused MLP](https://swe.quest/articles/profiling-in-pytorch-part-2-from-nn-linear-to-a-fused-mlp-9b220b5d3b1f868e.md): Hugging Face · 2026-06-11 · Hard · 19 min read · Performance engineering, Python, Machine learning, Compilers
  Profiling an nn.Linear on an A100 shows a single cuBLAS/CUTLASS GEMM kernel with the bias folded in as an epilogue via aten::addmm, while aten::t only rewrites strides on the CPU and launches nothing.

## 2026-05-29

- [Profiling in PyTorch (Part 1): A Beginner's Guide to torch.profiler](https://swe.quest/articles/profiling-in-pytorch-part-1-a-beginner-s-guide-to-torch-profiler-de0c791495fa22c4.md): Hugging Face · 2026-05-29 · Medium · 27 min read · Performance engineering, Machine learning, Python, Debugging
  torch.profiler produces two artifacts: a statistical table showing where time goes and a Chrome/Perfetto trace showing when CPU and GPU events happen.

## 2026-05-14

- [Unlocking asynchronicity in continuous batching](https://swe.quest/articles/unlocking-asynchronicity-in-continuous-batching-fe214c7fa26641ee.md): Hugging Face · 2026-05-14 · Hard · 20 min read · Inference & serving, Performance engineering, Concurrency, Hardware, LLMs
  Synchronous continuous batching makes the CPU and GPU take turns, and profiling an 8B model generating 8K tokens at batch size 32 shows the GPU idle for 24% of the 300.6-second runtime while the CPU prepares batches.

## 2026-02-26

- [Mixture of Experts (MoEs) in Transformers](https://swe.quest/articles/mixture-of-experts-moes-in-transformers-670e279baa41a80a.md): Hugging Face · 2026-02-26 · Hard · 10 min read · Inference & serving, LLMs, Model training, Performance engineering, Python
  Hugging Face transformers v5 reworks its internals to treat Mixture of Experts models as first-class: a WeightConverter pipeline packs per-expert checkpoint tensors into contiguous runtime tensors with async, lazy materialization, cutting Qwen1.5-110B load time from ~66s to ~21s (10s with tensor parallelism) on an A100.

## 2026-02-13

- [Custom Kernels for All from Codex and Claude](https://swe.quest/articles/custom-kernels-for-all-from-codex-and-claude-9d652cbc33fa9001.md): Hugging Face · 2026-02-13 · Medium · 9 min read · AI for coding, Performance engineering, Inference & serving, Hardware, Python
  Hugging Face packaged CUDA kernel expertise (GPU architecture guides for H100/A100/T4, diffusers and transformers integration patterns, vectorized kernel templates, benchmark scripts) into an agent skill that lets Claude and Codex generate complete kernel-builder projects with PyTorch bindings.

## 2025-11-25

- [Continuous batching from first principles](https://swe.quest/articles/continuous-batching-from-first-principles-b2a5a3d9c00e56be.md): Hugging Face · 2025-11-25 · Medium · 17 min read · Inference & serving, LLMs, Performance engineering
  Continuous batching falls out naturally once you optimize LLM serving for throughput, and the post derives it step by step from attention, causal masking, KV caching and chunked prefill.

## 2025-10-27

- [Streaming datasets: 100x More Efficient](https://swe.quest/articles/streaming-datasets-100x-more-efficient-8732da9f7e4dd1b1.md): Hugging Face · 2025-10-27 · Medium · 7 min read · Data pipelines, Model training, Performance engineering, Python, Storage systems
  Hugging Face reworked streaming in the \`datasets\` library so multi-terabyte datasets can feed large training jobs directly from the Hub, keeping the same \`streaming=True\` API.

## 2025-10-16

- [Google Cloud C4 Brings a 70% TCO improvement on GPT OSS with Intel and Hugging Face](https://swe.quest/articles/google-cloud-c4-brings-a-70-tco-improvement-on-gpt-oss-with-intel-and-hugging-1662abf0ec54a8e1.md): Hugging Face · 2025-10-16 · Medium · 6 min read · Inference & serving, Performance engineering, Hardware, Cloud platforms, Cost optimization
  Google Cloud C4 VMs on Intel Xeon 6 (Granite Rapids) deliver 1.4x–1.7x per-vCPU decoding throughput over C3 (Sapphire Rapids) for CPU inference of the GPT OSS 120B mixture-of-experts model in bfloat16.

## 2025-10-15

- [Get your VLM running in 3 simple steps on Intel CPUs](https://swe.quest/articles/get-your-vlm-running-in-3-simple-steps-on-intel-cpus-59cb207ffcd00762.md): Hugging Face · 2025-10-15 · Medium · 7 min read · Inference & serving, LLMs, Computer vision, Performance engineering
  SmolVLM2-256M can run locally on Intel CPUs by converting it to OpenVINO IR with Optimum Intel, quantizing it, and running generation, with optional Intel GPU offload via device="gpu".

## 2025-09-29

- [Accelerating Qwen3-8B Agent on Intel® Core™ Ultra with Depth-Pruned Draft Models](https://swe.quest/articles/accelerating-qwen3-8b-agent-on-intel-coretm-ultra-with-depth-pruned-draft-models-ea1317a126102827.md): Hugging Face · 2025-09-29 · Medium · 6 min read · Inference & serving, LLMs, AI agents, Performance engineering
  Speculative decoding with a Qwen3-0.6B draft model speeds up 4-bit Qwen3-8B on an Intel Lunar Lake integrated GPU by about 1.3× using OpenVINO.GenAI.

[Next page](https://swe.quest/index.md?source=hugging-face&tag=performance&page=2)

Same list as RSS: [https://swe.quest/feed.xml?source=hugging-face&tag=performance](https://swe.quest/feed.xml?source=hugging-face&tag=performance). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
