# Training a text classification model on dataset

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftraining-a-text-classification-model-on-dataset%2F46259%3E%5C
**Category:** Beginners\
**Created:** [July 10, 2023, 8:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftraining-a-text-classification-model-on-dataset%2F46259 "2023-07-10T08:55:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![francisurias](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@francisurias](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ffrancisurias)%5C
**Post date:** [July 10, 2023, 8:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftraining-a-text-classification-model-on-dataset%2F46259%2F1 "2023-07-10T08:55:35Z")

</div>

Hi,

I have a dataset that I want to train a text classification model on so that it classifies sentences according to the dataset. What are the steps needed to achieve this? Does this require a lot of technical knowledge/computing power?

---

<div class="post-metadata">

**Author:** ![abhibha](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@abhibha](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabhibha)%5C
**Post date:** [July 11, 2023, 2:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftraining-a-text-classification-model-on-dataset%2F46259%2F2 "2023-07-11T02:07:53Z")

</div>

It depends on the size of the dataset to determine the computing power. Also, if you want to fine tune a large model (LLM/pre-trained) model you may need GPU’s for the same. An estimate can be made after seeing your dataset and the model you want to use.  
As far as technical knowledge is concerned, if you know the basics of pytorch I think you should be good to go.
