Giter Site home page Giter Site logo

alihaiderahmad001 / t5-pytorch-deepdive-building-and-exploring-text-to-text-transfer-transformer-from-scratch Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 223 KB

Implementation for the Paper 'Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer' Alongside a Comprehensive Demonstration.

License: MIT License

Python 100.00%

t5-pytorch-deepdive-building-and-exploring-text-to-text-transfer-transformer-from-scratch's Introduction

T5-PyTorch-DeepDive-Building-and-Exploring-Text-to-Text-Transfer-Transformer-from-Scratch

Implementation for the Paper Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer (T5) Alongside a Comprehensive Demonstration.

License: MIT Platform PyTorch Transformers Python

Goals and Scope

  • Educational Purpose: This project is intended as a learning resource. It aims to offer a clear understanding of the T5 architecture through a hands-on approach by implementing the model from scratch using PyTorch.
  • Model Understanding: Users can delve into each part of the model's architecture, including the encoder, decoder, and the self-attention mechanism, to understand how they contribute to the model's performance.
  • Project Customization: While the primary focus is educational, users are encouraged to modify and adapt the provided components to fit the requirements of their projects.

Limitations

  • Dataset Handling: The current implementation of the dataset loading and processing is optimized for simplicity and small-scale data. Users intending to train models on larger datasets may need to modify the dataset handling components for efficiency.
  • Pre-training Only: This codebase is set up for model pre-training. To use this implementation for fine-tuning on specific tasks, further modifications may be required.

Getting Started

Prerequisites

Ensure you have Python 3.7+ and PyTorch installed. Additionally, this project uses the Transformers library for tokenization.

Installation

Clone the repository and install the required Python packages:

git clone https://github.com/AliHaiderAhmad001/T5-PyTorch-DeepDive-Building-and-Exploring-Text-to-Text-Transfer-Transformer-from-Scratch.git
cd T5-PyTorch-DeepDive-Building-and-Exploring-Text-to-Text-Transfer-Transformer-from-Scratch
pip install -r requirements.txt

Usage

To train the model with the default settings, simply run:

python run.py

You can customize the training by passing additional arguments. For example, to change the number of training epochs and batch size, you can run:

python run.py --epochs 3 --batch_size 32

Contributing

This project is open to contributions and corrections. If you find any inconsistencies with the original T5 paper or have suggestions for improving the implementation, please feel free to open an issue or submit a pull request.

Acknowledgments

This project is inspired by the original T5 paper and the PyTorch community. Special thanks to the authors of the T5 model for their groundbreaking work in NLP.

License

This project is licensed under the MIT License.

t5-pytorch-deepdive-building-and-exploring-text-to-text-transfer-transformer-from-scratch's People

Contributors

alihaiderahmad001 avatar

Stargazers

 avatar  avatar Esmail avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.