Hacker GitHub

← All repos

google/sentencepiece

View on GitHub ↗ ★ 12,163 C++

Unsupervised text tokenizer for Neural Network-based text generation.

11 mentions on Hacker News by 11 people: 1 story, 10 comments · first 2018-09-06 · latest 2025-06-30

Mentions per year 11 mentions · busiest year 2023 (5)
20082026
  1. …labs (OpenAI, Anthropic, Google), only Anthropic with Claude 3 and newer lack local tokenizers. [1] https://github.com/google/sentencepiece [2] https://github.com/googleapis/python-aiplatform/blob/main/ve... [3]…
  2. I thought Gemini used SentencePiece https://github.com/google/sentencepiece
  3. …whitespace boundaries by setting flag `--split-on-whitespace` to false (it's true by default). https://github.com/google/sentencepiece/blob/master/doc/opti...
  4. …Including the frequency weighting is a bit nonstandard among ablative methods. See line 233: https://github.com/google/sentencepiece/blob/master/src/unig... I would suspect the n-gram counts don't cross pre-token boundaries, but I don't…
  5. …trained). you need to train the model on 1 trillion tokens ( https://platform.openai.com/tokenizer https://github.com/google/sentencepiece ) anyways for it to get reasoning capacities, which it feels very unlikely that your data is that…
  6. The original llama uses google's tooling for that, written in C++ https://github.com/google/sentencepiece
  7. …slow as I focused on getting it to run, not making it fast. The tokenizer uses some Google thing https://github.com/google/sentencepiece but luckily for inference it seems that you just need to be able to parse the tokenizer model file and…
  8. …for dates? [1]: http://nlpprogress.com/english/intent_detection_slot_filling... [2]: https://github.com/google/sentencepiece
  9. …like sentencepiece with sub-word splitting and then charge by the number of resulting token. https://github.com/google/sentencepiece
    comment by belval · 2022-04-06 · in Dall-E 2
  10. …with Subword Units https://arxiv.org/abs/1508.07909a A Python library for BPE ngrams: sentencepiece https://github.com/google/sentencepiece