autoregressive.order accepts any value and silently ignores it #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: low.
giant/config.py:437-439documentsorderas "single-valued for now; the keyexists so an alternative ordering is not a config break" — a reasonable
placeholder. But
validate_configchecks its two siblings (history,teacher_forcing,giant/config.py:1274-1284) and notorder, soorder = "energy_asc"is accepted, saved, and silently trainsdescending-energy.
Fix: one-line check alongside the neighbouring two.
Migrated from
issues.md(v0.3.0 branch review, 2026-08-13), Issue 4.Fixed in
899ca3aon v0.3.0-stage2-autoregressive.Added a check for
stage2_model.autoregressive.orderinvalidate_config(giant/config.py), alongside the existinghistory/teacher_forcingchecks, gated the same way (only understage2_model.decoder = 'autoregressive'): any value other than'energy_desc'(the only implemented ordering) now raisesValueErrorinstead of being silently accepted. Added tests for the pass/fail cases and extended the existing one-shot-skips-AR-checks test to coverordertoo. Also updated the reason string on the pre-existing_KNOWN_UNUSEDallow-list entry for this key in tests/test_config_consumed_keys.py, since it previously said validate_config never checked order — that's no longer accurate, though the key stays allow-listed since validate_config itself isn't in that test's build/train/rollout consumer whitelist (order is still single-valued, so nothing branches on its value yet). No follow-up filed — implementing an actual alternative ordering is out of scope and wasn't asked for.