Repository navigation
convert : add missing return after setting tekken vocab - #25947
Merged
Merged
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
AngelGalindo7
force-pushed
the
fix/convert-tekken-vocab
branch
from
July 30, 2026 00:28
cb324ae to
20f97bc
Compare
CISC
approved these changes
Aug 4, 2026
satindergrewal
pushed a commit
to satindergrewal/llama.cpp
that referenced
this pull request
Aug 12, 2026
brittlewis12
pushed a commit
to brittlewis12/llama.cpp
that referenced
this pull request
Aug 17, 2026
thecodacus
pushed a commit
to thecodacus/llama.cpp
that referenced
this pull request
Sep 7, 2026
zbrad
pushed a commit
to zbrad/llama.cpp
that referenced
this pull request
Sep 10, 2026
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
Issue #25359:
Failure to convert for HF-layout model with tekken.json and no tokenizer.json
AttributeError: 'MistralCommonTokenizer' object has no attribute 'vocab'Originally it had the return in #14862 but was dropped by a refactor in #14737, which renamed set_vocab_tekken() to _set_vocab_mistral(). Behavior carried over when #17114 moved it to conversion/llama.py.
Fix: Adding return to the tekken branch, restoring the behavior from #14862.
Additional information
Reproduced by running
Before:
After:
Requirements