# "No token was detected" when using Hosted inference API

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-token-was-detected-when-using-hosted-inference-api%2F17956%3E%5C
**Category:** 🤗Transformers\
**Created:** [May 14, 2022, 6:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-token-was-detected-when-using-hosted-inference-api%2F17956 "2022-05-14T18:07:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yananchen](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/yananchen/32/37864_2.png) [@yananchen](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fyananchen)%5C
**Post date:** [May 14, 2022, 6:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-token-was-detected-when-using-hosted-inference-api%2F17956%2F1 "2022-05-14T18:07:09Z")

</div>

Hello, when I want to use the models in the hub to make inferences on my local test cases, there is error: No token was detected

for example, in the token classification task, [xlm-roberta-large-finetuned-conll03-english · Hugging Face](https://huggingface.co/xlm-roberta-large-finetuned-conll03-english)

directly running the defalu test case shows no error:

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/e/ea249859c0f6375d99ad9d0f57d0fb1e6aacb9c1.png)

but when replace with my own local test case, it produces the error.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/f/f710e3dec575ec63dc3c82b36efa9f671d98d1d9.png)

So I wonder if there is any system limitations ? Any reasons for this ? Actually I have test many models in the category of [token classification task], all the same error.

---

<div class="post-metadata">

**Author:** ![Prafuld3](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@Prafuld3](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPrafuld3)%5C
**Post date:** [September 22, 2023, 12:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-token-was-detected-when-using-hosted-inference-api%2F17956%2F2 "2023-09-22T12:31:22Z")

</div>

Facing the same issue

---

<div class="post-metadata">

**Author:** ![jathorpe](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jathorpe](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjathorpe)%5C
**Post date:** [December 1, 2023, 9:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-token-was-detected-when-using-hosted-inference-api%2F17956%2F3 "2023-12-01T21:47:55Z")

</div>

I’m facing the same issue. Does anyone have a solution?

---

<div class="post-metadata">

**Author:** ![adaptivch](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@adaptivch](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fadaptivch)%5C
**Post date:** [May 20, 2024, 7:56pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-token-was-detected-when-using-hosted-inference-api%2F17956%2F4 "2024-05-20T19:56:41Z")

</div>

Seems we all have the same issue.  
Has someone found a solution for it?  
Who could we contact about this?
