No description
  • C++ 55.6%
  • C 15.3%
  • Python 7.1%
  • Cuda 6.1%
  • TypeScript 4.2%
  • Other 11.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Cary Palmer 9b28b60577 json-schema-to-grammar : convert empty anyOf / oneOf / type unions instead of emitting an empty rule
A schema with an empty union ("anyOf": [], "oneOf": [] or "type": []) produced a rule with no
alternatives ("root ::=" for a root schema). The grammar parser rejects it, so the request fails
with "failed to parse grammar". Schema generators used by agent frameworks emit such unions, and
the failure ends the agent's turn. The keyword constrains nothing, so drop it and convert the rest
of the schema, in the C++ and the Python converter. Adds test cases for both converters.

Reported-by: Milor123 (professorpalmer/bonsai-ada-surgery#3)
2026-10-07 10:54:38 -05:00
.devops ci : Update OpenVINO to 2026.3, skip nemotron-h rollback test (#27292) 2026-08-18 12:02:22 +02:00
.gemini contributing: tighten AI usage policy (#18388) 2025-12-29 16:01:32 +01:00
.github release: ship CPU backend variants in the CUDA and HIP bundles (#241) (#271) 2026-09-25 10:39:48 -07:00
.pi/gg ci : add older, min and dry-run options to ccache-clear (#27504) 2026-08-22 11:31:30 +03:00
app cmake : introduce semantic versioning (#26839) 2026-08-12 14:15:03 +02:00
benches benches : add Nemotron 3 Nano on DGX Spark (#20652) 2026-03-16 21:50:43 +02:00
ci ci : add test-llama-archs tensor split for Metal (#27598) 2026-08-23 15:57:07 +03:00
cmake CI: Use LLVM's OpenMP over MSVC_DEBUG_non_redist on Windows (#26678) 2026-08-20 15:42:26 +02:00
common json-schema-to-grammar : convert empty anyOf / oneOf / type unions instead of emitting an empty rule 2026-10-07 10:54:38 -05:00
conversion spec : add DFlash2 support (local convolution + candidate selector) (#27342) (#27816) (#261) 2026-09-25 11:22:35 -07:00
docs x86: SSE2/SSSE3 vec_dot for PTQ1_0 and PQ2_0 (#248) 2026-09-25 11:42:36 -07:00
examples json-schema-to-grammar : convert empty anyOf / oneOf / type unions instead of emitting an empty rule 2026-10-07 10:54:38 -05:00
ggml Mirai long-input path: chunk bounded by levels + products footprint (default 128 MiB); optional two-side-stream pipeline (GGML_MIRAI_PIPELINE=1, off: no gain on Ada, the int8 GEMM saturates the SMs) 2026-10-05 18:28:27 -05:00
gguf-py spec : add DFlash2 support (local convolution + candidate selector) (#27342) (#27816) (#261) 2026-09-25 11:22:35 -07:00
grammars docs : fix typos in CUDA-FEDORA.md and grammars/README.md (#24459) 2026-06-15 01:33:38 +08:00
include control vector: projection mode (--cvec-mode project) 2026-10-06 19:30:20 +00:00
licenses refactor : remove libcurl, use OpenSSL when available (#18828) 2026-01-14 18:02:47 +01:00
media media : add transparent icon svg and png [no ci] (#15891) 2025-09-10 14:51:28 +03:00
models model: add Kimi-K3 text model (#26185) 2026-08-15 17:11:05 +02:00
pocs libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
requirements requirements: use stable torch packages on s390x (#26864) 2026-08-11 21:58:53 +08:00
scripts ci : apply ccache-clear with older/min/dry-run to all ccache jobs (#27602) 2026-08-24 10:49:20 +03:00
skills test: move tools/parser to tests (#27548) 2026-08-23 18:38:51 +02:00
src cvec projection: guard the per-layer flag when the mode is set after the vector was applied (steered is sized in apply()) 2026-10-06 16:27:12 -05:00
tests json-schema-to-grammar : convert empty anyOf / oneOf / type unions instead of emitting an empty rule 2026-10-07 10:54:38 -05:00
tools server: --reasoning-effort-allow/-fallback and --reasoning-max-tokens-floor 2026-09-27 02:34:55 -05:00
vendor vendor : update subprocess.h (#27409) 2026-08-23 10:38:29 +03:00
.clang-format fix: apply clang-format to CUDA macros (#16017) 2025-09-16 08:59:19 +02:00
.clang-tidy clang-tidy : disable warning about performance enum size (#16127) 2025-09-22 19:57:46 +02:00
.dockerignore docker : prebuild web UI for s390x build [no release] (#24829) 2026-06-20 05:54:42 -05:00
.ecrc common : Update stb_image.h to latest version (#9161) 2024-08-27 08:58:50 +03:00
.editorconfig ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
.flake8 llama : move end-user examples to tools directory (#13249) 2025-05-02 20:27:13 +02:00
.gitignore ui: PWA support (#23871) 2026-06-12 15:53:26 +02:00
.gitmodules ggml : remove kompute backend (#14501) 2025-07-03 07:48:32 +03:00
.pre-commit-config.yaml convert.py : add python logging instead of print() (#6511) 2024-05-03 22:36:41 +03:00
AGENTS.md Update AGENTS.md 2026-08-29 22:39:43 -07:00
AUTHORS readme : update status badges + regen AUTHORS (#27317) 2026-08-18 14:35:04 +03:00
build-xcframework.sh build : fix xcframework + cmake clean-up (#27304) 2026-08-18 11:16:51 +03:00
CLAUDE.md contributing: tighten AI usage policy (#18388) 2025-12-29 16:01:32 +01:00
CMakeLists.txt dspark: add corrected draft runtime and shared packed target head 2026-09-17 21:25:55 -07:00
CMakePresets.json cmake : Add CMake presets for Linux and GCC (#14656) 2025-07-13 08:12:36 +03:00
CODEOWNERS HIP: remove rocWMMA FlashAttention (#26046) 2026-07-24 17:53:54 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2026-08-29 23:28:05 -07:00
convert_hf_to_gguf.py convert: add option to create separate dspark GGUF (#26452) 2026-08-02 23:16:31 +08:00
convert_hf_to_gguf_update.py Add support for Laguna XS.2 & M.1 (#25165) 2026-07-22 09:54:08 +08:00
convert_llama_ggml_to_gguf.py ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
convert_lora_to_gguf.py convert : fix lora base model arch retrieval (#24621) 2026-06-15 00:55:26 +02:00
flake.nix fix(nix): remove non-functional llama-cpp cachix cache from flake.nix (#15295) 2025-08-13 11:21:31 -07:00
LICENSE docs : Minor cleanups (#19252) 2026-02-02 08:38:55 +02:00
Makefile make : remove make in favor of CMake (#15449) 2025-08-20 13:31:16 +03:00
mypy.ini convert : partially revert PR #4818 (#5041) 2024-01-20 18:14:18 -05:00
pyproject.toml model: add Mellum architecture (#23966) 2026-06-02 22:11:12 +03:00
pyrightconfig.json ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
README-upstream.md README: the Mirai S engine front page; the fork's original README kept as README-upstream.md 2026-10-06 12:22:16 -05:00
README.md README: the Mirai S codec is Mirai Labs'; alesha-pro ported it to ggml; credit Qwen and sudoingX 2026-10-06 23:34:12 -04:00
requirements.txt tool-call: fix Qwen 2.5 Coder support, add micro benchmarks, support trigger patterns for lazy grammars (#12034) 2025-03-05 13:05:13 +00:00
SECURITY.md security : clarify about AI-generated reports (#26579) 2026-08-05 13:27:06 +02:00
ty.toml mtmd : DeepSeek-OCR image processing fixes, img_tool::resize padding refactor (#23345) 2026-05-20 17:37:10 +02:00

llama.cpp for Mirai S on 12 GB Ada

This is PrismML's llama.cpp fork with two sets of changes on top:

  1. The serving patches from bonsai-ada-surgery (also open as PrismML PRs #319-#323): the tiered KV cache (--kv-vram-cells: a VRAM head and a pinned-host tail in one CUDA address range, copy-engine staging), MTP drafting at every depth (--spec-draft-window, --spec-draft-n-max-tail), harness-proofing (--reasoning-effort-allow/-fallback, --reasoning-max-tokens-floor), batch-invariant kernels (GGML_CUDA_BATCH_INVARIANT), per-op GPU timing (GGML_CUDA_OP_TIMING).

  2. Mirai S (Mirai Labs' Qwen3.8-27B-S, in alesha-pro's GGUF conversion alesha-pro/Qwen3.8-27B-S-mirai-GGUF): Mirai Labs' trellis codec, as alesha-pro ported it to ggml in alesha-pro/llama.cpp-mirai-s (ggml types 90-93 with CPU and CUDA kernels, model-wide rotation tensors and per-row scales, the split attention gate, the graph hook), checked greedy token-for-token against that fork; then the prefill work done here: GGML_MIRAI_PREFILL_PLANES=ffn (one int8 activation plane for the FFN matmuls of prompt-sized batches, +18% prefill at KL 0.00028), the packed 1-bit KQ mask (--kq-mask-packed, read natively by the tensor-core attention kernel), and the level-decode chunk bounded by its buffer footprint (GGML_MIRAI_LEVELS_MIB).

  3. Control-vector projection (--cvec-mode project, from alesha-pro): llama.cpp's control vector applied as h -= |d| (h.v) v after every layer in its range instead of h += d. A unit direction at scale 1.0 is removed from the residual stream. With the refusal direction published next to the weights this is a run-time abliteration for trellis codes that cannot be edited; layers without a direction in the file are left alone, and without the flag nothing changes (greedy identity re-checked).

Build like any llama.cpp with -DGGML_CUDA=ON; the product launcher, measurements and receipts live in mirai-s-ada. The fork's original README is README-upstream.md; licenses: MIT throughout (the ggml authors, PrismML, alesha-pro; notices preserved). The model and the Mirai S codec are Mirai Labs' (base model Qwen3.8-27B by Qwen). The planar activation layout and the batch-invariant mode are sudoingX's (PrismML PR #218), kept with their authorship. Not affiliated with any of them.