Skip to content

unicode : extending opt-in NFC support beyond UGM - #30708

Open
sandrohanea wants to merge 1 commit into
ggml-org:masterfrom
sandrohanea:sandroh-nfc-tokenizer-support
Open

sandrohanea wants to merge 1 commit into
ggml-org:masterfrom
sandrohanea:sandroh-nfc-tokenizer-support

Conversation

@sandrohanea

Copy link
Copy Markdown
Contributor

Overview

The existing NFC metadata flag tokenizer.ggml.normalizer.nfc now works across all seven tokenizer families, through shared normalization after special-token partitioning.

Additional information

Added also unicode_cpts_from_utf8(const char * utf8, size_t length) overload so that NFC-enabled fragments decode directly from a bounded pointer and length, avoiding an intermediate substring copy. Existing string decoder signatures and default-off behavior are preserved.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES, GPT 6.1 Sol assisted. Code reviewed and validated by human.

@github-actions github-actions Bot added the testing Everything test related label Oct 17, 2026
@sandrohanea
sandrohanea marked this pull request as ready for review October 17, 2026 09:46
@CISC

CISC commented Oct 17, 2026

Copy link
Copy Markdown
Member

Should probably take the time to also address the cpt/utf8 round-trip issue, see #30679

@CISC CISC linked an issue Oct 18, 2026 that may be closed by this pull request
@pseudotensor

Copy link
Copy Markdown
Contributor

Thanks!

This branch has not been deployed

No deployments
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.

BPE ignores tokenizer.ggml.normalizer.nfc

3 participants