Skip to main content

title: t5s emoji: 💯 colorFrom: yellow colorTo: red sdk: streamlit app_file: app.py pinned: false

t5s

pypi Version Downloads Code style: black Streamlit App Open In Colab DAGSHub

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

carbon (7)

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

Metadata

Release files for t5s 2.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for t5s 2.0.8
File Size Uploaded Provenance Actions
t5s-2.0.8.tar.gz 11.3 kB Without provenance Details for t5s-2.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for t5s 2.0.8
File Interpreter ABI Platform Actions
t5s-2.0.8-py3-none-any.whl Python 3 none any Details for t5s-2.0.8-py3-none-any.whl

Total release size: 17.3 kB

Release files / t5s-2.0.8.tar.gz

Download URL t5s-2.0.8.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
16fb909b4164c1e8b22c0513b68d7fb76f83a2a484ab56cdacc828459fbc2178
BLAKE2b-256 checksum
How to use checksums
64f0c163555ba6fd06cd1453afc92b8881ce1ff71e986e444fa2464786c0e7fa
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / t5s-2.0.8-py3-none-any.whl

Download URL t5s-2.0.8-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14708ed582e922f89f36bc05c593d8df0a0892a9ee8af34f1643b003634a6d41
BLAKE2b-256 checksum
How to use checksums
0f109e2ff5a663161a9dca24daaac02bfc5dc7b266b0ba355aa9e63323a9be7d
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for t5s 2.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page