I was looking over the PyTorch docs on HIP and it initially came across to me as something that would have to be configured on the software side (i.e. Argos), as it mentions there being different versions of pytorch
If you must check which version of PyTorch you are using, refer to this example
if torch.cuda.is_available() and torch.version.hip:
# do something specific for HIP
elif torch.cuda.is_available() and torch.version.cuda:
# do something specific for CUDA```
After looking it over a bit more I think this may be something that is configured on the end user machine… I need to do some digging around on this. Again, above my pay grade
I checked on my machine and torch.version.hip returned ‘None’ (I can’t find any documentation on what that means though). torch.cuda.is_available() returns false on my machine but that makes sense since I haven’t installed HIP on my end yet.
If someone smarter than me wants to take a look and figure this out, it might not be a bad idea to add some info about HIP in the readme/setup docs for Argos & LibreTranslate, for AMD users.