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

**URL:** <https://discuss.huggingface.co/t/no-token-was-detected-when-using-hosted-inference-api/17956>\
**Category:** 🤗Transformers\
**Created:** [May 14, 2022, 6:07pm UTC](https://discuss.huggingface.co/t/no-token-was-detected-when-using-hosted-inference-api/17956 "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](https://discuss.huggingface.co/u/yananchen)\
**Post date:** [May 14, 2022, 6:07pm UTC](https://discuss.huggingface.co/t/no-token-was-detected-when-using-hosted-inference-api/17956/1 "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](https://discuss.huggingface.co/u/Prafuld3)\
**Post date:** [September 22, 2023, 12:31pm UTC](https://discuss.huggingface.co/t/no-token-was-detected-when-using-hosted-inference-api/17956/2 "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](https://discuss.huggingface.co/u/jathorpe)\
**Post date:** [December 1, 2023, 9:47pm UTC](https://discuss.huggingface.co/t/no-token-was-detected-when-using-hosted-inference-api/17956/3 "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](https://discuss.huggingface.co/u/adaptivch)\
**Post date:** [May 20, 2024, 7:56pm UTC](https://discuss.huggingface.co/t/no-token-was-detected-when-using-hosted-inference-api/17956/4 "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?
