Skip to content

feat(model-ports): add phi3_mini, minicpm3_4b, bitnet_2b - #205

Open
DarthCeltic wants to merge 4 commits into
aifoundry-org:mainfrom
DarthCeltic:port-phi3-minicpm3-bitnet
Open

feat(model-ports): add phi3_mini, minicpm3_4b, bitnet_2b#205
DarthCeltic wants to merge 4 commits into
aifoundry-org:mainfrom
DarthCeltic:port-phi3-minicpm3-bitnet

Conversation

@DarthCeltic

@DarthCeltic DarthCeltic commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Adds phi3_mini and minicpm3_4b model-ports claims and framework registration. bitnet_2b recipe included as a documented negative result (fails to load -- vendored llama.cpp-et tensor-type enum conflict); no claim filed for it.

Same compliant claim shape as the rest of this campaign. All 3
confirmed as genuinely distinct GGUF-reported execution families:
arch=phi3 (distinct from phi2), arch=minicpm3 (distinct from minicpm),
arch=bitnet-b1.58 (unique in this campaign -- native ternary-weight
model, not a quantization of a higher-precision one).

bitnet_2b's GGUF used a raw tensor dtype (i2_s, id 36) the installed
`gguf` PyPI package's enum doesn't recognize yet -- worked around with
a minimal custom KV-only parser rather than fighting the library
version. Its recipe is the most honestly hedged in this campaign: real
risk that the ET backend's MUL_MAT doesn't support ternary block
matmul at all, genuinely unconfirmed either way, not assumed to work.
minicpm3_4b similarly flags its MLA-style compressed attention as
unconfirmed against ET sysemu, not just a formality caveat.

Verification bar is GGUF-metadata-level for all 3 (file hash +
architecture confirmed), not full ET sysemu load, consistent with the
rest of this batch.
@DarthCeltic
DarthCeltic requested a review from AFOliveira as a code owner July 25, 2026 13:29
@github-actions github-actions Bot added track: model-ports Global approved model ports prize track: community Community support and ecosystem contributions labels Jul 25, 2026
…b claim

Backfills PR Checklist item 2 (framework registration) for phi3_mini
and minicpm3_4b, and replaces their "GGUF-metadata-level only"
verification with real host reference: built a plain CPU-only
(GGML_ET=OFF) llama-perplexity from the same vendored source, ran it
against the board-pinned WikiText-2 corpus. Both load and score
cleanly: phi3 9.4850, minicpm3 11.8752 (confirms MLA-style compressed
attention works on ggml-cpu).

bitnet_2b's claim is withdrawn -- confirmed, not speculative: the
model fails to even load with this repo's vendored llama.cpp-et.
Tensor type id 36 collides between BitNet's native ternary format and
a now-removed legacy type (TYPE_IQ4_NL_4_4) this fork's version still
uses that id for. Recipe rewritten as a documented negative result,
same category as this campaign's RWKV-6/PLaMo-2 findings -- a real
incompatibility, not a hedge.
…b, phi3_mini

Each claim's benchmark_config must exactly match the model's "config"
pointer in .github/ci/benchmark_config.json per effective_model_config()
in model_port_claim.py, not the top-level benchmark_config.json path
itself. Fixes a mismatch that would fail eligibility validation.
@AFOliveira

Copy link
Copy Markdown
Member

For Phi3-mini and MiniCPM3 credit, please add committed deterministic oracle evidence and successful full-offload ET-SoC1 runs. BitNet currently has only a recipe and lacks a registered benchmark/standalone claim; add those if it is intended to count. Phi3 overlaps #204, so only the first final qualifying merge can receive that family credit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

track: community Community support and ecosystem contributions track: model-ports Global approved model ports prize

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants