# Converting TikToken to Huggingface Tokenizer

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconverting-tiktoken-to-huggingface-tokenizer%2F33535%3E%5C
**Category:** 🤗Tokenizers\
**Created:** [March 10, 2023, 8:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconverting-tiktoken-to-huggingface-tokenizer%2F33535 "2023-03-10T20:39:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncoop57](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ncoop57/32/3107_2.png) [@ncoop57](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fncoop57)%5C
**Post date:** [March 10, 2023, 8:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconverting-tiktoken-to-huggingface-tokenizer%2F33535%2F1 "2023-03-10T20:39:20Z")

</div>

Hiya! We’ve trained a model using the TikToken cl100k\_base tokenizer. However, we want to convert it into a capabitible huggingface model + tokenizer. We’ve got the model converted, but we aren’t sure how to go about converting the TikToken tokenizer to one that works in the huggingface ecosystem. Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![StephennFernandes](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stephennfernandes/32/17230_2.png) [@StephennFernandes](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FStephennFernandes)%5C
**Post date:** [April 22, 2024, 2:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconverting-tiktoken-to-huggingface-tokenizer%2F33535%2F3 "2024-04-22T14:03:49Z")

</div>

hey were you able to convert this ?
