Metal kernels that back the OpenAI GPT-OSS reference implementation, repackaged for local experiments on Apple Silicon GPUs. The GPT-OSS project distributes optimized inference primitives for the
gpt-oss-20b
and
gpt-oss-120b
open-weight models, including MXFP4-packed linear layers and fused attention paths that target Metal Performance Shaders on macOS
gpt-oss
.
Installation
pip install kernels # we just need to install the kernels package
The package exposes Python bindings through
gpt_oss_metal_kernels.ops
; these symbols are re-exported in
gpt_oss_metal_kernels.__init__
for convenience. All kernels expect Metal (
mps
) tensors and operate in place on user-provided outputs to minimize additional allocations.
For implementation details, inspect the
.metal
shader files.
Usage & Consistency Checks
Each example below compares a Metal kernel against the canonical PyTorch equivalent using shared random inputs. The snippets assume an Apple Silicon machine with an
mps
device and that
kernels
installed in the active environment.
These kernels form the core of the GPT-OSS inference stack, enabling BF16 activations with MXFP4 weights while keeping latency low on Metal GPUs
gpt-oss
. Use the snippets as templates when validating your own model integrations or when extending the kernel set.
Runs of kernels-community gpt-oss-metal-kernels on huggingface.co
482
Total runs
0
24-hour runs
81
3-day runs
81
7-day runs
451
30-day runs
More Information About gpt-oss-metal-kernels huggingface.co Model
gpt-oss-metal-kernels huggingface.co is an AI model on huggingface.co that provides gpt-oss-metal-kernels's model effect (), which can be used instantly with this kernels-community gpt-oss-metal-kernels model. huggingface.co supports a free trial of the gpt-oss-metal-kernels model, and also provides paid use of the gpt-oss-metal-kernels. Support call gpt-oss-metal-kernels model through api, including Node.js, Python, http.
gpt-oss-metal-kernels huggingface.co is an online trial and call api platform, which integrates gpt-oss-metal-kernels's modeling effects, including api services, and provides a free online trial of gpt-oss-metal-kernels, you can try gpt-oss-metal-kernels online for free by clicking the link below.
kernels-community gpt-oss-metal-kernels online free url in huggingface.co:
gpt-oss-metal-kernels is an open source model from GitHub that offers a free installation service, and any user can find gpt-oss-metal-kernels on GitHub to install. At the same time, huggingface.co provides the effect of gpt-oss-metal-kernels install, users can directly use gpt-oss-metal-kernels installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
gpt-oss-metal-kernels install url in huggingface.co: