Port ERNIE-4.5-21B-A3B-Base (ernie4_5_moe) - #223
Open
DarthCeltic wants to merge 2 commits into
Open
Conversation
Adds baidu/ERNIE-4.5-21B-A3B-Base-PT to the most_models_ported track, introducing the ERNIE 4.5 MoE execution family to the board (21B total params / 3B active per token, 64 routed experts + 2 shared, 28 layers). Distinct from the already-claimed ernie45_03b identity (PR aifoundry-org#185), which covers a small dense ERNIE-4.5-0.3B model via a separate converter class. This port targets Ernie4_5MoeModel, a genuinely different architecture path (expert routing, shared experts). No converter fix was needed -- Ernie4_5MoeModel is already correctly registered, so this converted cleanly on the first attempt with the stock, unmodified convert_hf_to_gguf.py. PPL = 6.8926 +/- 1.25185 on WikiText-2 raw, confirmed via a real llama-perplexity run on CPU backend. GGUF (23.2 GB) hosted on Hugging Face (darthceltic85/ernie45-21b-a3b-base-gguf) since it far exceeds GitHubs 2GB release-asset limit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
baidu/ERNIE-4.5-21B-A3B-Base-PTto themost_models_portedtrack (identityernie4_5_moe), introducing the ERNIE 4.5 MoE execution family to the board (21B total params / 3B active per token — "A3B", 64 routed experts + 2 shared experts, 28 layers, 131K context).ernie45_03bidentity (PR feat(llama_cpp_et): add ERNIE-4.5-0.3B, CodeShell-7B-Chat, Cohere2 causal-LM ports #185): that port covers ERNIE-4.5-0.3B, a small dense model via the separateErnie4_5Modelconverter class. This port targetsErnie4_5MoeModel(a subclass), a genuinely different code path — expert routing, shared experts, different tensor shapes — and a distinct architecture/identity.Ernie4_5MoeModelis already correctly registered in this repo'sconvert_hf_to_gguf.py, so this converted cleanly on the first attempt with the stock, unmodified converter — same clean-conversion category assmallthinkerandafmoe.sha256=2d18e66097f598c8fb5f3d15fd2fba9e6f916652985426bf0e7e1b478a625d48), hosted on Hugging Face (darthceltic85/ernie45-21b-a3b-base-gguf) since it far exceeds GitHub's 2 GB release-asset limit.arch = ernie4_5-moe, 64 experts / 6 used + shared experts, correct MoE tensor layout, clean compute graph) and realllama-perplexityagainst WikiText-2 raw gives PPL = 6.8926 +/- 1.25185 — a good, in-range result for a 21.83B-parameter model.Test plan
benchmark_configin the claim JSON exactly matches.github/ci/benchmark_config.json's newernie45_21b_a3b_baseentry