Based on the code it seems you would need to port the hilbert transformation and unwrap to PyTorch to avoid using scipy and numpy on the CPU.
I had a quick look at the source code for hilbert 25 and unwrap 10 and I think all needed operations are implemented in PyTorch, so that you could try to port these methods directly.