Transformer is a TensorFlow implementation of the architecture introduced in the Attention Is All You Need paper. It was created as a readable and relatively modular reference for understanding and experimenting with Transformer-based machine translation. The updated implementation corrects issues involving masking, positional encoding, and other parts of the original code. It adds components such as byte-pair encoding and shared weight matrices. Training and evaluation are demonstrated with the IWSLT 2016 German-to-English translation dataset. The repository includes preprocessing, training, inference, evaluation, configurable hyperparameters, pretrained checkpoints, and BLEU-based translation results.

Features

  • Transformer attention architecture
  • TensorFlow-based implementation
  • Byte-pair encoding support
  • Shared embedding weight matrices
  • Training and inference scripts
  • BLEU translation evaluation

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow transformer

transformer Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of transformer!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2026-08-28