Giter Club home page Giter Club logo

continualnat's Introduction

Profile Introduction


๐Ÿง‘โ€๐Ÿ’ป About me

  • ๐ŸŽ“ B.Sc. degree in Computer Science at University of Florence.
  • ๐ŸŽ“ M.Sc. degree in Computer Science (Artificial Intelligence curriculum) at University of Pisa.
  • ๐Ÿ”จ I mostly work with Python right now.

๐Ÿ› ๏ธ Tech stack

Languages

Python LaTeX MatLab C++ Java Jupyter

Packages and libraries

Pytorch Lightning HuggingFace Pandas NumPy Keras TensorFlow scikit-learn matplotlib

OS

Windows11 Ubuntu

Version control

Git GitHub


๐Ÿ“‘ Github Stats

RistoAle97 Github Stats RistoAle97 Most Used Languages

RistoAle97's github activity graph

continualnat's People

Contributors

ristoale97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

continualnat's Issues

Improve distillation

  • Improve the method for distilling a dataset (scripts/distillation.py).
  • Push the datasets trained in this way on the hugginface hub in order to load them for future use (NAR models benefit greatly from sequence-level knowledge distillation).

Train tokenizer only on the requested languages

Train a new sentencepiece tokenizer with the following requirements:

  • Use SentencepieceBPETokenizer from huggingface.
  • Train on the cc100 dataset possibly.
  • All the languages must have the same number of sentences during training.
  • It should have a <length> token as cls (for the CMLM model).
  • It should have tokens mainly from english, french, german and spanish (romanian and chinese can also be considered).
  • The special lang tokens should only be linked to the previously listed languages (this may be optional if the tokenizer doesn't allow it).
  • Write a method to automatize the previous points.

Implement a continual learning strategy

  • Implement the continual learning strategy of replay, each experience is made of two language directions ($en \Leftrightarrow x$), where $x \in \set{de, fr, es}$.
  • Let the user decide the buffer size and the experience order.

Implement trainer

  • The trainer should take care of the train and validation steps which are currently located inside train.py.
  • The logging on the tensorboard should be also managed by the trainer (if the user requests it).
  • The train.yaml file should be used instead of passing arguments by terminal and it must have a simple structure.

Implement a single trainer

  • The training is performed by using the script train.py right now and the user must manually change the model, dataset collators and callbacks. A trainer class should be built in order to have a more general and automatized approach.
  • There is still an issue during the validation loss logging (but this does not impact the model's performance) while using gradient accumulation, this should be solved.
  • The progress bar used during training should show the actual number of stepping batches instead of the estimated ones, this implies that a custom progress bar must be built.
  • It must be possible to not only train on a single direction (e.g.: en->es) but also on both ways given a pair of languages (e.g.: en<->es).
  • If more than two languages are passed, then the user should have the choice on the translation directions.

Upload the results

Upload the results obtained by the models in three different training settings:

  • Multilingual.
  • Incremental, to show the effects of catastrophic forgetting.
  • Contintual, buffer size set to 5% of the entire training set.

Implement beam search

Beam search should be implemented in order to obtain better results for the auto-regressive models.

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.