# Got KeyError('inputs')

**URL:** <https://discuss.huggingface.co/t/got-keyerror-inputs/1094>\
**Category:** Beginners\
**Created:** [September 12, 2020, 8:28am UTC](https://discuss.huggingface.co/t/got-keyerror-inputs/1094 "2020-09-12T08:28:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cahya](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cahya/32/48725_2.png) [@cahya](https://discuss.huggingface.co/u/cahya)\
**Post date:** [September 12, 2020, 8:28am UTC](https://discuss.huggingface.co/t/got-keyerror-inputs/1094/1 "2020-09-12T08:28:05Z")

</div>

Hi,  
For some reason I get KeyError(‘inputs’) on any request to QA hosted inference like:  
[https://huggingface.co/deepset/bert-base-cased-squad2](https://huggingface.co/deepset/bert-base-cased-squad2)  
Thanks for checking

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [September 12, 2020, 4:39pm UTC](https://discuss.huggingface.co/t/got-keyerror-inputs/1094/2 "2020-09-12T16:39:00Z")

</div>

This is for @mfuntowicz 😉

---

<div class="post-metadata">

**Author:** ![mfuntowicz](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mfuntowicz/32/3514_2.png) [@mfuntowicz](https://discuss.huggingface.co/u/mfuntowicz)\
**Post date:** [September 13, 2020, 10:50am UTC](https://discuss.huggingface.co/t/got-keyerror-inputs/1094/3 "2020-09-13T10:50:54Z")

</div>

Hi @cahya,

Thanks for reporting, the issue should be fixed now.

Sorry for the inconvenience

---

<div class="post-metadata">

**Author:** ![mickeymnemonic](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mickeymnemonic](https://discuss.huggingface.co/u/mickeymnemonic)\
**Post date:** [November 19, 2020, 12:53pm UTC](https://discuss.huggingface.co/t/got-keyerror-inputs/1094/4 "2020-11-19T12:53:59Z")

</div>

hi there, i am also getting this error message when i go to fine tune the pretrained BERTForMaskedLM on my dataset object.

a detailed view of my code and error message is available at the link below.

any idea what this error represents? is it in relation to my dataset, the trainer or perhaps model? thank you!!!

> <https://stackoverflow.com/questions/64911499/huggingface-transformer-models-keyerror-input-ids-message-at-beginning-of-be>
