You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Han Wang
committed
fix: canonical-bridging review round 3
- dpmodel LinearEnergyModel gains a composite update_sel (twin of
pt_expt): update learned children, skip inner_potential/pairtab,
aggregate min_nbor_dist; BaseModel.update_sel dispatch no longer
crashes with KeyError 'descriptor' on normalized linear configs.
- the shared linear builder rejects a bridged learned child whose
type_map differs from the composition's (the graph route rejects the
non-identity remap on every forward; fail at construction like pt).
- pt SeZM pair-exclusion reconciliation is factored into ONE helper
used by all three builders (plain, native spin, virtual spin), so a
pair_exclude_types vs descriptor.exclude_types mismatch fails fast on
the spin routes too instead of being silently overwritten.
- canonical top-level learned-model options (data_stat_protect,
preset_out_bias, use_compile, ...) are routed to the learned child by
route_canonical_learned_options with conflict checks, in both the pt
bridged builder and the shared factory; silently dropped before.
- pt_expt get_model rejects trainer-owned lora after bridge expansion
(pt_expt has no LoRA support; it silently trained a plain model).
- module-level assert pins the routing tables disjoint (also resolves
the CodeQL unused-variable finding on _LEARNED_CHILD_KEYS).
0 commit comments