Skip to content

feat: support external Hugging Face tokenizer JSON files - #1973

Merged
leejet merged 1 commit into
masterfrom
feat/hf-tokenizer-support
Sep 14, 2026
Merged

leejet merged 1 commit into
masterfrom
feat/hf-tokenizer-support

Conversation

@leejet

@leejet leejet commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add --tokenizer FILE and named main, clip-l, and clip-g assignments, with matching C API support. Keep embedded tokenizers as the default.
  • Implement HFTokenizer for supported BPE configurations, including normalization, pre-tokenization, added tokens, post-processing, and decoding.
  • Vendor the required Oniguruma and utf8proc sources for Unicode regex and normalization.

Related Issue / Discussion

N/A

Additional Information

N/A

Checklist

@leejet
leejet merged commit 4964abd into master Sep 14, 2026
9 checks passed
@leejet
leejet deleted the feat/hf-tokenizer-support branch September 14, 2026 16:28
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.

1 participant