8000 convert : fix nomic-bert-moe mask token by CISC · Pull Request #13757 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

convert : fix nomic-bert-moe mask token #13757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 1, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
spaces--
  • Loading branch information
CISC authored Jun 1, 2025
commit a835a0c0b1665a347e22ce765ef9783a46f2e046
4 changes: 2 additions & 2 deletions convert_hf_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3854,7 +3854,7 @@ def _xlmroberta_set_vocab(self) -> None:
if (piece := tokenizer._convert_id_to_token(token_id)) is not None:
text = piece.encode("utf-8")
score = tokenizer_json["model"]["vocab"][token_id][1]

toktype = SentencePieceTokenTypes.NORMAL
if token_id == unk_token_id:
toktype = SentencePieceTokenTypes.UNKNOWN
Expand All @@ -3865,7 +3865,7 @@ def _xlmroberta_set_vocab(self) -> None:
# No reliable way to detect this, but jina doesn't have any
# elif tokenizer.IsByte(token_id):
# toktype = SentencePieceTokenTypes.BYTE

tokens[token_id] = text
scores[token_id] = score
toktypes[token_id] = toktype
Expand Down
Loading
0