Skip to content

fix(cli): add BitNet to FAMILY_ORDER so family_order_is_exhaustive passes - #404

Merged
inureyes merged 1 commit into
mainfrom
fix/issue-402-bitnet-family-order
Jun 23, 2026
Merged

fix(cli): add BitNet to FAMILY_ORDER so family_order_is_exhaustive passes#404
inureyes merged 1 commit into
mainfrom
fix/issue-402-bitnet-family-order

Conversation

@inureyes

Copy link
Copy Markdown
Member

The BitNet family was missing from the mlxcel arch family-ordering table (FAMILY_ORDER in src/main.rs), so the family_order_is_exhaustive guard test failed and BitNet sorted under the unknown-family fallback instead of its intended position. This was a pre-existing failure on main, surfaced as a follow-up while implementing #164 (PR #400 did not touch src/main.rs).

The fix adds "BitNet" after "RWKV", placing it at the end of the distinctive text-family cluster (Falcon / LFM2 / PLaMo / RWKV) ahead of the speech and VLM sections, which matches BitNet b1.58 being a distinctive dense ternary family. The exact family string matches ModelType::BitNet's metadata in src/models/mod.rs.

Verified: family_order_is_exhaustive and family_order_has_no_orphans both pass, and mlxcel arch now renders a BitNet: section with BitNet b1.58 (ternary).

Closes #402

…sses

The BitNet family was missing from the mlxcel arch family-ordering table,
so family_order_is_exhaustive failed and BitNet sorted under the
unknown-family fallback instead of its intended position. Add "BitNet"
after "RWKV" in the distinctive text-family cluster.

Closes #402
@inureyes inureyes added type:bug Bug fixes, error corrections, or issue resolutions priority:low Low priority area:models Model architectures, weights, loading, metadata area:cli Command-line interface / CLI flags status:done Completed labels Jun 23, 2026
@inureyes
inureyes merged commit 85fe160 into main Jun 23, 2026
4 of 5 checks passed
@inureyes
inureyes deleted the fix/issue-402-bitnet-family-order branch June 23, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Command-line interface / CLI flags area:models Model architectures, weights, loading, metadata priority:low Low priority status:done Completed type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(cli): BitNet family missing from FAMILY_ORDER fails family_order_is_exhaustive

1 participant