- C++ 55.6%
- C 15.3%
- Python 7.1%
- Cuda 6.1%
- TypeScript 4.2%
- Other 11.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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)
|
||
| .devops | ||
| .gemini | ||
| .github | ||
| .pi/gg | ||
| app | ||
| benches | ||
| ci | ||
| cmake | ||
| common | ||
| conversion | ||
| docs | ||
| examples | ||
| ggml | ||
| gguf-py | ||
| grammars | ||
| include | ||
| licenses | ||
| media | ||
| models | ||
| pocs | ||
| requirements | ||
| scripts | ||
| skills | ||
| src | ||
| tests | ||
| tools | ||
| vendor | ||
| .clang-format | ||
| .clang-tidy | ||
| .dockerignore | ||
| .ecrc | ||
| .editorconfig | ||
| .flake8 | ||
| .gitignore | ||
| .gitmodules | ||
| .pre-commit-config.yaml | ||
| AGENTS.md | ||
| AUTHORS | ||
| build-xcframework.sh | ||
| CLAUDE.md | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| convert_hf_to_gguf.py | ||
| convert_hf_to_gguf_update.py | ||
| convert_llama_ggml_to_gguf.py | ||
| convert_lora_to_gguf.py | ||
| flake.nix | ||
| LICENSE | ||
| Makefile | ||
| mypy.ini | ||
| pyproject.toml | ||
| pyrightconfig.json | ||
| README-upstream.md | ||
| README.md | ||
| requirements.txt | ||
| SECURITY.md | ||
| ty.toml | ||
llama.cpp for Mirai S on 12 GB Ada
This is PrismML's llama.cpp fork with two sets of changes on top:
-
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). -
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). -
Control-vector projection (
--cvec-mode project, from alesha-pro): llama.cpp's control vector applied ash -= |d| (h.v) vafter every layer in its range instead ofh += 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.