8000 Releases · chainhelen/roton · GitHub
[go: up one dir, main page]

Skip to content

Releases

roton v0.6.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 13:21

This release adds quantized GEMV optimizations and in-memory KV prefix reuse to roton's Rust/Metal GGUF runner. It is aimed at developers exploring inference on Apple Silicon.

What changed

  • Optimize Q8_0, Q4_K and Q6_K decode kernels while keeping weights packed in memory.
  • Reuse a common token prefix across sequential roton chat turns and roton serve requests. The server has one in-memory cache; multi-session cache management is still future work.
  • Keep the macOS arm64 single-binary installation: running roton does not require Rust, Python or Xcode.

Try it

After installing the archive below, run roton info and roton bench 2048 2048 2048 to inspect your GPU and measure kernels without downloading model weights.

Install and generate a first answer · 中文上手 · Share first-run feedback

Verified scope

The public v0.6.0 binary passed an installation checksum check, generated a Qwen3-0.6B response, and exercised cache reuse in two chat turns and five HTTP text/stream requests on an M5 Pro. Full commands, output and binary/model hashes.

These are first-run checks on one machine, not a general performance or model-quality comparison. Older Qwen3-1.7B and llama.cpp measurements are separately versioned in the README. HTTP remains a text-only subset; tool calling and complete Claude Code / OpenCode workflows are not verified. Releases are not yet Apple-notarized.

Full Changelog: v0.5.0...v0.6.0

roton v0.5.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 11:58

Full Changelog: v0.4.0...v0.5.0

roton v0.4.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 11:17

Full Changelog: v0.3.0...v0.4.0

roton v0.3.0 — Chunked Metal 3 / MPP prefill

Choose a tag to compare

@github-actions github-actions released this 30 Nov 04:24

roton v0.3.0 adds chunked prompt prefill to real GGUF inference on Apple Silicon. Pass --prefill-batch 64 to process a prompt with Metal 3 or Metal 4 / MPP FP16 matrix multiplication. Sequential prefill remains the default; decode and the final LM head keep the packed-weight GEMV path.

Download roton-macos-arm64.tar.gz and verify it with SHA256SUMS. No Cargo, Rust, Python or Xcode is required to run the binary.

./roton run SmolLM2-135M-Instruct-Q5_K_S.gguf "Your prompt here" \
  --max-tokens 32 --max-ctx 1024 --prefill-batch 64 --prefill-backend auto

The GPU expands one projection at a time into a reusable FP16 buffer. Chunked absolute-position RoPE, causal GQA and KV writes connect prefill to subsequent decode. Total prefill scratch is capped at 512 MiB. auto uses the compiled MPP pipeline when available and falls back to Metal 3; metal3 and mpp can be selected explicitly for chunked prefill.

Measured on Apple M5 Pro, 48 GiB, macOS 26.6.2, SmolLM2-135M-Instruct Q5_K_S. Median of five runs after one warmup; model-side prefill only, excluding process startup and model loading:

Prompt tokens Sequential Metal 3 batch 64 MPP batch 64
5 25.22 ms 30.17 ms 20.74 ms
117 501.49 ms 53.43 ms 32.77 ms
453 4433.88 ms 204.37 ms 132.25 ms

Raw measurements, memory caveats and reproduction script. These compare paths within roton; there is no same-condition llama.cpp or MLX comparison yet. Short inputs may not benefit, as the 5-token Metal 3 result shows.

Validation covers 19 workspace tests, all nine supported matrix types, CPU-reference causal attention, chunk boundaries and subsequent decode. Q8_0, Q4_K_M, Q5_K_M and Q5_K_S each matched their sequential 32-token continuation on the smoke-test prompt. FP16 changes rounding and can change generated tokens on other inputs. Validation details.

Validated model scope remains SmolLM2-135M-Instruct. Native packed INT4 MPP, flash attention, general Qwen/MoE support and Thunderbolt multi-Mac execution remain planned.

roton v0.2.3

Choose a tag to compare

@github-actions github-actions released this 30 Nov 03:58

roton v0.2.3 adds Q5_0, Q5_1 and Q5_K CPU decoding and fused Metal GEMV. Mixed-quantization GGUF files that v0.2.1 rejected can now run: I verified SmolLM2-135M-Instruct Q4_K_M, Q5_K_M and Q5_K_S on an M5 Pro, with Q8_0 as a regression check.

Download roton-macos-arm64.tar.gz and SHA256SUMS, verify with shasum -a 256 -c SHA256SUMS, extract and run ./roton info. No Cargo, Rust, Python or Xcode is needed. The binary is ad-hoc signed, not Apple-notarized. Build target macOS 13+; CI on macOS 15; real-model checks on macOS 26.

All 16 tests pass locally. CPU Q5 decoding matches pinned llama.cpp reference fixtures exactly; GPU GEMV passes numerical checks across shapes, offsets and batched dispatch. Reproduction details: https://github.com/chainhelen/roton/blob/v0.2.3/docs/VALIDATION.md

This remains an experimental dense llama-architecture engine with greedy decoding and sequential prefill. Batched Metal 4 / MPP model prefill is next; current MPP results are isolated kernel benchmarks. Version 2 is planned around Thunderbolt multi-Mac inference. No full-model parity or speed advantage over another engine is claimed.

roton v0.2.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 03:25

Apple Silicon users can now download a ready-to-run binary. Rust, Cargo and Xcode are not needed to use it.

Download roton-macos-arm64.tar.gz and SHA256SUMS below. Verify with shasum -a 256 -c SHA256SUMS, extract the archive, then run ./roton info. The README includes commands to install it into ~/.local/bin.

This release also skips the output head for intermediate prompt tokens, corrects decode timing to count actual forward steps without terminal-output time, and validates tensor shapes and file ranges before inference. All 13 tests pass, including checks for prefill equivalence and truncated model rejection.

Build target: macOS 13+, arm64. CI runs on macOS 15; real SmolLM2-135M-Instruct Q8_0 inference is checked on macOS 26. The executable is ad-hoc signed, not Apple-notarized.

The runner is still experimental: dense llama-architecture GGUF, greedy decoding and sequential prefill. Qwen, MoE, Q5 kernels and HTTP serving are not included.

roton v0.2.0 — first real GGUF tokens

Choose a tag to compare

@chainhelen chainhelen released this 29 Nov 18:36

First real GGUF tokens

I verified roton run end to end on an Apple M5 Pro with the public SmolLM2-135M-Instruct-Q8_0.gguf checkpoint.

cargo build --release
./target/release/roton run SmolLM2-135M-Instruct-Q8_0.gguf \
  "The capital of France is" --max-tokens 64 --max-ctx 256

The verified run started with " Paris." and measured 134.0 tok/s for the 5-token prompt and 353.3 tok/s while decoding 64 tokens.

Included

  • Zero-copy GGUF mmap weights backed by Metal newBufferWithBytesNoCopy
  • roton run <model.gguf> <prompt> with streaming greedy generation
  • Built-in GGUF BPE and SentencePiece tokenizer
  • Q8_0, Q4_0, Q4_K, Q6_K, F16, and F32 GEMV paths
  • Single-command-buffer per-token execution, QK-Norm, bias, and GPU KV-cache writes
  • Bilingual quick start, measured performance, and an explicit support matrix

Verification

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace — 12 tests passed
  • cargo build --release
  • Real SmolLM2-135M-Instruct Q8_0 smoke test on Apple M5 Pro

Current scope

roton run currently targets standard dense llama GGUF models and uses greedy decoding with sequential prompt prefill. Q5 kernels, batched prompt prefill, Qwen, MoE, GLM, and HTTP serving remain roadmap work.

0