Port DeepSeek-MoE-16B-Base (deepseek) - #220
Open
DarthCeltic wants to merge 2 commits into
Open
Conversation
Adds deepseek-ai/deepseek-moe-16b-base to the most_models_ported track. Two layered converter bugs found and fixed via a standalone monkeypatch wrapper (never touching the vendored submodule): (1) this checkpoints tokenizer chkhsh was entirely missing from get_vocab_base_pre()s known- hash table; (2) the first fix attempt registered a made-up pre-tokenizer name (deepseek-moe) that passed Python-side conversion but was NOT recognized by the separate hardcoded C++ pre-tokenizer registry in llama-vocab.cpp -- caught by actually loading the produced GGUF, not just trusting a clean conversion. Fixed by using the existing name deepseek-llm instead, since DeepSeek's early dense/MoE models share the same base BPE tokenizer family. PPL = 7.2909 +/- 1.30187 on WikiText-2 raw, confirmed via a real llama-perplexity run on CPU backend (tokenizer.ggml.pre = deepseek-llm confirms the C++ runtime recognizes the corrected name). GGUF (17.4 GB) hosted on Hugging Face (darthceltic85/deepseek-moe-16b-base-gguf) since it far exceeds GitHub's 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
deepseek-ai/deepseek-moe-16b-baseto themost_models_portedtrack (identitydeepseek), introducing the DeepSeek MoE execution family to the board — the architecture that predates and informed the later DeepSeek-V2/V3 MoE designs.ported_models/deepseek_moe_16b_base/convert_wrapper.py, vendored submodule never touched, matching the establishedpythia410mprecedent):93105512fde79bc726022fe3cbfb7efef9738465b988d0600beba1296e3a91d8) entirely absent fromget_vocab_base_pre()'s known-hash table, so conversion fails outright.'deepseek-moe') let Python-side conversion succeed, but that name is NOT recognized by the separate, hardcoded C++ pre-tokenizer registry inllama-vocab.cpp(which only knows'deepseek-llm'/'deepseek-coder'/'deepseek-v3'/'deepseek-r1-qwen') — a GGUF built that way loads fine in Python tooling but is silently wrong at real inference time. Caught this by actually loading the produced GGUF withllama-perplexity, not by trusting a clean Python conversion alone. Fixed by using the existing name'deepseek-llm'instead, since DeepSeek's early dense and MoE models share the same base BPE tokenizer family.sha256=63eb27478a35ec36a3fd7c50e704ef6752ca235a59491d7673909da6fd8f0971), hosted on Hugging Face (darthceltic85/deepseek-moe-16b-base-gguf) since it far exceeds GitHub's 2 GB release-asset limit.arch = deepseek,tokenizer.ggml.pre = deepseek-llm— confirming the C++ runtime recognizes the corrected name, 64 experts / 6 used) and realllama-perplexityagainst WikiText-2 raw gives PPL = 7.2909 +/- 1.30187 — a good, in-range result.Test plan
benchmark_configin the claim JSON exactly matches.github/ci/benchmark_config.json's newdeepseek_moe_16b_baseentry