huawei-noah / Pretrained-Language-Model

Pretrained language model and its related optimization techniques developed by Huawei Noah's Ark Lab.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tinybert linear transformation sharing

sh0416 opened this issue · comments

Hi,

In the paper, the linear transformation is performed to match the hidden representation between student and teacher embeddings.

In the code, this is implemented using fit_dense, but this layer is instantiated only once.

It means that the linear transformation weight is shared through the layers, do I understand clearly?