north-tokenizer / README.md
arthu1's picture
Upload README.md with huggingface_hub
d151ff5 verified
metadata
license: apache-2.0
tags:
  - sentencepiece
  - tokenizer

North Tokenizer

Shared SentencePiece tokenizer for the North Star model family:

Vocabulary size: 32,000 Format: SentencePiece (.model file)

import sentencepiece as spm
sp = spm.SentencePieceProcessor(model_file="tokenizer.model")
ids = sp.encode("Hello world", out_type=int)