This repository contains the code for the causal transformer decoder, which is the autoregressive version of the Pytorch TransformerDecoder.
Explanation of what it does can be found here: https://scale.com/blog/pytorch-improvements
pip install git+https://github.com/alexmt-scale/causal-transformer-decoder.git
The Causal Transformer Decoder is supposed to return the same output as the Pytorch TransformerDecoder when generating sentences, provided the input is the same.
python -m pytest
python -m benchmarks.benchmark_transformers
python -m benchmarks.gpt_generation_benchmark
The source code for the site is licensed under the MIT license, which you can find in the LICENSE file.