# Can the Salesforce’s T5\\codegen models can be used for classification?

**URL:** <https://discuss.huggingface.co/t/can-the-salesforce-s-t5-codegen-models-can-be-used-for-classification/20643>\
**Category:** Models\
**Created:** [July 20, 2022, 6:41pm UTC](https://discuss.huggingface.co/t/can-the-salesforce-s-t5-codegen-models-can-be-used-for-classification/20643 "2022-07-20T18:41:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeev55](https://avatars.discourse-cdn.com/v4/letter/z/ed655f/32.png) [@zeev55](https://discuss.huggingface.co/u/zeev55)\
**Post date:** [July 20, 2022, 6:41pm UTC](https://discuss.huggingface.co/t/can-the-salesforce-s-t5-codegen-models-can-be-used-for-classification/20643/1 "2022-07-20T18:41:51Z")

</div>

Hi  
I want to fine-tune the codegen model on a classification task, but the is no ModelForSequenceClassification method like in the case of other models.

Is there a way to convert huggingface models for calssification tasks?
