T5 Summarisation Using Pytorch Lightning
Project description
title: t5s emoji: 💯 colorFrom: yellow colorTo: red sdk: streamlit app_file: app.py pinned: false
t5s
T5 Summarisation Using Pytorch Lightning, DVC, DagsHub and HuggingFace Spaces
Here you will find the code for the project, but also the data, models, pipelines and experiments. This means that the project is easily reproducible on any machine, but also that you can contribute data, models, and code to it.
Have a great idea for how to improve the model? Want to add data and metrics to make it more explainable/fair? We'd love to get your help.
Installation
To use and run the DVC pipeline install the t5s
package
pip install t5s
Usage
Firstly we need to clone the repo containing the code so we can do that using:
t5s clone
We would then have to create the required directories to run the pipeline
t5s dirs
Now to define the parameters for the run we have to run:
t5s start [-h] [-d DATASET] [-s SPLIT] [-n NAME] [-mt MODEL_TYPE]
[-m MODEL_NAME] [-e EPOCHS] [-lr LEARNING_RATE]
[-b BATCH_SIZE]
Then we need to pull the models from DVC
t5s pull
Now to run the training pipeline we can run:
t5s run
Before pushing make sure that the DVC remote is setup correctly:
dvc remote modify origin url https://dagshub.com/{user_name}/summarization.dvc
dvc remote modify origin --local auth basic
dvc remote modify origin --local user {user_name}
dvc remote modify origin --local password {your_token}
Finally to push the model to DVC
t5s push
To push this model to HuggingFace Hub for inference you can run:
t5s upload
Next if we would like to test the model and visualise the results we can run:
t5s visualize
And this would create a streamlit app for testing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file t5s-2.0.4.tar.gz
.
File metadata
- Download URL: t5s-2.0.4.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6a1962713581f5815b01a74ae8287697af01927668f5f07453780d7509d83d |
|
MD5 | 64049b55748aace3acb4b929f6a7c2c5 |
|
BLAKE2b-256 | 5054879a0a292d23585bfcf345df1733f493d8308be67649247c3fc7a72fd95b |
File details
Details for the file t5s-2.0.4-py3-none-any.whl
.
File metadata
- Download URL: t5s-2.0.4-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5825f7ebe86fae6176a014aa300fbe3c42ff199b9476a926ebaa3aad8f8ac518 |
|
MD5 | 9b12e251fb858a9c7454fa825bade5e5 |
|
BLAKE2b-256 | 6280091360d41db95c1b229051a4cc7d2a08793fa34d8cf9c5381b041737fbd4 |