# C4\_W3\_2\_Question\_Answering Error

**URL:** <https://community.deeplearning.ai/t/c4-w3-2-question-answering-error/345421>\
**Category:** NLP with Attention Models\
**Tags:** week-module-3\
**Created:** [May 28, 2023, 12:42pm UTC](https://community.deeplearning.ai/t/c4-w3-2-question-answering-error/345421 "2023-05-28T12:42:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damieno](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Damieno](https://community.deeplearning.ai/u/Damieno)\
**Post date:** [May 28, 2023, 12:42pm UTC](https://community.deeplearning.ai/t/c4-w3-2-question-answering-error/345421/1 "2023-05-28T12:42:04Z")

</div>

Hi, when running C4\_W3\_Question\_Answering\_with\_BERT on CoLab it works all the way down to the training of the model where it errors. See image 1. If I then install accelerate as recommended it gives a new error. See image 2. Can you advise on fix/solution ? The first workbook worked fine. It seems to be the training functionality that has the problem. Thanks/

**Image 1:**

 ![image](https://global.discourse-cdn.com/dlai/original/3X/0/8/08b26cf816e861264289ec7853280813bdea5a08.png)

**Image 2:**

 ![image](https://global.discourse-cdn.com/dlai/original/3X/f/2/f2d4a1cb66413b80bd33ac1be7d159c44782cc87.png)

---

<div class="post-metadata">

**Author:** ![Damieno](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Damieno](https://community.deeplearning.ai/u/Damieno)\
**Post date:** [May 28, 2023, 1:55pm UTC](https://community.deeplearning.ai/t/c4-w3-2-question-answering-error/345421/2 "2023-05-28T13:55:38Z")

</div>

Fixed based on these updates:

[python - NameError: name ‘PartialState’ is not defined error while training hugging face wave2vec model - Stack Overflow](https://stackoverflow.com/questions/76225595/nameerror-name-partialstate-is-not-defined-error-while-training-hugging-face)

[Name Error: “Partial State” is not defind · Issue #22816 · huggingface/transformers · GitHub](https://github.com/huggingface/transformers/issues/22816)

---

<div class="post-metadata">

**Author:** ![Elemento](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/elemento/32/854_2.png) [@Elemento](https://community.deeplearning.ai/u/Elemento)\
**Post date:** [May 29, 2023, 5:26am UTC](https://community.deeplearning.ai/t/c4-w3-2-question-answering-error/345421/3 "2023-05-29T05:26:47Z")

</div>

Hey @Damieno,  
Thanks for letting us know that your issue has been resolved.

Cheers,  
Elemento
