开放权重模型成本评估
agent-open-weight-cost
针对开放权重模型何时真正节省成本,提供失败即关闭(fail-closed)的单位经济性与混合路由控制。否决出于理念的 GPU 集群以及仅基于基准测试的替换方案。
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- agent-open-weight-cost
- description
- Fail-closed unit-economics and hybrid routing controls for when open-weight models actually save money. Deny ideology GPU fleets and benchmark-only swaps.
02 资源文件 8
- 参考文档references/breadcrumbs-issues.md632 B
- 参考文档references/diagnostic-script.md976 B
- 参考文档references/errors.md466 B
- 参考文档references/events-not-appearing.md1.8 KB
- 参考文档references/examples.md199 B
- 参考文档references/performance-data-missing.md1.1 KB
- 参考文档references/sdk-conflicts.md764 B
- 参考文档references/source-maps-not-working.md1.0 KB
03 SKILL.md 正文
Agent Open-Weight Cost
Use when choosing models for agent/tool workloads, estimating inference cost, or deciding API vs local/open-weight under the monthly cap.
Instructions
- Baseline spend, tokens by task, latency, error/retry, human review.
- Prefer open weights only for stable high-volume tasks with a measurable quality bar.
- Run apples-to-apples evals on real prompts/failures (not leaderboards alone).
- Compute fully loaded cost per successful task including hosting/ops/review.
- Use hybrid routing: cheap first-pass → escalate low-confidence/high-stakes.
- Require strategic leverage (locality, fine-tune, edge, predictable marginal cost)—not vendor-independence vanity.
- Pilot 30–60 days with quality/latency/savings gates and an API fallback.
- Stay API-first for exploration until utilization + TCO justify commit.
- Deny GPU fleets / over-cap self-host under the $20/month hard cap.
python3 scripts/agent_open_weight_cost.py \
--platform hybrid_model_routing \
--workloads scripts/tests/fixtures/agent_open_weight_cost.json \
--cite owc:iap-extract-routing \
--monthly-api-spend-known 1 --tokens-by-task-known 1 \
--latency-known 1 --error-retry-known 1 --human-review-known 1 \
--stable-high-volume 1 --quality-bar-measurable 1 \
--real-prompts 1 --real-failure-cases 1 \
--measured-task-success 1 --measured-schema-adherence 1 \
--measured-human-intervention 1 \
--monthly-operating-cost-usd 5 --successful-tasks-per-month 50 \
--includes-hosting-ops-review 1 --utilization-adequate 1 \
--cheap-first-pass 1 --escalate-low-confidence 1 \
--data-locality 1 \
--quality-within-tolerance 1 --latency-meets-ux 1 \
--savings-exceed-ops-cost 1 --review-window-days 45 --api-fallback 1 \
--exploration-phase 0 --utilization-justifies 1 --tco-justifies 1
Examples
- Allow: hybrid route for repeatable IAP extract with TCO $5/mo and API fallback.
- Deny: “rent A100 to be open-source pure”; “swap model on Elo alone”.
Performance Notes
- Zero-cost path first; hard monthly cap $20.
- Ranker zeros vendor-independence / parameter-count vanity.
Troubleshooting
- Exit
2: inspectbaseline,tco,routing,pilot,phasekeys. - See
docs/AGENT_OPEN_WEIGHT_COST.md.
04 同仓库更多 Skills
任务实施计划编写
writing-plans
当你有某个多步骤任务的规格说明或需求时,在动手编写代码之前使用。
AI 工作流经济性评估
workflow-economics-lite
逃离 AI 试点炼狱:要求构建闭环(completion-loop)工作流,包含单一负责人、基线、经济指标、记录系统(system-of-record)集成和审计轨迹。阻断孤立的聊天机器人以及将“兴趣”当作 ROI 的说法。
完成前验证确认
verification-before-completion
当准备声称工作已完成、已修复或已通过时,在提交或创建 PR 之前使用——要求在做出任何成功声明之前先运行验证命令并确认输出;始终遵循“证据先于断言”。
价值中心五问评估
value-center-lite
应用 InfoQ Rohrer 的价值中心 / VSM 五问法(自主性 + 一致性)。在规划工作、发布版本或审计智能体自主性声明时使用。对于没有 WQTU/付费墙价值的纯产品口号,采取 fail closed(默认拒绝)的严格判定。
技能发现与调用规范
using-superpowers
在每次对话开始时使用——建立如何查找和使用技能的方法,要求在任何回应(包括澄清性问题)之前都必须先调用技能。
Git 工作树隔离开发
using-git-worktrees
在开始需要与当前工作区隔离的功能开发时,或在实施计划执行前使用——通过原生工具或 git worktree 回退机制确保存在隔离的工作区。