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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file transformers_collection-0.2.0.tar.gz.

File metadata

  • Download URL: transformers_collection-0.2.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.13.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.16

File hashes

Hashes for transformers_collection-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5ea87e8f7fa90b6c257c5d168fd10b8102395728430ad0659bd3ec4dc20d766f
MD5 81c01a8b56ecc729a265adba71e9443b
BLAKE2b-256 0aeed48f9043dcef95bb8a3697d5bd2529df27bc6811fb9a776ec90c385f9df1

See more details on using hashes here.

File details

Details for the file transformers_collection-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: transformers_collection-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.13.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.16

File hashes

Hashes for transformers_collection-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29e44a33d7c407452c5c0565980ab695d83bb37b69a38809a528d11b81c70178
MD5 da4e2daa2ce12fbb32a10b1a80a88319
BLAKE2b-256 08559f8d20b1f08dcd9d65d815229f24383675db8a19e49218248873ea900f91

See more details on using hashes here.

Supported by

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