metal-kernel

97.9k
pytorchpytorch

Write Metal/MPS kernels for PyTorch operators. Use when adding MPS device support to operators, implementing Metal shaders, or porting CUDA kernels to Apple Silicon. Covers native_functions.yaml dispatch, host-side operators, and Metal kernel implementation.

195 days ago

torchforge-rl-training

21.8k
davila7davila7

Provides guidance for PyTorch-native agentic RL using torchforge, Meta's library separating infrastructure from algorithms. Use when you want clean RL abstractions, easy algorithm experimentation, or scalable training with Monarch and TorchTitan.

Reinforcement LearningPyTorchGRPO+4
195 days ago

write-tests

1.2k
meta-pytorchmeta-pytorch

Write failing tests from requirements. Invoke for each todo before /implement.

195 days ago

rfc-check

1.2k
meta-pytorchmeta-pytorch

Determine if proposed changes require an RFC. Use when planning significant changes, before starting major work, or when asked whether an RFC is needed.

195 days ago

implement

1.2k
meta-pytorchmeta-pytorch

Make tests pass. Invoke after /write-tests produces failing tests.

195 days ago

pre-submit-pr

1.2k
meta-pytorchmeta-pytorch

Validate changes before submitting a pull request. Run comprehensive checks including lint, tests, alignment review, and RFC analysis. Use before creating a PR, when asked if code is ready for review, or before pushing for PR.

195 days ago

alignment-review

1.2k
meta-pytorchmeta-pytorch

Review code changes for bugs and alignment with OpenEnv principles and RFCs. Use when reviewing PRs, checking code before commit, or when asked to review changes. Implements two-tier review model.

195 days ago

simplify

1.2k
meta-pytorchmeta-pytorch

Refactor code after tests pass. The 'Refactor' phase of Red-Green-Refactor.

195 days ago

work-on-issue

1.2k
meta-pytorchmeta-pytorch

Start work on a GitHub issue. Extracts requirements, creates worktree, sets up TDD workflow.

195 days ago

mlx-dev

6
ettrickshepherdettrickshepherd

Write correct, idiomatic Apple MLX code for Apple Silicon ML. Use when working with MLX arrays, neural networks, training loops, lazy evaluation, unified memory, mx.eval, mx.compile, Metal GPU, memory optimization, quantization, or Apple Silicon performance. Covers critical API differences from PyTorch/NumPy, array indexing gotchas (lists must be mx.array, slices create copies), NHWC format for Conv2d, __call__ not forward(), float64 CPU-only, mlx-lm integration, and debugging patterns.

195 days ago

mlx-dev

luqmannurhakimbazmanluqmannurhakimbazman

Write correct, idiomatic Apple MLX code for Apple Silicon ML. Use when working with MLX arrays, neural networks, training loops, lazy evaluation, unified memory, mx.eval, mx.compile, Metal GPU, memory optimization, quantization, or Apple Silicon performance. Covers critical API differences from PyTorch/NumPy, array indexing gotchas (lists must be mx.array, slices create copies), NHWC format for Conv2d, __call__ not forward(), float64 CPU-only, mlx-lm integration, and debugging patterns.

195 days ago