# Token not working

**URL:** <https://discuss.huggingface.co/t/token-not-working/159871>\
**Category:** Beginners\
**Created:** [June 19, 2025, 4:13am UTC](https://discuss.huggingface.co/t/token-not-working/159871 "2025-06-19T04:13:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 19, 2025, 7:16am UTC](https://discuss.huggingface.co/t/token-not-working/159871/2 "2025-06-19T07:16:49Z")

</div>

Regarding the use of models, even if it is a Gated model, you only need to obtain permission, and there are no fees. If it is a public model, you can load it without using tokens.

However, many people fall into pitfalls related to tokens.

> [@401 Error when trying to upload model from local machine](https://discuss.huggingface.co/t/401-error-when-trying-to-upload-model-from-local-machine/156020):
>
> Hello everyone, im currently training LLMs locally with the Unsloth framework. After training they provide a way to upload your model to the Huggingface Hub. model.push\_to\_hub\_gguf( “LuuWee/modelspacename”, # Change hf to your username! tokenizer, quantization\_method = [“q4\_k\_m”, “q8\_0”, “q5\_k\_m”,], token = “hf\_access\_token”, ) For it to upload you need to add your username and an Accesstoken in the request. This worked for me when i trained in Google Colab. I tried the same thing in my …

> [@Invalid token or no access to Hugging Face](https://discuss.huggingface.co/t/invalid-token-or-no-access-to-hugging-face/115807):
>
> Hello! The problem is: I’ve generated several tokens, but no one of them works=( Errors are: API: Authorization header is correct, but the token seems invalid Invalid token or no access to Hugging Face I tried write-token, read-token, token with all permissions. What am I doing wrong?

---

_[View the full topic](https://discuss.huggingface.co/t/token-not-working/159871)._
