Skip to main content
Glama

Silicon Tuner (Open-Core v1.1.0)

Zero-dependency GQA KV-cache & Mixture-of-Experts (--n-cpu-moe) GPU VRAM + System DDR5 RAM calculator and local stdio MCP server for local LLMs.

Stop guessing -ngl, --n-cpu-moe, and -ctk/-ctv flags by trial-and-error OOM crashes on 8 GiB–32 GiB GPUs. silicon-tuner-core computes exact Grouped-Query Attention (GQA) element counts (2 * layers * kv_heads * head_dim * tokens — e.g., 1,610,612,736 elements for 48-layer 4-KV-head 32K context) alongside explicitly separated GPU App Budget vs Physical VRAM (including OS/DWM reserve) ledgers.

Quickstart

# Run instantly via uvx (zero clone required):
uvx --from https://github.com/argoness-prime/silicon-tuner/releases/download/v1.1.0/silicon_tuner_core-1.1.0-py3-none-any.whl silicon-tuner-core selftest
uvx --from https://github.com/argoness-prime/silicon-tuner/releases/download/v1.1.0/silicon_tuner_core-1.1.0-py3-none-any.whl silicon-tuner-core plan --preset qwen3-35b-a3b --vram 16 --ram 64 --quant q4_k_m --ctx 32768

# Register as a local stdio MCP server in Claude Code:
claude mcp add silicon-tuner -- uvx --from https://github.com/argoness-prime/silicon-tuner/releases/download/v1.1.0/silicon_tuner_core-1.1.0-py3-none-any.whl silicon-tuner-core mcp

# Install as an Agent Skill:
npx skills add argoness-prime/silicon-tuner

Exposed MCP Tools (stdio JSON-RPC 2.0)

  1. plan_hybrid_moe_split — Exact Dense & MoE layer/expert VRAM + DDR5 RAM planner returning gpuAppLedger (14.64 / 14.75 GiB), physicalVramLedger (1.25 GiB DWM + 14.64 GiB = 15.89 / 16.00 GiB vs 24.56 GiB naive fp16 OOM), and llamaCppFlags.

  2. compute_gqa_kv_cache — Deterministic GQA KV-cache element & byte math across f16, bf16, q8_0, and q4_0 vs counterfactual Multi-Head Attention (MHA).

Related MCP server: ollama-mcp

Companion Veristrux Engineering Resources

Available Tools

2 tools
compute_gqa_kv_cacheB
Read-onlyIdempotent

Compute exact Grouped-Query Attention (GQA) KV-cache element counts (2 * layers * kv_heads * head_dim * tokens) and byte/GiB footprints across f16, bf16, q8_0, and q4_0 vs counterfactual Multi-Head Attention (MHA).

Inputs: preset, head_dim, kv_quant, num_layers, +3 more.

plan_hybrid_moe_splitC
Read-onlyIdempotent

Compute an exact Dense or Mixture-of-Experts (--n-cpu-moe) GPU VRAM + System DDR5 RAM execution plan with separated GPU App Budget vs Physical VRAM (including OS/DWM reserve) ledgers, GQA KV-cache math, and ready-to-run llama.cpp flags.

Inputs: quant, is_moe, preset, ram_gib, +10 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools are mostly distinct: plan_hybrid_moe_split produces a full execution plan (VRAM/DDR5 ledgers plus llama.cpp flags) while compute_gqa_kv_cache is a focused KV-cache math calculator. There is partial overlap because the planning tool also performs GQA KV-cache math, so an agent wanting only cache figures might hesitate between them, but the scope difference (composite plan vs. single computation) makes the boundary readable.

    Naming Consistency5/5

    Both names follow the same snake_case, verb-first pattern (plan_... and compute_...), with the verb signaling the operation type and the remainder naming the target artifact. No casing or style deviations.

    Tool Count3/5

    Two tools is thin, sitting at the borderline of the 1-2 tool range, though the server's scope (llama.cpp VRAM/MoE execution planning) is extremely narrow. A third tool for weight-quantization sizing would round it out, but each existing tool does earn its place.

    Completeness3/5

    The surface covers the two headline computations — full plan generation and GQA KV-cache footprint — but leaves notable gaps: no standalone model-weight/quantization size calculator, no multi-GPU tensor-split or layer-offload planner, and no batch/context or bandwidth/throughput estimation. Agents can approximate these from the existing outputs but not without extra work.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers