Performance portable LLM inference in Fortran (beating llama.cpp/vllm on H200)

@suwesh081 ,

Please note there was NO question whatsoever of comparison between your environment and that of @certik , the interest is only in relative performance differences on a given environment. For example, the performance using a straight, standard (and potentially portable) Fortran codebase on a given environment compared to other (effectively, non-standard and usually non-portable) options on the same.

So the curiosity here is the relative difference on your environment with LFortran vs ‘C + CUDA’.

And what you are indicating is LFortran is presently INFINITELY superior in your environment because your “X” is basically zero tok/s!

Goes to prove what @szaghi stated recently, @certik and the LFortran team rock!!

2 Likes

Yes, I guess Batched prefill and decode using GEMM can provide a substantial speedup.

Memory bandwidth is still undefeated. :fire:

1 Like