# Adding Custom label names for BART training through Trainer Function

**URL:** <https://discuss.huggingface.co/t/adding-custom-label-names-for-bart-training-through-trainer-function/22206>\
**Category:** 🤗Transformers\
**Created:** [August 27, 2022, 9:21pm UTC](https://discuss.huggingface.co/t/adding-custom-label-names-for-bart-training-through-trainer-function/22206 "2022-08-27T21:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guneetsk99](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@guneetsk99](https://discuss.huggingface.co/u/guneetsk99)\
**Post date:** [August 27, 2022, 9:21pm UTC](https://discuss.huggingface.co/t/adding-custom-label-names-for-bart-training-through-trainer-function/22206/1 "2022-08-27T21:21:46Z")

</div>

Hi all I am trying to add label\_names in Trainer for BART model. Now since I have used custom label names my BART is throwing error in the model(\*\*inputs) since its not able to handle the custom label names that I passed through Trainer. Is there way to handle multi labels in BART

---

<div class="post-metadata">

**Author:** ![JWX1](https://avatars.discourse-cdn.com/v4/letter/j/c77e96/32.png) [@JWX1](https://discuss.huggingface.co/u/JWX1)\
**Post date:** [June 10, 2023, 11:06am UTC](https://discuss.huggingface.co/t/adding-custom-label-names-for-bart-training-through-trainer-function/22206/2 "2023-06-10T11:06:39Z")

</div>

Hello, have you solved your problem? I tried out-of-label classification results when using Bart to do multi-classification problems.
