# Unable to load tokenizer

**URL:** <https://discuss.huggingface.co/t/unable-to-load-tokenizer/140846>\
**Category:** 🤗Transformers\
**Created:** [February 14, 2025, 12:55pm UTC](https://discuss.huggingface.co/t/unable-to-load-tokenizer/140846 "2025-02-14T12:55:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai-santhosh](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sai-santhosh](https://discuss.huggingface.co/u/sai-santhosh)\
**Post date:** [February 14, 2025, 12:55pm UTC](https://discuss.huggingface.co/t/unable-to-load-tokenizer/140846/1 "2025-02-14T12:55:07Z")

</div>

```from

model = AutoModelForCausalLM.from_pretrained(
    "meta-llama/Llama-3.2-3B",
    quantization_config = bnb_config,
    trust_remote_code = True,
    token = token
).to(device)

tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B")

```

 ![Screenshot 2025-02-14 182405](https://us1.discourse-cdn.com/hellohellohello/original/3X/b/3/b3b08f3ce4fee4146a87b87a0465c5caa6b967db.png)

im trying to load llama-3.2-3B tokenizer but getting error.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [February 14, 2025, 1:38pm UTC](https://discuss.huggingface.co/t/unable-to-load-tokenizer/140846/2 "2025-02-14T13:38:39Z")

</div>

I don’t know if this is the reason, but you forgot your token.

```py
#tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B", token = token)

```

---

<div class="post-metadata">

**Author:** ![sai-santhosh](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sai-santhosh](https://discuss.huggingface.co/u/sai-santhosh)\
**Post date:** [February 14, 2025, 2:40pm UTC](https://discuss.huggingface.co/t/unable-to-load-tokenizer/140846/3 "2025-02-14T14:40:17Z")

</div>

Thanks. It worked

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](https://discuss.huggingface.co/u/system)\
**Post date:** [February 15, 2025, 2:40am UTC](https://discuss.huggingface.co/t/unable-to-load-tokenizer/140846/4 "2025-02-15T02:40:53Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
