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 |
Metadata
Release files for transformers-collection 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| transformers_collection-0.2.0.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| transformers_collection-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / transformers_collection-0.2.0.tar.gz
| Download URL | transformers_collection-0.2.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ea87e8f7fa90b6c257c5d168fd10b8102395728430ad0659bd3ec4dc20d766f
|
|
BLAKE2b-256 checksum How to use checksums |
0aeed48f9043dcef95bb8a3697d5bd2529df27bc6811fb9a776ec90c385f9df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / transformers_collection-0.2.0-py3-none-any.whl
| Download URL | transformers_collection-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29e44a33d7c407452c5c0565980ab695d83bb37b69a38809a528d11b81c70178
|
|
BLAKE2b-256 checksum How to use checksums |
08559f8d20b1f08dcd9d65d815229f24383675db8a19e49218248873ea900f91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|