torch longformer to tf longformer
# 🚀 Feature request
1、how to use this model in triton
2、how to turn it into a tf model

## Motivation

I downloaded the model from "https://huggingface.co/xcjthu/Lawformer/tree/main" which is a torch model. It can not be transformed to a pt file using "torch.jit.trace". I want to use triton to server it. So I want to try to trans it to a tf model and try to transform it to savedmodel


## Your contribution
Sorry, I have no idea about how to Implement it I need your help haha. 
Thanks a lot.
Can't help you with the first question, but for the second:

> how to turn it into a tf model

```
from transformers import TFLongformerModel

model = TFLongformerModel.from_pretrained("xcjthu/Lawformer", from_pt=True)
```<|||||>Hey @aixuedegege,

please use the forum: https://discuss.huggingface.co/ for questions like your first one as it's not really a bug of the library, but more a general question. Your chances of getting a good answer should be higher there :-)<|||||>@NielsRogge Thanks for you answer. But using your code I got some warning "Some weights or buffers of the TF 2.0 model TFLongformerModel were not initialized from the PyTorch model and are newly initialized". I will go to https://discuss.huggingface.co/ for discussing this.