Skip to content

A refactoring example of the standard PyTorch transformer language translation tutorial.

Notifications You must be signed in to change notification settings

yasu-k2/transformer_tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch Transformer Tutorial

A refactoring example of the standard PyTorch transformer language translation tutorial.

Initial code available here.

Installation

# Modify as needed the environment.yml (like the name or prefix)

# Create a conda environment
$ conda env create -f environment.yml
$ conda activate tt

# Download the trained spacy pipelines
$ (tt) python -m spacy download en_core_web_sm
$ (tt) python -m spacy download de_core_news_sm

Running

$ conda activate tt
$ (tt) python main.py

About

A refactoring example of the standard PyTorch transformer language translation tutorial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%