Skip to content

This is a text classification template using imdb dataset from HuggingFace and training is powered by PyTorch and PyTorch-Ignite.

Notifications You must be signed in to change notification settings

REsteche/template-text-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Classification Template

This is a text classification template using imdb dataset from HuggingFace datasets and training is powered by PyTorch and PyTorch-Ignite.

Getting Started

Install the dependencies with pip:

pip install -r requirements.txt --progress-bar off -U

Training

The training consider a deterministic process, all the training state (models, optimizers, trainers, ...) will be saved in the logs using TensorBoard tracking system. The best metric scored model will be the saved one.

It's important to mention that the training will be stoped if there is Inf/NaN tensors found. We also have added a number of events to wait if no improvement is verified and then stop the training (6x).

1 GPU Training

python main.py

About

This is a text classification template using imdb dataset from HuggingFace and training is powered by PyTorch and PyTorch-Ignite.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages