I have a suggestion: use https://github.com/modern-fortran/neural-fortran. I have implemented MultiHead Attention, LayerNorm and Embedding there. I think, the most sensible thing would be to combine the effort and use that implementation here. It also includes training code, thus making training code implementation here trivial. Batch inference also becomes a lot easier.
Also, I believe we should also combine effort with my WIP Llama with regard to two-byte floats and GPU shaders
I have a suggestion: use https://github.com/modern-fortran/neural-fortran. I have implemented MultiHead Attention, LayerNorm and Embedding there. I think, the most sensible thing would be to combine the effort and use that implementation here. It also includes training code, thus making training code implementation here trivial. Batch inference also becomes a lot easier.
Also, I believe we should also combine effort with my WIP Llama with regard to two-byte floats and GPU shaders