Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@CISC
Copy link
Collaborator

@CISC CISC commented Aug 5, 2025

Only remove potentially double BOS/EOS token from chat template if add_bos_token or add_eos_token is set, this fixes --jinja for GLM-4.5 as it has [gMask]<sop> in the chat template, with [gMask] as BOS token, but add_bos is false (because both tokens are the real BOS).

@Mushoz
Copy link

Mushoz commented Aug 5, 2025

I am assuming ggufs will have to be regenerated after this PR lands, right?

@github-actions github-actions bot added the testing Everything test related label Aug 5, 2025
@CISC
Copy link
Collaborator Author

CISC commented Aug 5, 2025

I am assuming ggufs will have to be regenerated after this PR lands, right?

No, this is a parsing fix.

@CISC CISC requested a review from slaren August 5, 2025 13:33
Copy link
Member

@slaren slaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks reasonable to me, but I don't know if it will break something else. Let's keep an eye on it just in case.

@CISC
Copy link
Collaborator Author

CISC commented Aug 5, 2025

It could, but chances are whatever it breaks was broken (aka relying on this behaviour) in the first place.

@CISC CISC merged commit f324a3b into master Aug 5, 2025
45 of 47 checks passed
@CISC CISC deleted the cisc/double-add-bos-eos-check branch August 5, 2025 18:43
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.

4 participants