anvil-serving-recipe-feasibility
Bound and eliminate local-model serve recipes with reproducible interval math before expensive downloads or benchmarks. Use for VRAM/RAM/context feasibility, KV-cache and speculative-draft budgeting, quant/runtime shortlists, throughput or time-to-success thresholds, intelligence-loss budgets, and campaigns where unknown serving variables must remain explicit and be updated from evidence.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- anvil-serving-recipe-feasibility
- description
- Bound and eliminate local-model serve recipes with reproducible interval math before expensive downloads or benchmarks. Use for VRAM/RAM/context feasibility, KV-cache and speculative-draft budgeting, quant/runtime shortlists, throughput or time-to-success thresholds, intelligence-loss budgets, and campaigns where unknown serving variables must remain explicit and be updated from evidence.
02 资源文件 4
- 参考文档agents/openai.yaml311 B
- 参考文档references/feasibility-contract.md8.8 KB
- 参考文档references/qwen38-250k-example.json12.2 KB
- 脚本scripts/recipe_feasibility.py28.7 KB
03 SKILL.md 正文
Anvil Serving Recipe Feasibility
Use deterministic math to shrink a recipe campaign before lifecycle or benchmark work. Never turn an estimate into a qualification claim or a route promotion.
Read references/feasibility-contract.md completely before building or changing
a campaign input.
Workflow
-
State the operational requirement before inspecting candidates: usable prompt tokens, output/reasoning reserve, media/protocol overhead, concurrency, hardware capacity, required free headroom, quality-loss ceiling, deterministic gates, and speed or successful-tasks-per-hour threshold.
-
Record every quantity as an exact value, interval, or unbounded unknown. Include unit, status, source, observed date, and notes. Preserve unknowns; never insert a convenient zero.
-
Separate physical capacity from the operational policy envelope. Physical reserves include real co-resident allocations. Policy reserves include declared driver/desktop headroom and an explicit uncertainty band. A policy reserve is a campaign default, not a universal hardware fact: the operator or campaign owner may explicitly reduce or waive it, including to zero, for a model-only device. Record the default reserve, effective reserve, scope, rationale, and the workload telemetry that makes the waiver safe. No separate reserve-specific approval is required; promotion authority remains a distinct gate.
-
Model target weights, draft weights, projector, recurrent state, graphs, workspace, per-sequence state, KV bytes per token, and residency multiplier separately. Do not infer GPU allocation from checkpoint bytes alone.
-
Run the bundled calculator:
python skills/anvil-serving-recipe-feasibility/scripts/recipe_feasibility.py INPUT.json --format markdown -
Interpret classifications narrowly:
proven-infeasible: optimistic demand exceeds physical capacity.modeled-infeasible: the physical failure depends on estimated or assumed bounds rather than only measured/confirmed bounds.policy-infeasible: it could fit physically, but not inside the declared safe operating envelope.empirically-disqualified: measured capacity or a deterministic hard gate already failed for this exact recipe version. Follow the qualification skill's configuration-search loop before rejecting the model; a supported settings change creates a new version to evaluate.requirements-disqualified: measured quality or speed misses a declared threshold.unresolved: bounds overlap or a load-bearing variable is unbounded.benchmark-survivor: resource math passes; correctness, quality, or speed still needs evidence.math-qualified: every encoded bound and measured threshold passes. This still is not production qualification.
-
Create managed serve recipes only for survivors. Use
anvil-serving-llm-qualificationfor the real load, preflight, capacity, correctness, quality, endurance, restoration, and publication workflow. -
Feed measured startup allocations, KV capacity, parser results, quality, latency, acceptance, and tasks/hour back into the same input. Replace an estimate only when the new source and date are recorded; retain the earlier artifact as chronological evidence.
-
When startup fails, separate transport initialization, runner capability, resident model state, compile/autotune workspace, and KV allocation. A pre-KV compile OOM can empirically disqualify the exact recipe and replace measured resident/workspace unknowns, but it does not prove the requested context or the checkpoint itself physically infeasible.
Integrity rules
- Disqualify mathematically only when optimistic bounds fail. Label a failure
caused by headroom or uncertainty policy as
policy-infeasible, not physical impossibility. - A reserve waiver does not waive workload safety, stability, or correctness.
Require per-device startup and post-representative-workload telemetry plus no
OOM, CUDA error, crash, restart, or unexplained request loss. Without that
evidence, leave the candidate
unresolvedorunverified; do not infer safety from startup free VRAM alone. - Require estimated quantities to carry explicit lower and upper bounds. A convenient point estimate is not an optimistic or pessimistic bound.
- Use only measured or confirmed behavioral evidence for
math-qualifiedorrequirements-disqualified. Estimated/assumed metrics may show a projected comparison, but their gate remains unresolved. - Treat paper feasibility as permission to test, never proof that a runtime can allocate or serve the window.
- Keep hard deterministic gates independent. A weighted score cannot compensate for malformed tools, failed exact retrieval, parser corruption, OOM, or an unsupported modality.
- Compare MTP/speculation to a matched no-speculation control. Credit it only when end-to-end or time-to-success improves; acceptance and decode rate are diagnostic variables, not substitutes.
- Keep the router serving-engine agnostic. Runtime, artifact, quantization, and launch details belong in recipe/evidence metadata, not routing decisions.
- Use Anvil Serving managed lifecycle commands after the math stage. Do not operate candidates with ad hoc Docker commands or change a live alias.
- Store sanitized public inputs/results with the dated finding. Put real GPU UUIDs, topology values, and unsanitized working evidence in the private operator repository.
Bundled resources
scripts/recipe_feasibility.py: stdlib interval calculator and Markdown/JSON report generator.references/feasibility-contract.md: equations, input schema, variable catalog, classification semantics, and update rules.references/qwen38-250k-example.json: sanitized worked example with measured, estimated, assumed, and unknown variables.
04 同仓库更多 Skills
voice
暂无简介
workbench
暂无简介
workbench
暂无简介
workbench
暂无简介
anvil-serving-voice-ops
Operate topology-owned anvil-serving voice audio and Realtime proxy lifecycle, Mini-to-Dark loopback forwarding, profiles, sidecars, and bounded voice benchmarks. Use for voice status, logs, start/stop/restart, OpenClaw Talk topology checks, and voice evidence that must remain separate from LLM serve qualification evidence.
anvil-serving-stt-benchmark
Prepare, validate, execute, compare, and publish reproducible multi-sample speech-to-text qualifications in anvil-serving. Use for STT model bakeoffs, corpus-based WER/CER and latency testing, candidate overlays, concurrency tests, restoration checks, and fail-closed stt-benchmark-evidence/v1 artifacts. Do not use for a single voice-pipeline turn or LLM qualification.