# Error with runing bert question-answering fine-tuning

**URL:** <https://discuss.huggingface.co/t/error-with-runing-bert-question-answering-fine-tuning/26898>\
**Category:** 🤗Transformers\
**Created:** [November 29, 2022, 1:03am UTC](https://discuss.huggingface.co/t/error-with-runing-bert-question-answering-fine-tuning/26898 "2022-11-29T01:03:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yolo1](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@yolo1](https://discuss.huggingface.co/u/yolo1)\
**Post date:** [November 29, 2022, 1:03am UTC](https://discuss.huggingface.co/t/error-with-runing-bert-question-answering-fine-tuning/26898/1 "2022-11-29T01:03:23Z")

</div>

Hi,  
I have got an error, when I tried to run the provided codes for fine-tuning transformers in huggingface.

> **[transformers/examples/legacy/question-answering at main ·...](https://github.com/huggingface/transformers/tree/main/examples/legacy/question-answering)**
>
> main/examples/legacy/question-answering

I don’t really know why I got this, could some please help me with that? appreciated！

 ![error11](https://us1.discourse-cdn.com/hellohellohello/original/2X/a/afa25fd77cdb5927852b6695be3bb26905b00c4a.png)

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [November 29, 2022, 2:23pm UTC](https://discuss.huggingface.co/t/error-with-runing-bert-question-answering-fine-tuning/26898/2 "2022-11-29T14:23:39Z")

</div>

The model name is `bert-base-uncased`, not `base_bert_uncased`.
