Torchscript with Encoder-Decoder architecture

Hi,
anybody knows where to find some references on how to convert encoder-decoder architectures like BART or T5 to torchscript?
thanks