# torch longformer to tf longformer 

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftorch-longformer-to-tf-longformer%2F9608%3E%5C
**Category:** Models\
**Created:** [August 30, 2021, 6:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftorch-longformer-to-tf-longformer%2F9608 "2021-08-30T18:48:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SR1](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@SR1](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSR1)%5C
**Post date:** [August 30, 2021, 6:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftorch-longformer-to-tf-longformer%2F9608%2F1 "2021-08-30T18:48:48Z")

</div>

I downloaded the model from “[xcjthu/Lawformer at main](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
