Skip to content

A Simple Implementation of the Transformer architecture using PyTorch

Notifications You must be signed in to change notification settings

tinuademargaret/Transformers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transformer

The transformer architecture introduced in this paper implemented from scratch using pytorch out of pure curiosity for how it works.

Installation and use

If you'd like to try it out, clone this repository

Install poetry for dependency management

Change into the root directory of this project and then run

poetry shell 

Then, from the same directory, run:

python main.py

This would use some predefined tokens in the main.py file as input to the transformer network and print out the output from the network. I plan to implement a full generative model. I'll update this Readme once I do so.

Reference

About

A Simple Implementation of the Transformer architecture using PyTorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages