Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Python Remove topic Python Clear all 52 posts RSS

2026

Introducing ModuleLens: Zooming into PyTorch Modules for Human and Agentic Engineering

Case study 5 min +50 XP

ModuleLens lets Pinterest ML engineers capture any PyTorch module from a sharded multi-GPU recommendation model and rebuild it locally within seconds, replacing full-model initialization with a "module-first" workflow.

Hugging Face

Mixture of Experts (MoEs) in Transformers

Deep dive 10 min +100 XP

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.

2025

ClickHouse

chDB Kernel Upgrade Journey: Upgrading ClickHouse to v25.8.2.29

Case study 16 min +160 XP

Upgrading chDB's embedded ClickHouse kernel from v25.5 to v25.8.2.29 surfaced allocator conflicts rooted in chDB's dual-library design: a stable-ABI `_chdb.abi3.so` holding the ~120MB engine plus small per-Python-version pybind11 binding libraries.

Hugging Face

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

How-to 11 min +110 XP

FLUX.1-dev can be LoRA fine-tuned on a single consumer GPU by combining QLoRA (4-bit NF4 base transformer via bitsandbytes), 8-bit AdamW, gradient checkpointing, cached VAE latents and precomputed CLIP/T5 text embeddings, so that only the quantized transformer plus adapters sit in GPU memory.

Hugging Face

Falcon-Edge: A series of powerful, universal, fine-tunable 1.58bit language models.

Announcement 9 min +90 XP

Falcon-Edge is a set of 1B and 3B ternary (1.58-bit) BitNet language models, in base and instruct variants, pre-trained on about 1.5T tokens with a WSD learning-rate schedule and reported competitive with similarly sized models on Hugging Face leaderboard benchmarks.

Hugging Face

π0 and π0-FAST: Vision-Language-Action Models for General Robot Control

Deep dive 11 min +110 XP

Physical Intelligence's π0 and π0-FAST vision-language-action models are now ported to PyTorch in Hugging Face LeRobot, with commands for inference and fine-tuning. π0 adds state and action tokens to a PaliGemma-style prefix and generates 50Hz action trajectories via flow matching.

Hugging Face

Train 400x faster Static Embedding Models with Sentence Transformers

Research 39 min +390 XP

Static embedding models, which replace the attention-based encoder with a token embedding lookup plus mean pooling (an EmbeddingBag), can be trained with modern contrastive losses and Matryoshka Representation Learning to run 100x to 400x faster on CPU than models like all-mpnet-base-v2 and multilingual-e5-small, while keeping at least 85% of their benchmark quality.

2024

Hugging Face

Improving Hugging Face Training Efficiency Through Packing with Flash Attention 2

How-to 5 min +50 XP

Hugging Face Transformers now supports padding-free packing of instruction-tuning examples with Flash Attention 2 via the new DataCollatorWithFlattening, which concatenates sequences and passes position_ids so flash_attn_varlen_func respects example boundaries and avoids cross-example attention.

2023

Hugging Face

Yes, Transformers are Effective for Time Series Forecasting (+ Autoformer)

Research 20 min +200 XP

Univariate Autoformer beats the DLinear linear model on Traffic (MASE 0.910 vs 0.965), Exchange-Rate (1.087 vs 1.690) and Electricity (0.751 vs 0.831) when compared at equivalent size and in the same setting, countering the AAAI 2023 claim that Transformers are ineffective for time series forecasting.

Hugging Face

Multivariate Probabilistic Time Series Forecasting with Informer

How-to 21 min +210 XP

Informer, the AAAI'21 best paper model now in Hugging Face Transformers, extends the vanilla Transformer for long-sequence time series forecasting with two changes: ProbSparse attention, which uses a query sparsity measurement on sampled keys to keep only the top c·log T "active" queries and cut attention cost from O(T²) to O(T log T), and a distilling step (Conv1d + ELU + MaxPool) that halves sequence length between encoder layers to reduce memory to O(N·T log T).

2022

The quest for software engineering knowledge.

Look:
Layout: