Skip to content

roton v0.2.0 — first real GGUF tokens

Choose a tag to compare

@chainhelen chainhelen released this 29 Nov 18:36
· 15 commits to main since this release

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.