Downloads · 30 days
0
upstage/solar-pro2-tokenizer
solar-pro2-tokenizer is a machine learning model from upstage. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as other.
Upstage solar-pro2 tokenizer - Vocab size: 196,608 - Language support: English, Korean, Japanese and more
Downloads · 30 days
0
Access
Public
Updated Jan 28, 2026
Repo size
23.6 MB
Likes
2
Public
Click a slice to open those files.
.json24.3 MB · 100%
From the Hugging Face model README
Upstage solar-pro2 tokenizer
Please use this tokenizer for tokenizing inputs for the Upstage solar-pro2 model.
You can load it with the transformers library like this:
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("upstage/solar-pro2-tokenizer")
text = "Hi, how are you?"
enc = tokenizer.encode(text)
print("Encoded input:")
print(enc)
inv_vocab = {v: k for k, v in tokenizer.get_vocab().items()}
tokens = [inv_vocab[token_id] for token_id in enc]
print("Tokens:")
print(tokens)
number_of_tokens = len(enc)
print("Number of tokens:", number_of_tokens)