Coder Social home page Coder Social logo

transformers_spvd's Introduction

lab_transformer

Branches: Everybody has one

PLEASE ONLY WORK ON YOUR BRANCH!!!!!

Install instructions

install with:

conda env create --file environment.yml
conda activate pytorch_transformer

and if data does not exist run the dataset (en-de, de-en) download:

# cd is important, otherwise data goes into wrong folder
cd helpers 
python helpers/iwslt_setup.py 

Data:

Please Check before running training: The data should be in the same directory as the python script in which you are executing torchtext.datasets.IWSLT.splits, e.g.:

transformer-annotated
    |- transformer.py 
    |
    |- .data
        |- iwslt
            |- en-de.tgz
            |- de-en.tgz    

The Annotated Transformer:

  1. blog post
  2. Code from

Project specific

Notes:

copy files from remote to local:

scp -r [email protected]:/work/ws/nemo/fr_as1464-transformer_work-0/transformer-main/experiments_save/<NAME_OF_EXPERIMENT> /home/mrrobot/PycharmProjects/transformer-main/experiments_save

Start TENSORBOARD

# Within the project main folder:
tensorboard --logdir experiments_save/runs

Bleu Score

Transformer

changes to Attention is all you need

Contains the implementation of the original transformer paper "Attention is all you need".

Paper link: https://arxiv.org/pdf/1706.03762.pdf

Certain modifications:

  1. LayerNorm (before instead of after)
  2. Dropout (Added additionally to attention weights and point-wise feed-forward net sublayer

transformers_spvd's People

Contributors

kirankumaraswamy avatar patchtester avatar trellixvulnteam 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.