Upstage solar-docvision-preview tokenizer

  • Vocab size: 32,064
  • Langauge support: only English

Please use this tokenizer for tokenizing inputs for the Upstage solar-docvision-preview model.

You can load it with the tokenizer library like this:

from tokenizers import Tokenizer

tokenizer = Tokenizer.from_pretrained("upstage/solar-docvision-preview-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.ids]
print("Tokens:")
print(tokens)

number_of_tokens = len(enc.ids)
print("Number of tokens:", number_of_tokens)
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The model has no library tag.

Collection including upstage/solar-docvision-preview-tokenizer