#Google Colabs TPU Implementation
1 messages · Page 1 of 1 (latest)
seems unlikely for the seemingly inactive RVC devs to bother on implementing TPU support
That's possible in theory and may be even plug'n'play since pytorch has pytorch xla extension for cloud TPU devices. But may require more effort in general
But afaik, tpus work best with tensorflow, so it might be not worth it
Applio inference testing with the same model and a 1:25 min audio:
- T4 GPU: 14.77 seconds
- TPU v2: 40.31 seconds
- CPU: 425.75 seconds
yea, Tensor Processing Units as the name says, are better for TensorFlow, so knowing that RVC is built on pytorch it might not be the best
Nice. Have you tried training? I think TPU would benefit more from batched workload, inference runs on just one item
Tried but it froze /usr/lib/python3.10/multiprocessing/popen_fork.py:66: RuntimeWarning: os.fork() was called. os.fork() is incompatible with multithreaded code, and JAX is multithreaded, so this will likely lead to a deadlock.' when doing pitch extraction on my colab 
prolly have to fix smt as i did this fork https://github.com/Nick088Official/Applio-TPU just to mess around with TPUs
These are the current benchmarks as the code is GPU optimised, if the RVC devs optimised and adapted their code for TPU's then the processing speeds would be much faster. Especially training sessions.
For inference the TPU might not outpreform to a worth while extent, but training on batches of data like TPU's are made to handle will be very worth while
Ayo? @spring iron level 3 !!! 
I don't think so, unless someone rewrites the whole code to Jax instead of pytorch
It can be done on pytorch but it's not worth it because pytorch doesn't have as good TPU support such as Jax
For example in stable diffusion they had to make a different Jax pipeline to make it worth it to use tpu
i searched up on internet and found this paper
Pushing the boundaries of machine learning often requires exploring different hardware and software combinations. However, the freedom to experiment across different tooling stacks can be at odds with the drive for efficiency, which has produced increasingly specialized AI hardware and incentivized consolidation around a narrow set of ML framewo...
@fickle pilot as we talked about TPUs here before, u might find what that paper says interesting