If you really need these particular versions, you could

try to remove/comment all related (jit) errors
use a compatible torchvision version and add the missing pieces you need

I’m not sure, how much work the first approach would be, so the latter one might be easier e.g. if you just need one specific model or functionality.