[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109182":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},109182,"Hyperkernel","Hyperstitioncc\u002FHyperkernel","Hyperstitioncc",null,"Rust",203,23,5,0,3,81,50.74,"MIT License",false,"main",true,[],"2026-11-10 19:03:54","2026-11-20 08:26:02","# Hyperserve\n\nThis repository contains the public implementations of the Megakernels generated by the Hyperkernel. This repository is in Alpha, and will be continuously updated over the next few weeks with more models and API simplifications, alongside performance improvements.\n\n## Requirements\n\nThe current megakernels are compiled for NVIDIA B300s: 4 for LLMs, 1 for driving, DNA, robotics and protein folding, 2 for world models. Each command runs on the first GPUs `CUDA_VISIBLE_DEVICES` lists. LLMs also need about 203 GB of host RAM for the Engram tables, mapped once for all 4 GPU processes.\n\nThe user must provide the model checkpoints as directories of `.safetensors` files; none is included in the repository. They are DeepSeek-V4.1-Flash with its `tokenizer.json`, openpilot v0.11.2's driving model, Evo 2 7B (`arcinstitute\u002Fevo2_7b`), Matrix-Game 3.0 (`Skywork\u002FMatrix-Game-3.0`), ACT (`lerobot\u002Fact_aloha_sim_transfer_cube_human`), π₀-FAST (`lerobot\u002Fpi0fast-base`) and ESMFold (`facebook\u002Fesmfold_v1`).\n\nBuilding needs Rust (see `rust-toolchain.toml`) and an NVIDIA driver R580 or newer:\n\n```sh\ncargo build --release\n```\n\n## CLI format\n\nThe top level CLI branches on the type of host server you want to run:\n\n```sh\nhyperserve \u003Cllm | drive | dna | world | robot | fold> --model \u003Cname> --weights DIR [options]\n```\n\nEach command picks its kernels from `kernels\u002Fb300\u002F` and lists its options with `--help`.\n\n## LLMs\n\n```sh\nhyperserve llm --model deepseek-v4.1-flash --weights DIR [--preset c1] [--host 127.0.0.1] [--port 8000] [--api-key KEY]\n```\n\nRuns an OpenAI-compatible server on 4 GPUs. `--weights` is the checkpoint directory of `deepseek-ai\u002FDeepSeek-V4.1-Flash` at revision `314113f8a7dadb388215396ba5fbee2c610a04d6`, as published, which also holds the tokenizer. Requests are OpenAI chat or completion JSON; with `--api-key` (or `HYPERSERVE_API_KEY`) they must send `Authorization: Bearer KEY`.\n\nThere is one preset per maximum concurrency, all with a 1M-token context: `c1`, `c2`, `c4`, `c5`, `c6`, `c7` and `c8` (`c6` and `c7` run the `c5` kernels). Each preset's prefill plan is tuned in the binary.\n\n## Driving\n\n```sh\nhyperserve drive --model openpilot --weights DIR --frames DIR [--count N] [--out DIR]\n```\n\nRuns openpilot's driving model over camera frames on 1 GPU and writes its outputs per frame. `--frames` holds `new_img.u8`: frames of 2 cameras by 6 planes of 128 by 256 bytes (the model's YUV 4:2:0 input), back to back. `--weights` is converted from openpilot v0.11.2's `driving_supercombo.onnx` (needs `onnx`, `numpy` and `safetensors`):\n\n```sh\npython scripts\u002Fopenpilot_safetensors.py driving_supercombo.onnx DIR\n```\n\n## DNA\n\n```sh\nhyperserve dna --model evo2-7b --weights DIR --sequence FILE [--steps 1500] [--top-k K] [--seed S]\n```\n\nGenerates DNA with Evo 2 7B on 1 GPU from a prompt sequence: a FASTA or plain file of A, C, G and T, its header lines skipped, the prompt and its steps within 1,048,576 positions. `--weights` is converted from `evo2_7b.pt` of `arcinstitute\u002Fevo2_7b` (needs `torch` and `safetensors`):\n\n```sh\npython scripts\u002Fevo2_safetensors.py evo2_7b.pt DIR\n```\n\n## World models\n\n```sh\nhyperserve world --model mg3 --weights DIR [--steps 4] [--actions FILE] [--frames-out FILE]\n```\n\nGenerates video with MG3 on 2 GPUs: a first clip of 57 frames, then `--steps` chunks of 40. `--actions` is a text file of one line per frame, `w s a d pitch yaw`. Frames are written, as raw 1280 by 704 RGB, only with `--frames-out`; otherwise only timings print. `--weights` is the `base_distilled_model` directory of `Skywork\u002FMatrix-Game-3.0`, with `MG-LightVAE_v2.pth`'s decoder converted into it (needs `torch` and `safetensors`):\n\n```sh\npython scripts\u002Fmg3_vae_safetensors.py MG-LightVAE_v2.pth DIR\n```\n\n## Robotics\n\n```sh\nhyperserve robot --model act --weights DIR --images FILE [--states FILE] [--count N] [--out DIR]\n```\n\nRuns ACT (the Action Chunking Transformer) on 1 GPU, one control tick per camera image: the image and the joint state in, a chunk of 100 actions of 14 joints out, the whole tick in one kernel launch (the ResNet-18 backbone, the transformer encoder and decoder, the action head and the input and output normalization). `--images` holds raw u8 RGB images of 480 by 640, back to back, cycled when `--count` asks for more ticks. `--states` holds 14 f32 joint positions per tick (zeros if omitted). Each tick prints its time; with `--out`, `actions.f32` holds every tick's chunk. `--weights` is converted from `lerobot\u002Fact_aloha_sim_transfer_cube_human` (needs `torch`, `safetensors` and `lerobot` 0.3.3; the backbone's batch norms are folded and the tick's input-independent tables computed once):\n\n```sh\npython scripts\u002Fact_safetensors.py CHECKPOINT_DIR DIR\n```\n\n### π₀-FAST\n\n```sh\nhyperserve robot --model pi0-fast --weights DIR --images FILE --ids FILE (--lens N | --lens-file FILE) [--count 13] [--fixed60] [--out FILE]\n```\n\nRuns π₀-FAST on 1 GPU, one action chunk per request: the three cameras' SigLIP encoding, the PaliGemma prefill and the autoregressive FAST-token decode, all inside one resident kernel; the host pushes each observation through a ring and reads the chunk's tokens back. `--images` holds the 3 cameras' images as f32 `[3, 3, 224, 224]`, each pixel `x \u002F 127.5 - 1`; `--ids` the prompt's 200 ids (i32, padded with 0); `--lens` the prefix's real rows. Each chunk prints its time and token ids. `--fixed60` runs the measured benchmark's kernel instead (exactly 60 tokens, end-of-sequence off). `--weights` is `lerobot\u002Fpi0fast-base` at revision `308eb844dabdf46cd9dcd5138c1988b7a234f1d9`, as published (no conversion).\n\n## Protein folding\n\n```sh\nhyperserve fold --model esmfold --weights DIR (--sequence AA | --fasta FILE) [--folds 3] [--out FILE.pdb]\n```\n\nFolds a protein with ESMFold on 1 GPU, sequence in and structure out: the ESM-2 3B language model, 4 recycles of the 48-block folding trunk and the structure module, with the recycled states and distogram bins passed between them on the GPU. The kernels are compiled for each protein length: `kernels\u002Fb300\u002Fesmfold\u002F\u003Cresidues>\u002F` holds the lengths shipped, and a sequence of another length is refused with the list. Each fold prints its time and mean pLDDT; `--out` writes the last fold's backbone (N, CA, C) as PDB, with each residue's CA pLDDT as its B-factor. `--weights` is converted from `facebook\u002Fesmfold_v1`'s `pytorch_model.bin` (needs `torch` and `safetensors`):\n\n```sh\npython scripts\u002Fesmfold_safetensors.py pytorch_model.bin config.json DIR\n```\n","Hyperkernel 是一个面向多模态大模型推理优化的 Rust 实现框架，提供统一 CLI 接口驱动跨领域专用 Megakernel（LLM、自动驾驶、DNA 生成、蛋白质折叠、机器人控制、世界模型）。其核心特点是为 NVIDIA B300 系列 GPU 预编译高度定制化的内核，支持 OpenAI 兼容 API、低延迟帧处理、序列生成与结构预测等原生任务调度，并通过 Engram 表内存映射提升 LLM 多实例吞吐。适用于需要在单机多卡上高效部署异构 AI 模型的科研验证、边缘智能或集成测试场景。",2,"2026-11-24 04:36:06","CREATED_QUERY"]