YunkunSong commited on
Commit
2ece9bf
·
verified ·
1 Parent(s): eda8bc6

Recalculate active benchmark after roster exclusions

Browse files
README.md CHANGED
@@ -19,27 +19,15 @@ configs:
19
 
20
  [在线积分榜、积分柱状图及逐局回放](https://huggingface.co/spaces/YunkunSong/llm-gomoku-benchmark)
21
 
22
- This dataset records 550 completed Renju games for 11 combinations of model and reasoning effort. Each pair plays ten games across five fixed openings with reversed colors. Models choose every played move. The program enforces the rules, and Rapfi independently evaluates 14,006 played moves.
23
 
24
- 数据集收录 550 局 15×15 连珠对局。11 位档位选手各下 100 局。每对选手在五个固定开局上换边,每对共 10 局。
25
 
26
- ## Files
 
 
 
27
 
28
- - [Game index](data/low-medium-league.csv) has one row per game. The moves include the three opening stones.
29
- - [Full game records](benchmark/data/renju-low-medium/renju-effort-league.json) include player metadata, route and request settings, board moves, model submissions, and fixture provenance.
30
- - [Per-move evaluations](benchmark/data/renju-low-medium/renju-effort-league.review.json) include engine settings and signed game reviews.
31
- - [Standings and methodology](benchmark/data/renju-low-medium/league.md), [same-model comparison](benchmark/data/renju-low-medium/README.md), and [checksums](benchmark/data/renju-low-medium/summary.json).
32
 
33
- ## Evaluation scope
34
-
35
- The 550 games include 210 historical Low games, 40 games pairing Low and Medium for the same model, and 300 cross-model games. The historical games retain their original request limits. The same-model comparison is a subset of the published round robin.
36
-
37
- ## Run the harness locally
38
-
39
- Use Node.js 24 or later. The included source can verify the published games and serve the replay page on 127.0.0.1:4321.
40
-
41
- npm test
42
- npm run verify -- benchmark/data/renju-low-medium/renju-effort-league.json
43
- npm start
44
-
45
- See the [benchmark guide](benchmark/README.md) and [league configuration](config/openrouter-league.json). Third-party source notices are included under [vendor](vendor/).
 
19
 
20
  [在线积分榜、积分柱状图及逐局回放](https://huggingface.co/spaces/YunkunSong/llm-gomoku-benchmark)
21
 
22
+ The active dataset contains 280 completed 15×15 Renju games between eight model and reasoning-effort entries. Each pair plays ten games across five fixed openings, alternating colors. Rapfi independently evaluates 6,898 moves.
23
 
24
+ 当前公开赛程为 280 局,8 位档位选手各打 70 局。Qwen4-Max 和 Muse Spark 1.3 的有关对局已作废,积分按有效结果重算。
25
 
26
+ - [Game index](data/low-medium-league.csv)
27
+ - [Full games](benchmark/data/renju-low-medium/renju-effort-league.json)
28
+ - [Per-move evaluations](benchmark/data/renju-low-medium/renju-effort-league.review.json)
29
+ - [Standings and methods](benchmark/data/renju-low-medium/league.md) and [checksums](benchmark/data/renju-low-medium/summary.json)
30
 
31
+ Historical games retain their original request limits. The 30-game same-model comparison is a subset of this round robin.
 
 
 
32
 
33
+ Run locally with Node.js 24 or later using the [benchmark guide](benchmark/README.md).
 
 
 
 
 
 
 
 
 
 
 
 
benchmark/README.md CHANGED
@@ -1,14 +1,14 @@
1
  # 七模型连珠 Benchmark
2
 
3
- - [550 局棋谱、逐手评分、积分和数据清单](data/renju-low-medium/league.md)
4
- - [默认七模型开赛配置](../config/openrouter-league.json)
5
  - [本地积分榜与棋谱回放](http://127.0.0.1:4321/)
6
 
7
  ## 对局方法
8
 
9
- 使用 15×15 连珠。七款模型的 Low 和四款模型的 Medium 组成 11 位选手,在五个固定开局上逐一换边,每对 10 局。程序发送盘面和合法落点,模型先拟一个落点,再进行同模型单坐标自查。最终落点来自模型。黑棋禁手由裁判判定,棋盘结果可通过逐手重放复核。
10
 
11
- 每个局号只贡献一份有效赛果。积分按胜 1 分、和 0.5 分、负 0 分计算。保留的 210 局采用了各局当时的输出设置,原始设置随棋谱逐局保存。Rapfi 提供独立逐手估值和战术错误记录。
12
 
13
  新联赛默认使用同样的五个开局、固定路由和 Low 档,使用 `stageTokens: null` 省略项目侧输出 token 上限。
14
 
@@ -24,9 +24,9 @@ npm run archive:effort
24
 
25
  第一条只查看公开目录和赛程。第二条执行预检、对局与复盘,本批费用停跑线为 35 美元。第三条核验并归档成局,供本地网页和 Hugging Face Space 读取。
26
 
27
- ## Low 与 Medium 循环赛
28
 
29
- 七款 Low 和四款通过预检的 Medium 分别作为选手,两两对弈。每对共 10 局,五个开局各换边一次。完整赛程共 55 对、550 局,包含归档的 210 局 Low 对阵、40 局同模型对照,以及 300 局跨模型补赛。合并时按黑方、白方与开局核验每局的唯一位置。
30
 
31
  ```powershell
32
  npm run bench:cross-effort
@@ -34,4 +34,4 @@ npm run bench:cross-effort -- --play
34
  npm run archive:cross-effort -- <历史源棋谱路径>
35
  ```
36
 
37
- 第一条核验固定路由和 300 局补赛赛程。第二条在同模型对照完成后执行补赛和复盘。第三条通过随附历史评分的源棋谱重建 550 局正式归档。历史对局保留当时的输出上限和来源,新增对局无项目输出上限。档位本身的对照使用 40 局同模型赛果。
 
1
  # 七模型连珠 Benchmark
2
 
3
+ - [280 局有效棋谱、逐手评分、积分和数据清单](data/renju-low-medium/league.md)
4
+ - [历史开赛配置](../config/openrouter-league.json)
5
  - [本地积分榜与棋谱回放](http://127.0.0.1:4321/)
6
 
7
  ## 对局方法
8
 
9
+ 使用 15×15 连珠。当前 8 位档位选手在五个固定开局上逐一换边,每对 10 局。程序发送盘面和合法落点,模型先拟一个落点,再进行同模型单坐标自查。最终落点来自模型。黑棋禁手由裁判判定,棋盘结果可通过逐手重放复核。
10
 
11
+ 每个局号只贡献一份有效赛果。积分按胜 1 分、和 0.5 分、负 0 分计算。历史来源的对局采用各局当时的输出设置,原始设置随棋谱逐局保存。Rapfi 提供独立逐手估值和战术错误记录。
12
 
13
  新联赛默认使用同样的五个开局、固定路由和 Low 档,使用 `stageTokens: null` 省略项目侧输出 token 上限。
14
 
 
24
 
25
  第一条只查看公开目录和赛程。第二条执行预检、对局与复盘,本批费用停跑线为 35 美元。第三条核验并归档成局,供本地网页和 Hugging Face Space 读取。
26
 
27
+ ## 循环赛的历史批次
28
 
29
+ 原融合赛程共 550 局。退出 Qwen4-Max 和 Muse Spark 1.3 的全部档位后,涉及这些选手的 270 局进入本地废弃模型数据。其余 280 局构成当前正式结果,其中 30 局用于同模型档位对照。
30
 
31
  ```powershell
32
  npm run bench:cross-effort
 
34
  npm run archive:cross-effort -- <历史源棋谱路径>
35
  ```
36
 
37
+ 这些命令记录原批次的方法。第一条核验固定路由和 300 局补赛赛程,第二条执行原补赛和复盘,第三条用于有历史源棋谱的原融合工作目录。当前发布版使用有效对局重算积分。
benchmark/data/renju-low-medium/README.md CHANGED
@@ -1,16 +1,11 @@
1
  # Low 与 Medium 同模型换边对照
2
 
3
- 完成 4 款模型共 40 局。每款在五个相同开局上逐一换边,共 10 局。两个档位共享模型版本、固定路由、提示、棋规、7 分钟单请求超时和复盘设置。推理档位是唯一改变的请求参数。棋谱保存 API 返回的逐阶段用量。
4
 
5
  | 模型 | Low 胜 | Medium 胜 | 和局 | Low 逐手均分 | Medium 逐手均分 |
6
  | --- | ---: | ---: | ---: | ---: | ---: |
7
  | GPT-6 Luna | 2 | 8 | 0 | 1.60 | 1.85 |
8
  | Claude Haiku 5.5 | 2 | 8 | 0 | 1.57 | 1.61 |
9
- | Muse Spark 1.3 | 3 | 7 | 0 | 2.12 | 1.99 |
10
  | Inkling 2 Small | 3 | 7 | 0 | 1.83 | 1.88 |
11
 
12
- 每款模型的结果来自十局样本,棋力变化以本次开局和路由上的实测比分为准。
13
-
14
- OpenRouter 返回用量所确认的支出为 $16.02,包括赛前预检。赛果见 [汇总](summary.json)。这 40 局的棋谱和逐手评分收录在 [550 局归档](league.md)。
15
-
16
- [在线积分榜与棋谱回放](https://huggingface.co/spaces/YunkunSong/llm-gomoku-benchmark)
 
1
  # Low 与 Medium 同模型换边对照
2
 
3
+ 当前有效赛程保留 3 款模型、30 局同模型对照。每款在五个固定开局上分别换边,两个档位共享模型版本、固定路由、提示、棋规和复盘设置。
4
 
5
  | 模型 | Low 胜 | Medium 胜 | 和局 | Low 逐手均分 | Medium 逐手均分 |
6
  | --- | ---: | ---: | ---: | ---: | ---: |
7
  | GPT-6 Luna | 2 | 8 | 0 | 1.60 | 1.85 |
8
  | Claude Haiku 5.5 | 2 | 8 | 0 | 1.57 | 1.61 |
 
9
  | Inkling 2 Small | 3 | 7 | 0 | 1.83 | 1.88 |
10
 
11
+ 棋谱和评分收录在 [当前循环赛](league.md)。
 
 
 
 
benchmark/data/renju-low-medium/league.md CHANGED
@@ -1,25 +1,22 @@
1
- # Low 与 Medium 档位循环赛
2
 
3
- 七款模型的 Low 和四款模型的 Medium 共 11 位档位选手。每对五个开局逐一换边,共 10 局。55 对合计 550 局,每位选手 100 局。
4
 
5
  [完整棋谱](renju-effort-league.json) · [逐手评分](renju-effort-league.review.json) · [校验值](summary.json)
6
 
7
- 210 局来自已有 Low 榜单,40 局为同模型换边,300 局为跨模型的跨档或 Medium 对阵。原 Low 榜单采用过不同的输出上限,新增对局省略项目侧上限,棋谱记录双方每局的实际限制。总榜描述这一混合赛程的胜负。研究档位本身的影响时,可参照同模型 40 局的结果。
8
 
9
- | 模型档位 | 局数 | 胜 | 和 | 负 | 积分 |
10
  | --- | ---: | ---: | ---: | ---: | ---: |
11
- | qwen4-max-Low | 100 | 92 | 0 | 8 | 92 |
12
- | deepseek-v4.1-flash-1017-Low | 100 | 81 | 0 | 19 | 81 |
13
- | muse-spark-1.3-Medium | 100 | 68 | 0 | 32 | 68 |
14
- | claude-haiku-5.5-Medium | 100 | 62 | 0 | 38 | 62 |
15
- | inkling-2-small-Medium | 100 | 61 | 0 | 39 | 61 |
16
- | claude-haiku-5.5-Low | 100 | 45 | 0 | 55 | 45 |
17
- | inkling-2-small-Low | 100 | 44 | 0 | 56 | 44 |
18
- | muse-spark-1.3-Low | 100 | 38 | 0 | 62 | 38 |
19
- | gpt-6-luna-Medium | 100 | 26 | 0 | 74 | 26 |
20
- | glm-5.3-flashx-Low | 100 | 23 | 0 | 77 | 23 |
21
- | gpt-6-luna-Low | 100 | 10 | 0 | 90 | 10 |
22
 
23
- Rapfi 逐手评分 14006 手。300 局补赛经 OpenRouter 账单核对扣款 $143.61。
24
 
25
  [在线总榜与回放](https://huggingface.co/spaces/YunkunSong/llm-gomoku-benchmark)
 
1
+ # 连珠 Benchmark 当前总榜
2
 
3
+ 五款模型按推理档位组成 8 位选手。每对选手在五个开局上各换边一次,共 28 组、280 局。每位选手 70 局。
4
 
5
  [完整棋谱](renju-effort-league.json) · [逐手评分](renju-effort-league.review.json) · [校验值](summary.json)
6
 
7
+ 按最新参赛名单,Qwen4-Max 和 Muse Spark 1.3 各档相关的 270 局已作废并单独归档。本榜只按 280 局有效对局重新计分。历史来源的实际输出设置随棋谱保存。
8
 
9
+ | 选手 | 局数 | 胜 | 和 | 负 | 积分 |
10
  | --- | ---: | ---: | ---: | ---: | ---: |
11
+ | DeepSeek V4.1 Flash 1017-Low | 70 | 66 | 0 | 4 | 66 |
12
+ | Inkling 2 Small-Medium | 70 | 49 | 0 | 21 | 49 |
13
+ | Claude Haiku 5.5-Medium | 70 | 46 | 0 | 24 | 46 |
14
+ | Claude Haiku 5.5-Low | 70 | 37 | 0 | 33 | 37 |
15
+ | Inkling 2 Small-Low | 70 | 36 | 0 | 34 | 36 |
16
+ | GLM-5.3-FlashX-Low | 70 | 21 | 0 | 49 | 21 |
17
+ | GPT-6 Luna-Medium | 70 | 19 | 0 | 51 | 19 |
18
+ | GPT-6 Luna-Low | 70 | 6 | 0 | 64 | 6 |
 
 
 
19
 
20
+ Rapfi 完成 6,898 手评分。三款模型的同模型档位对照共 30 局,收录在上述棋谱中。
21
 
22
  [在线总榜与回放](https://huggingface.co/spaces/YunkunSong/llm-gomoku-benchmark)
benchmark/data/renju-low-medium/renju-effort-league.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1f9642118e9c698c6532020af6e4d68d49aa3edb5011aa44707b9f46d4550fd9
3
- size 56842819
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2dddd494b94c18da18649623c8f006938d65317383bb6e6ecfd1f68fb552cf7
3
+ size 27527148
benchmark/data/renju-low-medium/renju-effort-league.review.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0ca2fcd74540f8b5fb9e8caae0a5910ce81658ca80cf463b14c65569fa70395f
3
- size 74120969
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b66285d6bf2537c5fc7c7b3ae608a17f8279124fc162eedad8b51bcc597bd77
3
+ size 36033606
benchmark/data/renju-low-medium/summary.json CHANGED
@@ -2,7 +2,6 @@
2
  "schema": 1,
3
  "title": "Low 与 Medium 同模型换边对照",
4
  "finishedAt": "2026-11-21T07:16:46.891Z",
5
- "totalGames": 40,
6
  "models": [
7
  {
8
  "runId": "renju-effort-gpt-6-luna",
@@ -84,46 +83,6 @@
84
  "total": 549
85
  }
86
  },
87
- {
88
- "runId": "renju-effort-muse-spark-1-3",
89
- "modelId": "meta/muse-spark-1.3",
90
- "label": "Muse Spark 1.3",
91
- "canonical": "meta/muse-spark-1.3-20260902",
92
- "provider": "meta",
93
- "games": 10,
94
- "draws": 0,
95
- "low": {
96
- "wins": 3,
97
- "losses": 7,
98
- "points": 3,
99
- "wonAsBlack": 2,
100
- "wonAsWhite": 1,
101
- "validMoves": 152,
102
- "meanGrade": 2.1184210526315788,
103
- "averageTurnSeconds": 39.34401315789474,
104
- "costUsd": 4.358917999999998,
105
- "measuredRequests": 304,
106
- "requests": 304
107
- },
108
- "medium": {
109
- "wins": 7,
110
- "losses": 3,
111
- "points": 7,
112
- "wonAsBlack": 4,
113
- "wonAsWhite": 3,
114
- "validMoves": 154,
115
- "meanGrade": 1.9935064935064934,
116
- "averageTurnSeconds": 76.2046948051948,
117
- "costUsd": 8.014183950000007,
118
- "measuredRequests": 308,
119
- "requests": 309
120
- },
121
- "serviceInterruptions": 3,
122
- "coverage": {
123
- "scored": 306,
124
- "total": 306
125
- }
126
- },
127
  {
128
  "runId": "renju-effort-inkling-2-small",
129
  "modelId": "thinkingmachines/inkling-2-small",
@@ -192,28 +151,26 @@
192
  "J10"
193
  ]
194
  ],
195
- "pausedModels": [],
196
- "confirmedCostUsd": 16.016037609,
197
- "reservedUsd": 2,
198
- "costLimitUsd": 35,
 
 
199
  "league": {
200
  "runId": "renju-effort-league",
201
- "totalGames": 550,
202
- "models": 11,
203
- "pairs": 55,
204
- "historicalGames": 210,
205
- "pairedGames": 40,
206
- "newGames": 300,
207
- "finishedAt": "2026-11-22T00:14:15.450Z",
208
  "coverage": {
209
- "scored": 14006,
210
- "total": 14006
211
- },
212
- "confirmedAdditionalCostUsd": 143.28765563,
213
- "settledAdditionalCostUsd": 143.611958998
214
  },
215
  "artifacts": {
216
- "renju-effort-league.json": "1f9642118e9c698c6532020af6e4d68d49aa3edb5011aa44707b9f46d4550fd9",
217
- "renju-effort-league.review.json": "0ca2fcd74540f8b5fb9e8caae0a5910ce81658ca80cf463b14c65569fa70395f"
218
  }
219
  }
 
2
  "schema": 1,
3
  "title": "Low 与 Medium 同模型换边对照",
4
  "finishedAt": "2026-11-21T07:16:46.891Z",
 
5
  "models": [
6
  {
7
  "runId": "renju-effort-gpt-6-luna",
 
83
  "total": 549
84
  }
85
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  {
87
  "runId": "renju-effort-inkling-2-small",
88
  "modelId": "thinkingmachines/inkling-2-small",
 
151
  "J10"
152
  ]
153
  ],
154
+ "totalGames": 30,
155
+ "excludedModelIds": [
156
+ "qwen/qwen4-max",
157
+ "meta/muse-spark-1.3"
158
+ ],
159
+ "discardedGames": 270,
160
  "league": {
161
  "runId": "renju-effort-league",
162
+ "totalGames": 280,
163
+ "models": 8,
164
+ "pairs": 28,
165
+ "historicalGames": 100,
166
+ "pairedGames": 30,
 
 
167
  "coverage": {
168
+ "scored": 6898,
169
+ "total": 6898
170
+ }
 
 
171
  },
172
  "artifacts": {
173
+ "renju-effort-league.json": "c2dddd494b94c18da18649623c8f006938d65317383bb6e6ecfd1f68fb552cf7",
174
+ "renju-effort-league.review.json": "9b66285d6bf2537c5fc7c7b3ae608a17f8279124fc162eedad8b51bcc597bd77"
175
  }
176
  }
benchmark/scripts/archive-cross-effort.mjs CHANGED
@@ -19,6 +19,7 @@ const [baseline, study, crossManifest, cross] = await Promise.all([
19
  readRun(baselinePath), readPublishedEffortStudy(),
20
  readFile(join(RUNS, crossName, 'manifest.json'), 'utf8').then(JSON.parse), readRun(runFile(crossName)),
21
  ]);
 
22
  if (baseline.name !== 'renju-benchmark' || baseline.games.length !== 210 || !baseline.complete
23
  || !study || study.models.length !== 4 || !crossManifest.finishedAt
24
  || cross.games.length !== 300 || !cross.complete || cross.analysis?.status !== 'complete') {
 
19
  readRun(baselinePath), readPublishedEffortStudy(),
20
  readFile(join(RUNS, crossName, 'manifest.json'), 'utf8').then(JSON.parse), readRun(runFile(crossName)),
21
  ]);
22
+ if (study?.excludedModelIds?.length) throw new Error('当前发布版已更新参赛名单,旧融合流程会恢复已退出的选手');
23
  if (baseline.name !== 'renju-benchmark' || baseline.games.length !== 210 || !baseline.complete
24
  || !study || study.models.length !== 4 || !crossManifest.finishedAt
25
  || cross.games.length !== 300 || !cross.complete || cross.analysis?.status !== 'complete') {
benchmark/scripts/retire-models.mjs ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { createHash } from 'node:crypto';
2
+ import { copyFile, mkdir, readFile, stat } from 'node:fs/promises';
3
+ import { constants } from 'node:fs';
4
+ import { join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+ import { schedule, verifyRun } from '../../src/arena.mjs';
7
+ import { publishedTournamentId, readPublishedEffortStudy, readPublishedTournament } from '../../src/published-tournament.mjs';
8
+ import { save } from '../../src/records.mjs';
9
+ import { fingerprint, summarizeReview } from '../../src/review.mjs';
10
+ import { createStorageGuard } from './run-guards.mjs';
11
+
12
+ const beforeWrite = createStorageGuard();
13
+ const removedModels = new Set(['qwen/qwen4-max', 'meta/muse-spark-1.3']);
14
+ const source = await readPublishedTournament();
15
+ const study = await readPublishedEffortStudy();
16
+ if (!source || !study?.league) throw new Error('缺少已核验的 Benchmark');
17
+ const removedSeats = new Set(source.players.filter(player => removedModels.has(player.modelId)).map(player => player.id));
18
+ if (!removedSeats.size) throw new Error('这些模型已经退出当前 Benchmark');
19
+ const players = source.players.filter(player => !removedSeats.has(player.id));
20
+ const discarded = source.games.filter(game => removedSeats.has(game.black) || removedSeats.has(game.white));
21
+ const retained = source.games.filter(game => !removedSeats.has(game.black) && !removedSeats.has(game.white));
22
+ const key = ({ black, white, opening }) => JSON.stringify([black, white, opening]);
23
+ const retainedByKey = new Map(retained.map(game => [key(game), game]));
24
+ const scores = new Map(source.analysis.games.map(review => [review.id, review]));
25
+ const fixtureSources = {};
26
+ const reviews = [];
27
+ const games = schedule(players.map(player => player.id), { legalChoice: true, openings: source.openings }).map(fixture => {
28
+ const previous = retainedByKey.get(key(fixture));
29
+ const rendered = scores.get(previous?.id);
30
+ if (!previous || rendered?.signature !== fingerprint(previous) || !source.fixtureSources?.[previous.id]) {
31
+ throw new Error(`第 ${fixture.id} 局缺少已核验棋谱、评分或出处`);
32
+ }
33
+ const game = { ...previous, id: fixture.id };
34
+ reviews.push({ ...rendered, id: fixture.id, signature: fingerprint(game) });
35
+ fixtureSources[fixture.id] = { ...source.fixtureSources[previous.id], previousFixtureId: previous.id };
36
+ return game;
37
+ });
38
+ const record = {
39
+ schema: source.schema, name: source.name, title: '模型推理档位循环赛', mode: source.mode, players,
40
+ openings: source.openings, createdAt: source.createdAt, games, fixtureSources, serviceFailures: [],
41
+ };
42
+ const verified = verifyRun(record);
43
+ const evaluation = summarizeReview({ ...record, ...verified }, reviews, source.analysis.engine);
44
+ if (games.length !== retained.length || evaluation.status !== 'complete' || discarded.length + games.length !== source.total) {
45
+ throw new Error('归档前的完整性核验失败');
46
+ }
47
+ const doc = { version: source.analysis.version, engine: source.analysis.engine, games: reviews };
48
+ const priorReview = discarded.map(game => {
49
+ const review = scores.get(game.id);
50
+ if (review?.signature !== fingerprint(game)) throw new Error(`作废棋谱第 ${game.id} 局签名不匹配`);
51
+ return review;
52
+ });
53
+
54
+ const active = fileURLToPath(new URL('../data/renju-low-medium/', import.meta.url));
55
+ const archive = fileURLToPath(new URL('../data/废弃模型数据/qwen4-max-and-muse/', import.meta.url));
56
+ const file = `${publishedTournamentId}.json`;
57
+ const reviewFile = `${publishedTournamentId}.review.json`;
58
+ await beforeWrite();
59
+ await mkdir(archive, { recursive: true });
60
+ for (const name of [file, reviewFile, 'summary.json']) {
61
+ const original = join(active, name);
62
+ await beforeWrite((await stat(original)).size);
63
+ await copyFile(original, join(archive, `before-${name}`), constants.COPYFILE_EXCL);
64
+ }
65
+ const discardedFile = {
66
+ schema: 1, retiredModelIds: [...removedModels], sourceRun: source.name, games: discarded,
67
+ fixtureSources: Object.fromEntries(discarded.map(game => [game.id, source.fixtureSources[game.id]])),
68
+ };
69
+ const discardedReviews = { ...doc, games: priorReview };
70
+ await save(join(archive, 'discarded-games.json'), discardedFile, beforeWrite);
71
+ await save(join(archive, 'discarded-games.review.json'), discardedReviews, beforeWrite);
72
+ await save(join(active, file), record, beforeWrite);
73
+ await save(join(active, reviewFile), doc, beforeWrite);
74
+
75
+ const models = study.models.filter(model => !removedModels.has(model.modelId));
76
+ const newStudy = {
77
+ schema: study.schema, title: study.title, finishedAt: study.finishedAt, models, openings: source.openings,
78
+ totalGames: models.reduce((sum, model) => sum + model.games, 0),
79
+ excludedModelIds: [...removedModels], discardedGames: discarded.length,
80
+ league: {
81
+ runId: source.name, totalGames: games.length, models: players.length, pairs: players.length * (players.length - 1) / 2,
82
+ historicalGames: Object.values(fixtureSources).filter(row => row.runName === 'renju-benchmark').length,
83
+ pairedGames: models.reduce((sum, model) => sum + model.games, 0),
84
+ coverage: evaluation.coverage,
85
+ },
86
+ artifacts: Object.fromEntries(await Promise.all([file, reviewFile].map(async name =>
87
+ [name, createHash('sha256').update(await readFile(join(active, name))).digest('hex')]))),
88
+ };
89
+ await save(join(active, 'summary.json'), newStudy, beforeWrite);
90
+ console.log(JSON.stringify({
91
+ archive, discarded: discarded.length, total: games.length, coverage: evaluation.coverage,
92
+ standings: verified.leaderboard.map(({ id, points, wins, losses, games }) => ({ id, points, wins, losses, games })),
93
+ }));
data/low-medium-league.csv CHANGED
The diff for this file is too large to render. See raw diff
 
scripts/export-hf-space.mjs CHANGED
@@ -23,7 +23,7 @@ const card = [
23
  'app_file: index.html',
24
  '---',
25
  '',
26
- '# 七模型连珠 Benchmark',
27
  '',
28
  `在线查看 ${run.players.length} 位档位选手的积分榜、柱状图、${total} 局棋谱及 ${run.analysis.coverage.scored.toLocaleString('en-US')} 手 Rapfi 评分。`,
29
  ...(study ? ['', `可在同一赛事中筛选 ${study.totalGames} 局同模型换边对照。`] : []),
 
23
  'app_file: index.html',
24
  '---',
25
  '',
26
+ '# 连珠 Benchmark',
27
  '',
28
  `在线查看 ${run.players.length} 位档位选手的积分榜、柱状图、${total} 局棋谱及 ${run.analysis.coverage.scored.toLocaleString('en-US')} 手 Rapfi 评分。`,
29
  ...(study ? ['', `可在同一赛事中筛选 ${study.totalGames} 局同模型换边对照。`] : []),