feat: pin (or publish) the OpenRouter provider per run; enable prompt caching on the invariant prompt part
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- python
- 领域
- ai, backend, performance
调研方向
追踪 benchmark 请求的构建位置、responses.jsonl 中的 provider 数据进入 run 或 leaderboard 元数据的位置,以及三部分 prompt 的组装位置。首先定位这些入口点,然后根据 benchmark 现有的 outputs 和成本测量结果,验证 provider 可见性、缓存行为以及 seeded run 的可复现性。
由索引模型根据 Issue 内容生成。
描述
1. Provider variance is folded into model variance
The response logs in the CC0 dataset show extra_body with
provider: {sort: "throughput"}, which scattered generations across upstreams —
we saw Amazon Bedrock, Google, SiliconFlow, AtlasCloud, and DeepInfra serving
runs of the same model. Upstreams differ in quantization and sampling defaults,
so part of the leaderboard's run-to-run variance is provider variance, not
model variance.
Suggestions, in increasing order of effort:
- Surface the served provider (already present in
responses.jsonl) in the
leaderboard/run metadata. - Pin
provider.order/provider.onlyper model for benchmark runs.
2. Prompt caching is off — roughly a 3× cost saving available
The ~42k-char invariant part 0 (game manual + strategy) is re-sent on every one
of ~200 calls per game (cache_control is unset on all three content parts) —
about 10.5k tokens of identical input per call, which matches the measured 14k$5.60/game → under $2 at Sonnet-class pricing), with
input tokens/call. The three-part message split is already exactly the right
shape for caching: adding cache_control to part 0 (Anthropic-style caching,
which OpenRouter passes through) cuts per-game cost roughly 3× for
caching-capable models (
no behavioral change.
3. Minor: seeded runs are not perfectly reproducible across game launches
Some SMODS-rebuilt pools are iterated in per-launch order before being fed to
the seeded RNG — we confirmed this for To Do List's target hand and Orbital
Tag's hand choice (same seed + identical action trace → different outcome after
a game relaunch, stable within one launch). Worth a caveat wherever the
benchmark claims seed-level determinism.
- 主要语言
- Python
- 星标
- 114
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/balatrollm 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
coder/balatrollm#89 ·
-
难度 4/5 3-5 天 新手友好度 45/100
coder/balatrollm#85 ·
-
default-strategy
难度 4/5 3-5 天 新手友好度 25/100
coder/balatrollm#64 ·
相似的 Issue
-
eegprep-lean: set channel types from the Zarr group's channel_type可能已有人在做 @claude 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
blacklanternsecurity/bbot#3679 ·
维护者通常 2 天内回复
-
Bot Type: Bug Type: Documentation
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 80/100
speakeasy-api/speakeasy#2159 ·
维护者通常 1 天内回复