Hey @LW-Ricarido

And if I want to avoid GIL, should both callee function and caller be wrapped by  @torch.jit.script ?

Yep, current RPC system requires caller and callee functions to be the same. You can, for example, define those functions in a utility file and let both caller and callee import that file.