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
{{ message }}
Repository navigation
composer: a mamba/hybrid base is accepted and its layers silently relabelled as attention #124
granitemoehybrid is in _ARCH_REGISTRY, so all three pass the gate — micro correctly, the other two wrongly. Then:
# compose_utils.py:222-226# Normalize layer_types: map everything to "attention" (only attention# layers are supported).config_kwargs["layer_types"] = ["attention"for_inlt]
That is a label rewrite, not a conversion. 36 mamba layers get relabelled.
It does fail rather than emit a broken checkpoint — weight_transfer.py:366 raises ValueError because mamba's mixer.in_proj, conv1d, A_log, D, dt_bias and out_proj have no destination. But the message is "Base model has N parameters that couldn't be matched", which nobody would read as "mamba is not supported".
Fix: move the gate to where hybridness actually lives — reject a base whose layer_types contains anything other than attention, with a message naming mamba and saying it is unsupported. Hybrid support is explicitly out of scope, so this is the honest boundary, and it puts the limitation in one place a future mamba branch would delete.
Activity