Skip to main content

A collection of transformer models built using huggingface for various tasks.

Project description

transformers-collection

  • A collection of transformer models built using huggingface for various tasks. Training done using pytorch lightning.
  • Datasets, models and tokenizers from hugging face.
  • Goal: Get familiar with huggingface and pytorch lightning ecosystems.

Get started

Train Models using the library

  • To train models, install using pip: pip install transformers_collection
  • check installation: transformers-collection version

Clone project and modify code

To play around with the code clone the repo:

  • git clone git@github.com:aadhithya/transformers-collection.git
  • Install poetry: pip install poetry
  • Intsall dependencies: poetry install

Note: poetry install will create a new venv. Note: poetry/pip install installs CPU version of pytorch if not available, please make sure to install CUDA version if needed.

Train a model

  • Create the yaml config file for the model (see configs/sentiment-clf.yml for example).

  • train model using: transformers-collection train /path/to/config.yml

  • For a list of supported models, see section Supported Models.

Supported Models / Task

The following models are planned:

Model Dataset Status Checkpoint
Sentiment/Emotion Classification emotion TBD
Text Summarization 🗓️ Planned TBD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transformers_collection-0.2.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

transformers_collection-0.2.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page