feat: pin (or publish) the OpenRouter provider per run; enable prompt caching on the invariant prompt part

未关闭
#86 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python

调研方向

追踪 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.only per 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
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 (
$5.60/game → under $2 at Sonnet-class pricing), with
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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/balatrollm 的其他 Issue

查看 coder/balatrollm 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。