Skip to content

Conversation

@jin-eld
Copy link
Contributor

@jin-eld jin-eld commented Jan 3, 2026

Some models, for instance IQuest-Coder-V1-40B-Instruct do not use an eos token and disable it in the metadata:

 32: BOOL       |        1 | tokenizer.ggml.add_eos_token = False

We still try to access it, which leads to an error when attempting to load the model. Handle it the same way as missing bos tokens, by setting it to an empty string.

This fixes model loading, however the user must still manually specify the proper stopping string in the parameters tab for such models to work.

Checklist:

Some models, for instance IQuest-Coder-V1-40B-Instruct do not use an
eos token and disable it in the metadata:

     32: BOOL       |        1 | tokenizer.ggml.add_eos_token = False

We still try to access it, which leads to an error when attempting to
load the model. Handle it the same way as missing bos tokens, by setting
it to an empty string.

This fixes model loading, however the user must still manually specify
the proper stopping string in the parameters tab for such models to
work.
@oobabooga
Copy link
Owner

Thanks for the fix.

@oobabooga oobabooga merged commit 6e2c4e9 into oobabooga:dev Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants