# Can't run fine-tuning model?

**URL:** <https://discuss.huggingface.co/t/cant-run-fine-tuning-model/37612>\
**Category:** Models\
**Created:** [April 24, 2023, 8:20pm UTC](https://discuss.huggingface.co/t/cant-run-fine-tuning-model/37612 "2023-04-24T20:20:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kheirif](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@kheirif](https://discuss.huggingface.co/u/kheirif)\
**Post date:** [April 24, 2023, 8:20pm UTC](https://discuss.huggingface.co/t/cant-run-fine-tuning-model/37612/1 "2023-04-24T20:20:08Z")

</div>

Load the model first:  
`model = TFAutoModelForQuestionAnswering.from_pretrained("pathtomymodel")`

Create the tokens:

```auto
tokenizer = AutoTokenizer.from_pretrained("bert-base-cased")
inputs = tokenizer(question, context, return_tensors="tf")

question_answerer =pipeline('question-answering', model=model, tokenizer=tokenizer)

```

Run:  
`outputs = model(**inputs)`  
Got the following error:

```auto
raise ValueError(
ValueError: The following keyword arguments are not supported by this model: ['token_type_ids'].

```

---

<div class="post-metadata">

**Author:** ![raygx](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/raygx/32/17328_2.png) [@raygx](https://discuss.huggingface.co/u/raygx)\
**Post date:** [May 19, 2023, 4:17am UTC](https://discuss.huggingface.co/t/cant-run-fine-tuning-model/37612/2 "2023-05-19T04:17:20Z")

</div>

I am getting same error in Text Classification. Let me know if you found any solutions.
