facebookresearch/ParlAI

Support tied positional weights in transformers

Open

#2,184 opened on Nov 19, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (10,371 stars) (2,089 forks)batch import
EnhancementH1 2020Help WantedMediumdonotreap

Description

Add a flag to use tied positional embeddings in transformer/generator and transformer/retrieval, and implement the tied weights. Should be False by default for backwards compatibility, and upgrade_opt should be used to migrate old models.

Contributor guide