# ValueError: Tokenizer class ByT5Tokenizer does not exist or is not currently imported

**URL:** <https://discuss.huggingface.co/t/valueerror-tokenizer-class-byt5tokenizer-does-not-exist-or-is-not-currently-imported/6580>\
**Category:** Model cards\
**Created:** [June 5, 2021, 11:07am UTC](https://discuss.huggingface.co/t/valueerror-tokenizer-class-byt5tokenizer-does-not-exist-or-is-not-currently-imported/6580 "2021-06-05T11:07:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hadaev](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@hadaev](https://discuss.huggingface.co/u/hadaev)\
**Post date:** [June 5, 2021, 11:07am UTC](https://discuss.huggingface.co/t/valueerror-tokenizer-class-byt5tokenizer-does-not-exist-or-is-not-currently-imported/6580/1 "2021-06-05T11:07:31Z")

</div>

Docs here suggest to use tokenizer for padding, and i really want so, but cannot.

> **[google/byt5-xl · Hugging Face](https://huggingface.co/google/byt5-xl)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [June 7, 2021, 7:03am UTC](https://discuss.huggingface.co/t/valueerror-tokenizer-class-byt5tokenizer-does-not-exist-or-is-not-currently-imported/6580/2 "2021-06-07T07:03:13Z")

</div>

Hi,

for me it works fine:

> **[Google Colaboratory](https://colab.research.google.com/drive/1OdHAAT9dp6EkxqDuZj5MpRR324w7dEHT?usp=sharing)**

Make sure to install Transformers from source (i.e. from Github).

---

<div class="post-metadata">

**Author:** ![hadaev](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@hadaev](https://discuss.huggingface.co/u/hadaev)\
**Post date:** [June 7, 2021, 10:51am UTC](https://discuss.huggingface.co/t/valueerror-tokenizer-class-byt5tokenizer-does-not-exist-or-is-not-currently-imported/6580/3 "2021-06-07T10:51:56Z")

</div>

Yeah, i used pip version, thx
