For someone who does not know Fortran, would you agree that the conclusion that can be drawn here is that PyTorch is good enough?
> As you can see, fastGPT is slightly faster than PyTorch when doing as fair comparison as we can (both using OpenBLAS as a backend and both using caching, the default in PyTorch). You can also see that fastGPT loads the model very quickly and runs immediately, while both PyTorch and picoGPT take a long time to both load the model and to import all the Python libraries.
One one core from your benchmarks I see that the Fortran implementation is about 4% faster than the PyTorch one. On 4 cores about 13% faster.Excluding the IO, the main advantage seems to come not from switching the language, but from using Apple's Accelerate framework. It appears to me that this framework is now available for Tensorflow [1] and PyTorch [2] too.
Do you expect that once you port the code to GPU you will see a significant improvement over the GPU version of PyTorch ?
[1] https://blog.tensorflow.org/2020/11/accelerating-tensorflow-...
[2] https://towardsdatascience.com/installing-pytorch-on-apple-m...