serve-receipt
On-demand research protocol + deterministic receipt for serving a Hugging Face model on a concrete GPU target — fan out research lanes (model facts/files…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить serve-receipt в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/serve-receipt — model → GPU serving-config receipt, on demand
Turn "give me a great initial config for on " into a repeatable,
witnessed artifact. Two layers: agent lanes do the research; the fak serve-receipt
Go leaf owns every number. The kernel does not trust narrated arithmetic.
Inputs
model— HF repo id (e.g.nvidia/Kimi-K3.1-Pro-NVFP4).gpu— concrete target (e.g. "RTX PRO 6000s", "8×B200"). Resolve ambiguity: if the name spans generations, ASK or state the assumption explicitly (e.g. Ada 48GB vs Blackwell 96GB differ by FP4 support and 2× memory).
Lane protocol (fan out in parallel; each lane returns a ≤45-line receipt with URLs)
- Facts/files lane — model card +
config.json+ exact shard bytes (https://huggingface.co/api/models/<id>?blobs=true): total download bytes (exact, not estimated), per-dtype census, layers (full-attn vs linear/SSM split), MLA dims (kv_lora_rank,qk_rope_head_dim, indexer dims), expert counts, attention-head counts (ALL head groups — TP must divide every one), vocab, context, vision budget,quantization_config, recommended sampling. - Support-matrix lane — engine kernel support for the quant format on the target SM (e.g. NVFP4: native Blackwell CUTLASS/FlashInfer vs trtllm-gen datacenter-only vs Marlin fallback), image tags + CUDA/driver requirements, known-good/broken issues, interconnect reality (NVLink vs PCIe), version gates.
- Recipes lane — known-good launch manifests for the model family on ANY hardware (recipes pages, vendor yamls, docker runs): verbatim args + env, measured tok/s, speculative-decoding configs, GB300-only vs portable knobs, pitfalls (timeouts, cudagraph capture memory, load format).
- Memory-math lane — KV bytes/token (per layer × (latent + rope + indexer) with dtype bytes; note TP-replicated vs TP-sharded), per-SEQUENCE recurrent/SSM state, crossover math; verify against a published recipe number where one exists.
- Host-conventions lane (local, read-only) — how the host repo fronts this engine
(in fak:
fak serve --engine vllm, campaign adapter schema,examples/conventions) so the receipt drops into local tooling.
Synthesis rules (non-negotiable)
- Tiered honesty: produce a rig-size table (infeasible / tight / comfortable). An infeasible rig is STATED, never shipped as an OOM-on-load config. "Best effort" means the honest tiers, not a forced config.
- Units discipline: exact shard bytes from the API; label GB (10^9) vs GiB (2^30) everywhere; GPU VRAM is binary (96GB card = 96 GiB in nvidia-smi).
- Replication vs sharding: MLA latent/indexer KV is often TP-replicated (per-GPU KV does not shrink with TP); recurrent/SSM state usually is sharded. Getting this backwards flips verdicts.
- Head divisibility: TP must divide every attention head group (main heads AND sparse-indexer heads). Prefer PP-heavy layouts when interconnect is PCIe-only.
- Label every unconfirmed claim
UNVERIFIEDwith what would confirm it.
Deterministic core (the leaf — all arithmetic goes through it)
fak serve-receipt profiles
fak serve-receipt plan --facts examples/serve-receipt/<model>.facts.json \
--gpu rtx-pro-6000-blackwell-96gb --tp 8 --pp 3 \
--max-model-len 1048576 --max-num-seqs 32 --format md
# KV-bound rig: attach a host pool instead of failing the rig
fak serve-receipt plan --facts <facts.json> --gpu rtx-pro-6000-blackwell-96gb \
--tp 16 --max-model-len 1048576 --host-kv-gib 32 --dcp 16 --curve
fak serve-receipt validate --receipt <receipt.json> # re-derives every number; refuses mismatches
- Author a facts file (
fak.serve-receipt.facts/1, seeexamples/serve-receipt/README.md) from lane 1+4 outputs withobserved_at+source_urls; exact bytes only. - Verdicts:
OK/TIGHT/OFFLOAD_REQUIRED(exit 0, marked — device KV headroom does not kill a rig; attach a host pool and price the miss curve) /INFEASIBLE(exit 3 — weights; the expert-offload rejection arithmetic prints with the verdict). Offload flags:--host-kv-gib,--host-pool-usability(0.5 default, S8-anchor calibrated),--dcp,--kv-variant fp8|nvfp4|nvfp4_mxfp4keys,--host-bandwidth-gbs,--curve. Weight/expert offload is never a route — KV offload only.validateis the anti-narration gate — run it on the final receipt before presenting it.
Receipt artifact & witnesses
- Save
examples/serve-receipt/<model>.<gpu>.receipt.{md,json}(or scratch for one-offs). - The receipt is NOT done until its witness checklist runs on the rig: server-load
witness (kernel-selection log lines), 3-prompt accuracy spot-check at recommended
sampling,
vllm bench serveconcurrency sweep, KV-headroom log cross-check vs the plan'smax_cached_tokens. Until then the receipt saysnot witnessed yet. - Link the tracking issue; land facts + receipt + leaf changes by explicit paths in one commit
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Bash - 05
WebFetch - 06
WebSearch - 07
Agent
FAQ
Что делает скилл serve-receipt?
On-demand research protocol + deterministic receipt for serving a Hugging Face model on a concrete GPU target — fan out research lanes (model facts/files, engine support matrix, serving recipes, KV/state memory math), compute the tiered feasibility verdict with `fak serve-receipt` (never narrated math), and emit a witnessed launch receipt. Use when asked for an "initial config", "serving receipt", or "how do I serve <model> on <GPUs>".
Как установить скилл serve-receipt?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл serve-receipt запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…