lightseq icon indicating copy to clipboard operation
lightseq copied to clipboard

about Bart export

Open lonelydancer opened this issue 4 years ago • 1 comments

in examples/inference/python/export/export_bart.py, why do u do Fix encoder layer {} LayerNorm scale and bias Fix decoder layer {} LayerNorm scale and bias

it seems to assign the weight of layer(i+1) = layer(i).

the Bart model in huggingface have no such ops.

lonelydancer avatar Jan 20 '22 03:01 lonelydancer

That is a trick to support pre-LayerNorm and post-LayerNorm, we will remove those confusing code in the future.

Taka152 avatar Jan 20 '22 11:01 Taka152