This repository contains a Hugging Face fast-tokenizer conversion of the
official
moonshotai/Kimi-K3
tokenizer. It can be loaded without custom
tokenizer code or a runtime
tiktoken
dependency.
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
"prince-canuma/Kimi-K3-tokenizer",
trust_remote_code=False,
)
The vocabulary was converted from revision
9f62e4e9fffbd0a83ddd60e1c209d828994b3569
, preserving Kimi K3's regex and
256 control-token IDs. The chat template is based on Moonshot's pending
refs/pr/60
fast-tokenizer integration.
The native pre-tokenizer also reproduces Moonshot's safety chunking: inputs are
split at 400,000 characters and whitespace/non-whitespace runs at 25,000
characters before applying the Kimi regex. Parity checks against the official
TikTokenTokenizer
covered 10,000 deterministic randomized multilingual
strings, all 256 control tokens in allowed and disallowed modes, decoding,
batching, and boundary inputs up to 800,001 characters.
Consumers that encode untrusted user or tool text containing literal Kimi
control markers should use segment-aware encoding so those strings are not
promoted to control-token IDs.
Runs of prince-canuma Kimi-K3-tokenizer on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About Kimi-K3-tokenizer huggingface.co Model
Kimi-K3-tokenizer huggingface.co is an AI model on huggingface.co that provides Kimi-K3-tokenizer's model effect (), which can be used instantly with this prince-canuma Kimi-K3-tokenizer model. huggingface.co supports a free trial of the Kimi-K3-tokenizer model, and also provides paid use of the Kimi-K3-tokenizer. Support call Kimi-K3-tokenizer model through api, including Node.js, Python, http.
Kimi-K3-tokenizer huggingface.co is an online trial and call api platform, which integrates Kimi-K3-tokenizer's modeling effects, including api services, and provides a free online trial of Kimi-K3-tokenizer, you can try Kimi-K3-tokenizer online for free by clicking the link below.
prince-canuma Kimi-K3-tokenizer online free url in huggingface.co:
Kimi-K3-tokenizer is an open source model from GitHub that offers a free installation service, and any user can find Kimi-K3-tokenizer on GitHub to install. At the same time, huggingface.co provides the effect of Kimi-K3-tokenizer install, users can directly use Kimi-K3-tokenizer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.