Skip to content

chat : fix yandex chat template #15116

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 1 commit into from
Aug 6, 2025
Merged

chat : fix yandex chat template #15116

merged 1 commit into from
Aug 6, 2025

Conversation

CISC
Copy link
Collaborator

@CISC CISC commented Aug 6, 2025

The yandex built-in chat template incorrectly included BOS even though add_bos_token is true, see YandexGPT-5-Lite-8B-instruct-GGUF.

Double-checked a few other suspicious templates (GigaChat, Phi-4 and OrionChat) as well, but they all have add_bos/eos_token set to false.

Edit: This means GigaChat and OrionChat jinja templates were incorrectly applied before BTW (Phi-4 has a different EOS).

Follow-up to #15086

@CISC CISC requested a review from slaren August 6, 2025 10:46
@github-actions github-actions bot added the testing Everything test related label Aug 6, 2025
@CISC CISC merged commit 65c797c into master Aug 6, 2025
47 checks passed
@CISC CISC deleted the cisc/fix-yandex-chat-template branch August 6, 2025 11:26
@adsick
Copy link

adsick commented Aug 6, 2025

Why support Yandex, though?

@CISC
Copy link
Collaborator Author

CISC commented Aug 6, 2025

Why support Yandex, though?

Because someone cared enough to add it in a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Everything test related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants