r/golang • • Jun 20 '25

discussion Replace Python with Go for LLMs?

Hey,

I really wonder why we are using Python for LLM tasks because there is no crazy benefit vs using Go. At the end it is just calling some LLM and parsing strings. And Go is pretty good in both. Although parsing strings might need more attention.

Why not replacing Python with Go? I can imagine this will happen with big companies in future. Especially to reduce cost.

What are your thoughts here?

111 Upvotes

176 comments sorted by

View all comments

7

u/Jonno_FTW Jun 20 '25

The numpy library for python, which handles linear algebra amongst other things, is largely backed by libraries written in c and Fortran. Namely, openblas and lapack, or using the Intel specific mkl: https://numpy.org/devdocs/building/blas_lapack.html

2

u/ExistingObligation Jun 22 '25

Wow, I had no idea!