# Repository Briefing: Michael-A-Kuykendall/shimmy
> Source: https://repoforai.com/repo/Michael-A-Kuykendall/shimmy (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Michael-A-Kuykendall/shimmy
- **Category**: LLMs & Inference (大模型与推理微调)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (90/100 · Maintenance 31/35 · Adoption 19/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2.6.7 (2026-11-12) — https://github.com/Michael-A-Kuykendall/shimmy/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI, CLI, GPU, API
- **Momentum**: 6,047 ★ total (+2 24h / +19 7d) · 588 forks
- **Topics**: `api-server`, `command-line-tool`, `developer-tools`, `gguf`, `huggingface`, `huggingface-models`, `huggingface-transformers`, `inference-server`, `llama`, `llamacpp`, `llm-inference`, `local-ai`
- **When to Use**: Best for: Teams running a verified dense GGUF model on a known GPU configuration that need local JSON completions or chat SSE through an OpenAI-compatible client. Skip if: You need broad API parity, arbitrary GGUF model support, text SSE, INT4 KV, or production guarantees on hardware and context settings you cannot qualify yourself.

## Overview
```text
### Architecture & Core Mechanics
Shimmy is a Rust CLI and HTTP server for local dense GGUF inference. In 2.6.7, Airframe 0.4.6 is the default engine, with libfse in its dependency chain. `serve` takes an explicit model path and bind address; `--ctx` and `--kv-quant` set context and KV-cache configuration. Inference loads lazily by default. Warming a selected model moves cold work ahead of readiness rather than eliminating it.

The HTTP layer exposes selected OpenAI-compatible routes: model listing, JSON chat and text completions, and opt-in chat SSE. Chat defaults to JSON and text streaming is rejected. The tested contract covers exact prompt and completion token counts, `stop` and `length` finish reasons, and typed errors. Chat streaming supports `stream_options.include_usage`, and generation failures are surfaced as errors rather than successful completion.

### Key Capabilities & Differentiators
The validated path uses F32 KV and reference kernels. It covers selected Qwen3-0.6B, Qwen3-1.7B, and Llama 3.2 3B Q4_K_M fixtures under specific context and execution settings. Full logits are compared against independent FP32 references using maximum absolute error of 0.1 and RMS error of 0.03, with matching measured greedy decisions. Being able to parse a GGUF file is not evidence that its model can run correctly.

Release 2.6.7 includes Metal upload-completion and macOS 64-token outer-prefill corrections. The frozen Apple M1 (Virtual) configuration with Apple Paravirtual Metal on macOS 15.8.2 passed 198/198 full-logit comparisons and integrated HTTP, state, reset, cancellation, and recovery checks. Earlier NVIDIA/WSL Vulkan results are separate evidence. Physical M4 remains untested; Qwen3.5 execution is unsupported.

### Trade-offs & Limitations
Compared with the hosted OpenAI API, Shimmy keeps model execution under your control and can reuse a client that only needs the supported routes. You take on model qualification, GPU and driver compatibility, capacity planning, and service reliability. Size memory against the actual model, context, F32 KV cache, and expected concurrency; the certified fixtures do not establish a general VRAM or throughput envelope.

INT4/TurboShimmy and experimental kernels are rejected. Gemma2, MoE, MLA, recurrent, state-space, and multimodal executors are not enabled. The historical intermittent 8K stall, watchdog cleanup, WSL device destruction, and device loss during active generation remain open investigations; passing fixture checks does not settle those operational risks. Commercial redistribution is permitted under the applicable stack licenses, including the additional Apache-2.0 grant for libfse 0.1.4. Preserve dependency notices and check model terms separately.

### Hardware & Deployment Guide
Use a verified 2.6.7 native archive and check its checksum, or build with a Rust toolchain via `cargo install shimmy --version 2.6.7 --locked`. With a working GPU driver and an admitted fixture, start with `shimmy --ctx 512 --kv-quant f32 serve --model-path /path/to/model.gguf --bind 127.0.0.1:11435`. The fast profile does not provide inference. The 2.6.6 distribution milestone was verified native bundles with licensing materials; 2.6.7 adds the qualified virtual M1 Metal path.

For Docker, pin the published 2.6.7 GHCR image: the root Compose file uses an unchanged `latest` tag, publishes port 11434 on all interfaces, and mounts `./models` at `/app/models`. Do not carry over its commented INT4 setting. Loopback can run without a key; non-loopback binds require `SHIMMY_API_KEY`. Configure `SHIMMY_ALLOWED_ORIGINS` for browser origins and provide TLS and network access controls for remote use. With a key configured, only `GET /health` is exempt from credential checks, and origin checks still apply.
```

## Key Capabilities
```text
- Runtime: Rust CLI and HTTP server backed by Airframe 0.4.6 for local dense GGUF inference.
- Model admission: Selected Qwen3-0.6B, Qwen3-1.7B, and Llama 3.2 3B Q4_K_M fixtures, not family-wide coverage.
- Numerical gates: Independent FP32 reference logits, maximum absolute error of 0.1, RMS error of 0.03, and matching measured greedy decisions.
- Metal qualification: 198/198 full-vector comparisons passed on the virtual Apple M1 configuration, alongside integrated HTTP and state checks.
- API surface: JSON chat and text completions, explicit chat-only SSE, token usage, finish reasons, and typed errors.
- Distribution: Versioned native bundles with checksums and licensing materials, Cargo, Homebrew, Scoop, and a versioned GHCR image.
```

## Quick Start / Clone
```bash
cargo install shimmy --version 2.6.7 --locked
shimmy --version
shimmy --ctx 512 --kv-quant f32 serve --model-path /path/to/model.gguf --bind 127.0.0.1:11435
```
