Python · 567 bytes Raw Blame History
1 """v4 → v5 migrator: additive `training.precision` override.
2
3 v5 introduces an optional `training.precision` field that lets users
4 opt into fp16/bf16 on MPS (where the auto-picker now defaults to fp32
5 after the NaN-adapter bug of 2026-04-20; see
6 `.docs/bugs/01-nan-adapter-on-mps.md`). A v4 document without the
7 field parses as v5 unchanged — this migrator is pure identity,
8 present only to satisfy the migration-framework coverage contract.
9 """
10
11 from __future__ import annotations
12
13
14 def migrate(raw: dict[str, object]) -> dict[str, object]:
15 return dict(raw)