Re:Ask HN: Do you think Python will disappear for LLM infere...
by franktankbank on Friday January 03, 2025 @12:05PM
(#42587352)
Probably depends on the specific case. Basic initialization is stupid fast compared to any stupid training exercise. If your training is going to take anything longer than a minute you are probably very very safe keeping init/postprocess in python and well if you're doing anything intense consider importing a faster way of doing it. Python is like a motherboard for soldering components.
[ Parent
| on HN ]
Re:Ask HN: Do you think Python will disappear for LLM infere...
by astronautas on Friday January 03, 2025 @12:06PM
(#42587360)
agree, it depends, always benchmark, but my question is rather generic i.e. I am looking for a perspective.
Re:Ask HN: Do you think Python will disappear for LLM infere...
by franktankbank on Friday January 03, 2025 @12:14PM
(#42587441)
Ok my perspective of pursuing something like this in Rust and continuing the motherboard analogy, is that you take on the full burden of developing everything in your laptop onto a single chip (sounds pretty awesome really) but your boundaries can end up blurred as everything is just a single etch. Forcing boundaries by making components with hard won decisions creates a marketplace of exchangeable components. Force everyone to agree on that API by dropping across a hard language boundary.
Re:Ask HN: Do you think Python will disappear for LLM infere...
by astronautas on Friday January 03, 2025 @12:22PM
(#42587533)
can't disagree (a tradeoff).
Re:Ask HN: Do you think Python will disappear for LLM infere...
by franktankbank on Friday January 03, 2025 @12:34PM
(#42587655)
It's getting very philosophical, without a (perhaps impossibly complex/fraught) model of real-world programmers using all available languages doing just what you ask there is no way to find the sweet-spot. I've given some rules of thumb why python still rules and why things in general favor standard forms easily reviewable by humans and peppered with magic only understandable by geeks.
edit: you've removed a line while I was resonding like: "maybe go is a sweet-spot"
I think if you are looking to replace python as a runtime you'd maybe be better off arguing for safety, python is much more easily corruptible so if maybe you don't trust your machine(s) you are training on and don't want to be mislead by someone hacking your initializations then arguably running a compiled program with certain guarantees is safer.
Re:Ask HN: Do you think Python will disappear for LLM infere...
by astronautas on Friday January 03, 2025 @01:00PM
(#42587919)
I agree Python is hardly replacable. Btw, I only mean inference, not training. Training imho should stay pure Python, you can achieve mega throughout with it for batch processing.
Re:Ask HN: Do you think Python will disappear for LLM infere...
by franktankbank on Friday January 03, 2025 @01:17PM
(#42588076)
> Btw, I only mean inference
D'oh! Yea that changes things. I would be considering UI integration from the inference side.