---
title: "Python (hard)"
description: "Python language, ecosystem or tooling"
url: "https://swe.quest/tags/python?difficulty=hard"
---

# Python (hard)

Topic in Languages: Python language, ecosystem or tooling

By difficulty: [Easy](https://swe.quest/tags/python.md?difficulty=easy) · [Medium](https://swe.quest/tags/python.md?difficulty=medium) · [Hard](https://swe.quest/tags/python.md?difficulty=hard)

Posts 1–24 of 52, page 1 of 3, 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-11

- [Token Pooling-Aware Training for Multi-Vector Embedding Models](https://swe.quest/articles/token-pooling-aware-training-for-multi-vector-embedding-models-0e5234acf2e85460.md): Hugging Face · 2026-11-11 · Hard · 12 min read · Search, Model training, Machine learning, Python
  Pooling-aware training teaches a multi-vector (ColBERT-style) encoder to keep retrieval-relevant information when document token vectors are merged by Ward hierarchical clustering, improving quality at a fixed storage budget.

## 2026-10-19

- [Introducing ModuleLens: Zooming into PyTorch Modules for Human and Agentic Engineering](https://swe.quest/articles/introducing-modulelens-zooming-into-pytorch-modules-for-human-and-agentic-8767bb31b4979135.md): Pinterest Engineering · 2026-10-19 · Hard · 5 min read · ML platforms, Python, Developer productivity, AI agents, Recommendations & ranking
  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.

## 2026-09-30

- [How we built an async-aware Python profiler](https://swe.quest/articles/how-we-built-an-async-aware-python-profiler-fed39ce25f0b2b85.md): Datadog Engineering · 2026-09-30 · Hard · 18 min read · Python, Performance engineering, Concurrency, Observability, Runtimes & VMs
  Datadog's Python profiler now reconstructs parent-child relationships between asyncio tasks so flame graphs show "stacked stacks": the logical application path rather than independent per-task stacks.
- [Trading off compute for memory with activation checkpointing](https://swe.quest/articles/trading-off-compute-for-memory-with-activation-checkpointing-1f2b8d13685e738d.md): Jane Street Tech Blog · 2026-09-30 · Hard · 9 min read · Model training, Memory management, Compilers, Performance engineering, Python
  A whole-graph activation checkpointing planner for torch.compile takes an absolute GB memory budget and greedily drops min-cut saves with the cheapest recompute cost per byte of peak memory freed.

## 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-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-29

- [Leveraging PyFixest for High-Cardinality Marketplace Modeling at Instacart](https://swe.quest/articles/leveraging-pyfixest-for-high-cardinality-marketplace-modeling-at-instacart-51b7ebdb06241104.md): Instacart Tech · 2026-06-29 · Hard · 13 min read · Python, Algorithms, Performance engineering, Scientific computing
  Controlling for high-cardinality fixed effects (e.g. thousands of regions, shoppers or customers) makes standard OLS intractable, because each dummy variable expands the Gram matrix and matrix inversion scales as O(k³).

## 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-15

- [Using OxCaml to implement type-safe reference counting between OCaml and Python](https://swe.quest/articles/using-oxcaml-to-implement-type-safe-reference-counting-between-ocaml-and-python-6289aa53698f2fb6.md): Jane Street Tech Blog · 2026-06-15 · Hard · 12 min read · Functional programming, Memory management, Type systems, Python
  Wrapping Python objects as OCaml values in PyOCaml ties each object's release to the OCaml GC finalizer, so large data frames or GPU buffers can stay alive long after Python code drops them.

## 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

- [How Together AI built the world’s fastest speech-to-text stack](https://swe.quest/articles/how-together-ai-built-the-world-s-fastest-speech-to-text-stack-b5ccd6ddea6a414d.md): Together AI · 2026-05-29 · Hard · 7 min read · Inference & serving, Speech & audio, Performance engineering, Python, Linux
  Speech-to-text serving is a full-path systems problem, because ASR models are small while audio inputs are large and need heavy CPU preprocessing.

## 2026-05-04

- [Boosting multimodal inference performance by \>10% with a single Python dictionary](https://swe.quest/articles/boosting-multimodal-inference-performance-by-10-with-a-single-python-dictionary-89ba3b03f48e9ebc.md): Modal · 2026-05-04 · Hard · 7 min read · Inference & serving, Performance engineering, Python, Caching
  SGLang's single-threaded scheduler was wasting host time on multimodal workloads by calling torch.UntypedStorage.\_new\_shared\_cuda for every tensor received over CUDA IPC, repeatedly reopening the same few memory-pool handles.

## 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.

## 2025-11-25

- [Diffusers welcomes FLUX-2](https://swe.quest/articles/diffusers-welcomes-flux-2-7cb4762bf1303faf.md): Hugging Face · 2025-11-25 · Hard · 21 min read · Inference & serving, Computer vision, Model training, Python
  FLUX.2 from Black Forest Labs is a new image generation and editing model, not a drop-in replacement for Flux.1.

## 2025-11-19

- [chDB Kernel Upgrade Journey: Upgrading ClickHouse to v25.8.2.29](https://swe.quest/articles/chdb-kernel-upgrade-journey-upgrading-clickhouse-to-v25-8-2-29-3cca5f2ad115d794.md): ClickHouse · 2025-11-19 · Hard · 16 min read · Memory management, C & C++, Python, Analytics & OLAP, Performance engineering
  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.

## 2025-09-11

- [Tricks from OpenAI gpt-oss YOU 🫵 can use with transformers](https://swe.quest/articles/tricks-from-openai-gpt-oss-you-can-use-with-transformers-aad70bf42c0bd3ff.md): Hugging Face · 2025-09-11 · Hard · 15 min read · Inference & serving, LLMs, Python, Performance engineering
  Hugging Face upgraded transformers to support OpenAI's gpt-oss models, and most of the new features carry over to other models.

## 2025-08-08

- [Accelerate ND-Parallel: A guide to Efficient Multi-GPU Training](https://swe.quest/articles/accelerate-nd-parallel-a-guide-to-efficient-multi-gpu-training-b84f16c2d8888d39.md): Hugging Face · 2025-08-08 · Hard · 18 min read · Model training, Distributed systems, Python
  Accelerate's ParallelismConfig, also exposed through Axolotl config fields, lets you compose data parallelism, FSDP, tensor parallelism and context parallelism in one training setup.

## 2025-08-07

- [Vision Language Model Alignment in TRL ⚡️](https://swe.quest/articles/vision-language-model-alignment-in-trl-e64e05c10318c68f.md): Hugging Face · 2025-08-07 · Hard · 12 min read · Model training, LLMs, Computer vision, Python
  TRL adds vision language model support for several alignment methods.

## 2025-08-05

- [Speed with Rigor: testing smarter with group sequential design](https://swe.quest/articles/speed-with-rigor-testing-smarter-with-group-sequential-design-da7a9a6fe71fd881.md): OLX Tech · 2025-08-05 · Hard · 11 min read · Python
  Group sequential testing (GST) lets A/B experiments be checked at predefined interim stages without the false positive inflation caused by peeking.

## 2025-07-23

- [Fast LoRA inference for Flux with Diffusers and PEFT](https://swe.quest/articles/fast-lora-inference-for-flux-with-diffusers-and-peft-adf61d95e12cb0a4.md): Hugging Face · 2025-07-23 · Hard · 9 min read · Inference & serving, Performance engineering, Computer vision, Python
  Combining Flash Attention 3, torch.compile and TorchAO FP8 quantization with PEFT's LoRA hotswapping speeds up Flux.1-Dev LoRA inference by 2.23x on an H100, and swapping adapters does not trigger recompilation.

## 2025-06-19

- [(LoRA) Fine-Tuning FLUX.1-dev on Consumer Hardware](https://swe.quest/articles/lora-fine-tuning-flux-1-dev-on-consumer-hardware-310a6094e7391e33.md): Hugging Face · 2025-06-19 · Hard · 11 min read · Model training, Computer vision, Python
  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.

## 2025-05-15

- [Falcon-Edge: A series of powerful, universal, fine-tunable 1.58bit language models.](https://swe.quest/articles/falcon-edge-a-series-of-powerful-universal-fine-tunable-1-58bit-language-models-3708dd89aa2b35cd.md): Hugging Face · 2025-05-15 · Hard · 9 min read · Model training, LLMs, Inference & serving, Python
  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.

## 2025-02-04

- [π0 and π0-FAST: Vision-Language-Action Models for General Robot Control](https://swe.quest/articles/0-and-0-fast-vision-language-action-models-for-general-robot-control-ed64bebcaa563b57.md): Hugging Face · 2025-02-04 · Hard · 11 min read · Machine learning, Model training, Computer vision, Python
  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.

[Next page](https://swe.quest/tags/python.md?difficulty=hard&page=2)

Same list as RSS: [https://swe.quest/feed.xml?difficulty=hard&tag=python](https://swe.quest/feed.xml?difficulty=hard&tag=python). 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)
