Repository navigation
model: add Domyn Edge 4B Model - #32559
Merged
Merged
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
Contributor
Author
|
I confirm the commit messages and the PR description were written by myself |
nicholas-mainardi-domyn
marked this pull request as ready for review
November 18, 2026 18:12
nicholas-mainardi-domyn
requested review from
a team,
CISC and
ggerganov
as code owners
November 18, 2026 18:12
CISC
approved these changes
Nov 18, 2026
| def tokenize(self, text: str, add_special: bool = False, parse_special: bool = False) -> list[int]: | ||
| encoded_text: bytes = text.encode("utf-8") | ||
| num = self.lib.llama_tokenize(self.model, encoded_text, len(encoded_text), self.token_ids, len(self.token_ids), add_special, parse_special) | ||
| num = self.lib.llama_tokenize(self.vocab, encoded_text, len(encoded_text), self.token_ids, len(self.token_ids), add_special, parse_special) |
Member
There was a problem hiding this comment.
😆 Guess you're the first one to use this for almost 2 years...
CISC
approved these changes
Nov 19, 2026
Member
nicholas-mainardi-domyn
force-pushed
the
feat/domyn_edge
branch
from
November 19, 2026 16:17
924a9f9 to
c119298
Compare
CISC
approved these changes
Nov 19, 2026
4 of 11 tasks
Kidplayer666
pushed a commit
to Kidplayer666/llama.cpp
that referenced
this pull request
Nov 20, 2026
* feat: add domyn-edge model * Generate tokenizer hash for conversion + fix tests * Address changes according to code-review skill * catch ValueError in convert_hf_to_gguf_update.py * renegerate fusion test baseline + fix model naming style
Annieren
pushed a commit
to Annieren/llama.cpp-upstream
that referenced
this pull request
Nov 23, 2026
* feat: add domyn-edge model * Generate tokenizer hash for conversion + fix tests * Address changes according to code-review skill * catch ValueError in convert_hf_to_gguf_update.py * renegerate fusion test baseline + fix model naming style
Mr-J-369
pushed a commit
to Mr-J-369/llama.cpp-Android
that referenced
this pull request
Nov 25, 2026
* feat: add domyn-edge model * Generate tokenizer hash for conversion + fix tests * Address changes according to code-review skill * catch ValueError in convert_hf_to_gguf_update.py * renegerate fusion test baseline + fix model naming style (cherry picked from commit 55d3235)
Nindaleth
pushed a commit
to Nindaleth/llama.cpp
that referenced
this pull request
Nov 26, 2026
* feat: add domyn-edge model * Generate tokenizer hash for conversion + fix tests * Address changes according to code-review skill * catch ValueError in convert_hf_to_gguf_update.py * renegerate fusion test baseline + fix model naming style
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.
Overview
This PR adds support for the Domyn Edge architecture. Domyn Edge is a new 4B model being progressively released by Domyn. The latest model checkpoint can be found here; later checkpoints up to the final version of the model will be progressively released, but the model architecture won't change, so this PR will work with upcoming checkpoints of the model.
Additional information
The model architecture for Domyn Edge has been added following the guidelines and best practices suggested in add-new-model and the docs.
Architecture distinctive features:
The PR also updates
test-llama-archsmodule to correctly mock a domyn edge GGUF. All thectestran successfullyConversion Correctness Tests
The following tests were run to assess the correctness of the model architecture w.r.t. HF model:
test-tokenizer-0on the test cases generated byconvert_hf_to_gguf_update.pytests/test-tokenizer-random.pycausal-verify-logitsrecipe on the GGUF model converted with bf16 weights (same as source) inexamples/model_conversionto check that computed logits are closecausal-run-quantized-modelrecipe inexamples/model_conversionfor a quantized Q8_0 modelMinor Additional Changes
These are small changes to fix some minor issues I identified when testing the model:
libllama.tokenize/detokenizeintests/test-tokenizer-random.pyto match the new APIs, providing as input argument the vocabulary rather than the modelconvert_hf_to_gguf_update.pyonly after the successful download of the model; otherwise the generation of the test cases on new models may fail if the user doesn't have access to other modelsI believe they are small enough to avoid having a distinct PR for them, but I am open to moving such fixes to specific PRs
Requirements