Skip to content

Instantly share code, notes, and snippets.

@malfet
malfet / vllm_reporters_contributors.md
Created September 6, 2026 15:37
Top vLLM issue reporters & code contributors since 2026-01-01 (incl./excl. CODEOWNERS maintainers)

Top vLLM reporters & contributors since 2026-01-01

Generated 2026-09-06 15:37 UTC. Repo: vllm-project/vllm.

  • Reporters: 5247 non-PR issues opened since 2026-01-01 (GitHub GraphQL, full pagination), grouped by author.
  • Contributors: commits since 2026-01-01 from the GitHub stats/contributors endpoint (landed commits, ~1 per squash-merged PR).
  • Maintainers excluded in the second view = the 56 unique handles in the repo's .github/CODEOWNERS.
@malfet
malfet / top_reporters_contributors.md
Last active September 7, 2026 15:01
Top PyTorch issue reporters & code contributors since 2026-01-01 (incl./excl. core maintainers)

Top PyTorch reporters & contributors since 2026-01-01

Generated 2026-09-07 15:01 UTC by top_reporters_contributors.py.

  • Reporters: non-PR issues opened since 2026-01-01 in issues.db, grouped by author, bots excluded.
  • Contributors: commits since 2026-01-01 in ~/git/pytorch/pytorch (git author), bots excluded. Counts are landed commits, ~1 commit per squash-merged PR.
  • Core maintainers excluded where noted: malfet, alban, ngimel, ezyang, ptrblck.
//
// Generated by LLVM NVPTX Back-End
//
.version 8.8
.target sm_100a
.address_size 64
// .globl fused_moe_kernel // -- Begin function fused_moe_kernel
.extern .shared .align 16 .b8 global_smem[];
@malfet
malfet / skip_delta.py
Last active May 29, 2026 14:44
Computes delta in number of skipped tests
"""Per-commit pass/skip/flaky/fail counts across the last N commits.
Usage: python skip_delta.py [<sha>] [-n 5] [--workflow trunk]
[--job-filter 'jammy.*cuda'] [--repo pytorch/pytorch]
Requires: curl_cffi, gh CLI.
"""
import argparse
import gzip
@malfet
malfet / fetch_commit_statuses.py
Created May 7, 2026 15:29
Fetch commit statuses from HUD
"""Fetch the latest N commits' job statuses from hud.pytorch.org."""
import argparse
import gzip
import json
import sys
from curl_cffi import requests
def fetch_hud(owner: str, repo: str, branch: str, count: int) -> dict:
@malfet
malfet / tune_mpp.py
Last active April 30, 2026 15:24
Tune MPP matmul2d tile sizes for MPS F.linear
"""Tune MPP matmul2d tile sizes across dtypes and shapes."""
import time
import torch
import torch.nn.functional as F
torch.set_grad_enabled(False)
WARMUP = 20
REPEAT = 200
BATCH = 10
#!/usr/bin/env python3
"""
Repack torchaudio wheels as cp310-abi3 (stable ABI) wheels.
Downloads the cp310 wheel for each platform from PyPI, verifies all native
extensions use the stable ABI, patches the WHEEL tag (adds PEP 427 Build
number) and METADATA (adds torch>=<version> dependency), and repacks.
RECORD regeneration and repacking are handled by auditwheel's InWheelCtx.
Usage:
"""
Demonstrate the NEON overread in F.interpolate by placing uint8 tensor data
right before an unmapped guard page.
vld3_u8 in the block-of-4 loop reads 24 bytes (8 pixels × 3 channels)
but only needs 12 bytes (4 pixels × 3 channels). If the extra 12 bytes
cross into an unmapped page, we get SIGBUS.
"""
import ctypes
#!/usr/bin/env python3
"""
Fetch PyTorch outside collaborators and infer company affiliation from commit emails.
Requires: `gh` CLI authenticated with appropriate permissions.
Usage: python fetch_collaborator_affiliations.py [--repo pytorch/pytorch] [--max-commits 100]
Caches results in pytorch_collab_emails.json to avoid re-fetching known collaborators.
"""
#!/usr/bin/env python3
"""Print all ops with MPS skips for non-contiguous input."""
import unittest
from torch.testing._internal.common_methods_invocations import op_db
from torch.testing._internal.opinfo.core import DecorateInfo
def main():
ops_with_mps_noncontig_skip = []