Skip to content
M

metal-kernel

Write Metal/MPS kernels for PyTorch operators

by pytorchFree

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

P

pytorch-patterns

PyTorch deep learning patterns and best practices for building robust

AI Skills
Launch
P

pr-review

Review PyTorch pull requests for code quality, test coverage, security

AI Skills
Launch
P

pytorch-lightning

Deep learning framework (PyTorch Lightning / lightning package)

AI Skills
Launch
S

stable-baselines3

Trains and evaluates single-agent reinforcement learning with Stable Baselines3

AI Skills
Launch
T

torch-geometric

Supports PyTorch Geometric (PyG) graph neural networks

AI Skills
Launch
T

torchdrug

Builds and troubleshoots TorchDrug 0.2.1 workflows for molecular graphs

AI Skills
Launch

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 pytorch-patterns, pr-review and pytorch-lightning. See all metal-kernel alternatives

Developer Stuff

Badges