Files
llama-swap/docs
Benson WongandGitHub 6ffd67fdf2
Validate JSON Schema / validate-schema (push) Successful in 37s
Build Containers / build-and-push (cpu) (push) Failing after 39s
Build Containers / build-and-push (cuda) (push) Failing after 30s
Build Containers / build-and-push (cuda13) (push) Failing after 29s
Build Containers / build-and-push (intel) (push) Failing after 30s
Build Containers / build-and-push (musa) (push) Failing after 29s
Build Containers / build-and-push (rocm) (push) Failing after 40s
Build Containers / build-and-push (vulkan) (push) Failing after 32s
Build Containers / delete-untagged-containers (push) Skipped
Linux CI / run-tests (push) Failing after 2m33s
UI Tests / run-tests (push) Successful in 43s
Windows CI / run-tests (push) Canceled after 0s
internal/reference: add indexed docs and /api/tools endpoints (#1054)
Add an Docs agent to the playground that can help the user with more
advanced configuration.

- add mcp 2026-07-28 (stateless mcp) framework 
- add MCP tools for doc search and config search
- add initial set of guides for key topics
- add Docs to the Playground
- removed out of data documentation and plans
2026-08-29 23:43:09 -07:00
..
2026-06-28 17:20:18 -07:00

Hello!

Here you will find the knowledge base for llama-swap. It's easy to get started in llama-swap with just a few lines of YAML. However, the real power comes from the dozens of configuration options to control routing and resource loading exactly as you want it.

llama-swap doesn't come with traditional documentation. Instead, it includes a documentation agent that reads from the knowledge base to answer your questions directly.

Three steps to get started:

  1. Download gemma-4-12B
  2. Install llama-server
  3. Write your first configuration file and start llama-swap

Downloading gemma-4-12B

Docs is evaluated against a gemma-4-12B Q4_K_M from Unsloth. It is a small and capable model that most people can run even if they don't have a GPU.

Download it form https://huggingface.co/unsloth/gemma-4-12b-it-GGUF

uvx hf download unsloth/gemma-4-12b-it-GGUF gemma-4-12b-it-Q4_K_M.gguf --local-dir .

# download MTP
uvx hf download unsloth/gemma-4-12b-it-GGUF MTP/mtp-gemma-4-12b-it-Q8_0.gguf --local-dir .

Installing llama-server

(find instructions for your os) - to be written.

Installing llama-swap

(to be written)

config.yaml

Use this minimal configuration to get gemma-4-12B running to power the Docs agent.

models:
  gemma-4-12B:
    filters:
      stripParams: "temperature, top_k, top_p, repeat_penalty, min_p, presence_penalty"
      capabilities:
        tools: true
      cmd: |
        /path/to/llama-server-latest
        --host 127.0.0.1 --port ${PORT}
        --log-verbosity 4 --log-colors on
        --temp 1.0 --top-p 0.95 --top-k 64

        # model params
        --model /path/to/gemma-4-12b-it-Q4_K_M.gguf
        --model-draft /path/to/mtp-gemma-4-12b-it-Q8_0.gguf

        # enable MTP
        --spec-type draft-mtp
        --spec-draft-n-max 4 --spec-draft-p-min 0.75

Run llama-swap

Start up llama-swap and visit http://localhost:8080

llama-swap -config config.yaml -listen localhost:8080