← 开源

Kernels, of the mega variety :)

Python
增长势头
+024 小时新增 Star0.0%
891
Star
72
Fork
+1
本周
2
贡献者
创建于 2025-05-27 · 更新于 2026-12-05 · 今日第 16207 名
主要开发者
README

Megakernels!

Installation

Clone this repo and run:

git submodule update --init --recursive
pip install uv
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
uv pip install -e .

Low-Latency Llama Demo

First, to compile the megakernel, run:

# from the repo root
export THUNDERKITTENS_ROOT=$(pwd)/ThunderKittens
export MEGAKERNELS_ROOT=$(pwd)
export PYTHON_VERSION=3.12 # adjust if yours is different
export GPU=H100 # options are {H100, B200}, else defaults to B200
cd demos/low-latency-llama
make

To start an interactive chat session with the model, run:

# from the repo root
python megakernels/scripts/llama_repl.py

To benchmark the megakernel, run:

# from the repo root
python megakernels/scripts/generate.py mode=mk prompt="tell me a funny joke about cookies" ntok=100
排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载