# Converting TikToken to Huggingface Tokenizer

**URL:** <https://discuss.huggingface.co/t/converting-tiktoken-to-huggingface-tokenizer/33535>\
**Category:** 🤗Tokenizers\
**Created:** [March 10, 2023, 8:39pm UTC](https://discuss.huggingface.co/t/converting-tiktoken-to-huggingface-tokenizer/33535 "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](https://discuss.huggingface.co/u/ncoop57)\
**Post date:** [March 10, 2023, 8:39pm UTC](https://discuss.huggingface.co/t/converting-tiktoken-to-huggingface-tokenizer/33535/1 "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](https://discuss.huggingface.co/u/StephennFernandes)\
**Post date:** [April 22, 2024, 2:03pm UTC](https://discuss.huggingface.co/t/converting-tiktoken-to-huggingface-tokenizer/33535/3 "2024-04-22T14:03:49Z")

</div>

hey were you able to convert this ?
