Skip to content
M

metal-kernel

Write Metal/MPS kernels for PyTorch operators

by pytorchFree

#701in AI Skills
0In stores

Description

metal-kernel is an agent skill from the PyTorch repository that guides the writing of Metal kernels for PyTorch operators on Apple Silicon,…

Highlights

  • Native Metal kernels via c10/metal
  • Two workflows: new support and MPSGraph migration
  • Dispatch, kernel and host stub steps
  • Guidance for Apple Silicon operators

Ratings & Reviews

No ratings yet

Be the first to rate metal-kernel.

People also visit

T

tilegym-adding-cutile-kernel

Add a new cuTile GPU kernel operator to TileGym

AI Skills
Get
A

at-dispatch-v2

Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code

AI Skills
Get
P

pytorch-patterns

PyTorch deep learning patterns and best practices for building robust

AI Skills
Get
T

tilegym-converting-cutile-to-triton

Converts cuTile GPU kernels (@ct.kernel) to Triton (@triton.jit)

AI Skills
Get
T

tilegym-improve-cutile-kernel-perf

Iteratively optimize cuTile kernel performance through systematic profiling

AI Skills
Get
P

pytorch-lightning

Deep learning framework (PyTorch Lightning / lightning package)

AI Skills
Get

metal-kernel FAQ

What does the metal-kernel skill do?

It guides writing Metal kernels for PyTorch operators on Apple Silicon, for the MPS device.

How do I install it?

Run: npx skills add https://github.com/pytorch/pytorch --skill metal-kernel

Why native Metal instead of MPSGraph?

The skill says native Metal kernels offer better control, performance and maintainability, and it uses the c10/metal infrastructure for them.

Which files are involved?

The native functions YAML, the Metal kernels folder under the MPS directory, and the host-side stub in the MPS operations folder.

What security checks has it passed?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

What are the best metal-kernel alternatives?

Popular alternatives to metal-kernel include tilegym-adding-cutile-kernel, at-dispatch-v2 and pytorch-patterns. See all metal-kernel alternatives

Developer Stuff

Badges