Repository navigation
优化围棋搜索与推理,降低训练和渲染开销 - #3
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (6 files)
Previous Review Summaries (4 snapshots, latest commit a09a647)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit a09a647)Status: No Issues Found | Recommendation: Merge OverviewThis incremental commit (
Verified Notes
Files Reviewed (4 files)
Previous review (commit 1b0d6cc)VerdictApprove with suggestions. The PR delivers substantial, well-executed improvements to GPU inference batching, MCTS tree reuse, training correctness, and UI responsiveness. Three medium-severity concerns below are design decisions that should be explicitly acknowledged or revisited. Inline Comments1. Once 2. When 3. The 9 weight sets are referenced 9 times each (81 total entries), then 4. If the waiting thread is interrupted at this point, Positive Observations
Testing ConfirmationPR description states:围棋规则/并发回归验证通过 213 tests 0 failures. Test files added: Files Reviewed
RecommendationMerge the PR. Address the three Medium issues in a follow-up:
Previous reviewThis review did not finish. The model reached its output limit before it Previous reviewThis review did not finish. The model reached its output limit before it Reviewed by free · Input: 452.4K · Output: 10.4K · Cached: 190.1K |
围棋搜索、CPU 推理和多局训练中反复构建棋群、复制棋盘和分配临时数组,增加了 CPU 与 GC 开销。本次复用线程内缓冲、共享评估器并缓存搜索节点统计,同时补齐规则、并发和 GPU 压测验证。
改动
验证
gradlew.bat test --no-daemon build --no-build-cache --offline --max-workers=1 --console=plain:成功,227 项测试,0 失败、0 错误、0 跳过。git diff --cached --check:通过。GPU 结果一致性已在上述设备验证;其他厂商和驱动仍需各自验证。无可用设备的环境会明确跳过新增硬件一致性测试。