项目 · 创意深入
maya-inkling-mini 在单张 RTX 3090 上运行 Inkling 2 Mini 推理引擎
原题
maya-inkling-mini
该项目是 Project Maya 的推理引擎 maya-ik2,把 Thinking Machines 的 26B 循环 MoE 模型 Inkling 2 Mini 全部专家放进 24 GB 显存运行。单卡普通解码约 126 至 128 tok/s,配合官方 DSpark 草稿模型在编辑任务上可到 212 tok/s,预填速度 2742 tok/s,支持最长 344K 上下文、图像和工具调用,也能在 8 GB 显卡上以约 41 tok/s 运行,支持 Linux、Windows、NVIDIA CUDA 与 AMD HIP。
- 分级
- 值得看
- 是否付费
- 免费公开仓库
- 预估学习时长
- 未知
- 收录时间
- 2026-11-25
热度
有热度
- 7 天新增 star
- +112
- 30 天新增 star
- 暂无数据
- Hacker News
- 没有
- 社区讨论
- 0 帖
项目信息
- 语言
- Cuda
- 许可
- MIT
- 最近提交
- 2026-11-24
- Star
- 193
- Fork
- 36
上手方式
bash
git clone https://github.com/alesha-pro/maya-inkling-mini && cd maya-inkling-mini
pip install numpy jinja2 regex pyyaml tqdm requests pillow psutil "jsonschema>=4.18,<5" huggingface_hub
# the engine (NVIDIA CUDA; set CMAKE_CUDA_ARCHITECTURES to your GPU, e.g. 86, 89, 120)
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON \
-DCMAKE_CUDA_ARCHITECTURES=86 -DSTRATA_BUILD_TESTS=OFF
cmake --build build -j 24 --target maya-ik2
# the image encoder (skip it for text only)
git clone --depth 1 -b b12590 https://github.com/ggml-org/llama.cpp third_party/llama.cpp-b12590
cmake -S tools/vision -B build-vision -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLAMA_DIR=third_party/llama.cpp-b12590
cmake --build build-vision -j 24 --target maya-vision
# the weights (17.6 GB), the drafter (0.6 GB) and the tokenizer files
hf download unsloth/Inkling-2-Mini-GGUF Inkling-2-Mini-UD-Q4_K_XL.gguf mmproj-BF16.gguf --local-dir models
hf download thinkingmachines/Inkling-2-Mini mtp.safetensors --local-dir models
python tools/strata_tokenizer.py --gguf models/Inkling-2-Mini-UD-Q4_K_XL.gguf --out ik2 \
--chat-template tools/ik2/chat_template.jinja --check
python serve/server.py --engine maya --config docs/inkling2-mini/ik2-mini.json --host 127.0.0.1 --port 18000