Skip to content

rlf-codex-rl 5.8:--rl-training-attention-backend 与 --session-server-workers 两个训练侧 flag - #233

Merged
michaellchung merged 2 commits into
rlf-pr2-gate-runnerfrom
rlf-pr4-training-flags
Oct 11, 2026
Merged

michaellchung merged 2 commits into
rlf-pr2-gate-runnerfrom
rlf-pr4-training-flags

Conversation

@michaellchung

Copy link
Copy Markdown
Contributor

范围

5.8 gate attempt-2/attempt-3 的两个训练侧修复:

  1. --rl-training-attention-backend:允许覆盖 trainer 的 attention backend——attempt-1 失败于 trainer cutlass 编译,覆盖后端可绕开;同时让 gate 证据在事件磁带上留存(tape-surviving evidence),岛回收后仍可判定
  2. --session-server-workers:会话服务器 worker 数可配——attempt-2 中默认单 worker 成为 rollout 瓶颈

涉及 yeto/cli.py、yeto/launcher.py、yeto/rl/engine/run_config.py、yeto/rl/adapters/miles/{config,island_entry}.py,及 rlf_rl_gate.py 的磁带证据收集增强。

对应 openspec change:rlf-codex-rl(任务 5.8)。

测试证据

tests/test_rl_training_attention_backend.py tests/test_rlf_rl_gate.py: 25 passed in 1.95s

新增 test_rl_training_attention_backend.py(flag 透传、run_config 落盘、island_entry 生效),gate 测试同步扩充。

依赖关系

Made with Cursor

chowhsu and others added 2 commits October 11, 2026 12:49
…e-surviving gate evidence

- --rl-training-attention-backend {auto,flash,fused,unfused}: recipe default
  overridable (flash-only recipes refuse); gate run uses unfused after the
  L40S flash-attn cute JIT crd2idx compile failure (failure class
  trainer_kernel_compile, attention fwd, LoRA-independent)
- rlf_rl_gate: policy-update proof from the island event tape rl_publication
  payload hashes (代拍板 v2) — survives island teardown via --modal-tape-volume;
  adapter-file path kept; policy_update_source recorded in evidence
- CPU tests: 4 new backend-override + 5 new tape-collection tests

Co-authored-by: Cursor <cursoragent@cursor.com>
gate attempt 2 (rlf-gate-20261011-4) passed the attention-backend override
(AttnBackend.unfused on the island) but died on a session-server import
storm: Miles defaults --session-server-workers to 32, and 32 parallel
sglang imports on the 4-core L40S island missed the 300 s ready window
(same failure class as compaction G3 run c). Yeti had no flag for the
worker count; plumb it cli -> launcher -> island -> AgentConfig -> Miles
argv, launch-side >=1 validation, translation allowlist. The gate run
drops to 8 workers (rollout is 4 groups x 4 samples).

Silver lining: --modal-tape-volume + completed-groups in ~/yeto-output
worked — the island tape was pulled despite the failed run.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants