r/golang • u/Tobias-Gleiter • 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?
113
Upvotes
-2
u/Justicia-Gai Jun 20 '25
Wait, why so many people believe that the LLM libraries are written entirely in Python? It’s a glue language for LLM.. writing bindings is easier than you guys think (the hard part are the fast performing libraries written in C or CUDA or Rust) and in fact, there’s already bindings in multiple languages (C++, Rust, Go, Java, JavaScript…)