[Phase 16] S4 — Dependency-range truth for the six advertised trainers
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 20/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- huggingface, python
- Bereich
- ci-cd, machine-learning
Rechercherichtung
Start with the roadmap plan at docs/roadmap/phase-16-trust-surface-hardening.md lines 385-414, then find where the trainer_type enum is consumed and where the TRL imports happen. The change adds a _import_trl_symbol resolver with an trl.experimental fallback, and routes the four reward paths in forgelm/grpo_rewards.py through _completion_text(). Done means all six trainer types construct args and trainers at the declared minimum and current TRL versions with zero skips under pytest -rs, and the reward parity matrix passes.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Roadmap · Phase 16, step S4 · size L · 2 unit(s) · planned in
docs/roadmap/phase-16-trust-surface-hardening.md:385-414
Summary
README, the site and the trainer_type enum advertise six alignment methods and both of TRL's data formats; the declared dependency contract delivers neither. ORPOConfig, CPOConfig, ORPOTrainer and CPOTrainer are absent from the top-level trl namespace across the whole declared trl>=1.0.0,<2.0.0 range (checked on the 1.0.0, 1.7.1 and 1.9.2 wheels), so pinning an upper bound cannot fix it. Separately, TRL hands conversational completions to custom rewards as message lists, and all four built-in reward paths assume str.
Units
| Unit | Tracked by (October 2026 review) |
|---|---|
F-W20260729-GAP-03 |
#105 · #106 |
F-W20260729-CORE-02 |
#476 · #708 |
Decisions this step executes
- C-10 — ORPO / SimPO on a dependency range that exports neither: route through
trl.experimental.
Plan
- Add a version-aware
_import_trl_symbolresolver that falls back totrl.experimental.orpo/trl.experimental.cpo, logs one INFO line per fallback naming the instability, and raises an actionable config-error-shaped failure naming the installedtrl.__version__when neither location works. Never setTRL_EXPERIMENTAL_SILENCE(a silent import fallback). - Add
_completion_text()toforgelm/grpo_rewards.pyas the single canonicalisation point, with a documented policy, and route all four reward paths through it. Neverstr(list).
Exit criteria
- All six
trainer_typevalues construct training args and a trainer at both the declared minimum and the resolver-current endpoint with zero skips (asserted withpytest -rs). - A missing advertised trainer class fails; it never
pytest.skip()s. - A parity matrix proves
f(['…']) == f([[{'role':'assistant','content':'…'}]])for all four reward paths, and flat-string outcomes are byte-identical to the baseline. - Two real dependency resolutions (declared minimum and current endpoint) run in CI with the zero-skip assertion enforced.
How to deliver
- One root-cause family, committed on its own; then an Opus review round and a Sonnet review round, each with verified findings fixed and committed before the next step begins.
- A reproducer that is red before the fix and green after; the full gauntlet from
CLAUDE.mdpasses under./.venv/bin/python. - Every English documentation edit ships with its Turkish mirror in the same commit; a new or renamed audit event gets its EN and TR catalog rows in the same PR.
- A step that grows a deferred module carries its
budget_historyjustification in the same diff; a widened guard rolls out non-strict first, then flips. - Commit bodies cite
Absorbs F-W20260729-…; the CHANGELOG[Unreleased]section gets an entry only for a change a user or library consumer can observe (decision C-20).
Planned in docs/roadmap/phase-16-trust-surface-hardening.md (read at f94595f). Unit IDs (F-W20260729-…) come from the 2026-07-29/30 full-project review; the issue numbers next to them are the October 2026 review's records of the same defects.
- Vorherrschende Sprache
- Python
- Sterne
- 9
- Forks
- 1
- Ø Merge
- 10 Std. 40 Min.
- Gemergte PRs (30 T.)
- 12
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus HodeTech/ForgeLM
-
area: site bug severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
area: dev-tooling bug severity: low source: roadmap wave: 4
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Site: the theme-locked --code-comment grey (#6a6f80) on the dark code surface is 3.8:1, below WCAG AA, in both themes (F-W1-SITE-06)Evtl. vergeben @vortsghost2025 hat das vor 3 Tagen übernommen. Offenarea: site bug good first issue severity: low source: review-2026-09 wave: 4
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
Choosing-a-trainer table documents KTO rows as {prompt, response, label}, but the KTO loader requires a completion column (F-W1-DOCS-TRAIN-02)Evtl. vergeben @vortsghost2025 hat das vor 2 Tagen übernommen. Offendocumentation good first issue severity: medium source: review-2026-09 wave: 3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue severity: low source: review-2026-09 wave: 4
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 80/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in HodeTech/ForgeLM
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
aws-samples/sample-per-model-bedrock#295 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
pyrevitlabs/pyRevit#3792 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
zephyrproject-rtos/reqmgmt#177 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
polarsource/polar#15580 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
521xueweihan/HelloGitHub#4011 ·