| ▲ | sowhat1 5 hours ago | ||||||||||||||||
Not my experience at all. I pointed frontier models at some PyTorch code, told it to make it faster, and it optimized it 10x fold. You’re probably limiting the frontier models by being specific. | |||||||||||||||||
| ▲ | vladms 5 hours ago | parent | next [-] | ||||||||||||||||
I am sure people could find code such that an LLM can optimize it 10x fold. I have seen many types of code in my life (well written, horribly written, fast, slow, etc.). I do feel there is a limit to LLM-s today. I did not try, but I doubt it will work if I would tell it "make me a web browser that is bug free, perfectly secure, works as efficient as possible on my architecture and has best UX for me personally". Knowing where that limit is, is as hard as it always was knowing how fast a team of engineers was going to do a project. | |||||||||||||||||
| |||||||||||||||||
| ▲ | progval 5 hours ago | parent | prev | next [-] | ||||||||||||||||
Not every optimisation is the same. LLMs can optimize code that is behind known practices, but won't usually invent new data structures or algorithms to solve a unique problem. | |||||||||||||||||
| |||||||||||||||||
| ▲ | lifeisloving 4 hours ago | parent | prev | next [-] | ||||||||||||||||
This doesnt even apply to his issue. What does PyTorch code have to do with complex concurrency or complex systems in general. Theres lots of bad Pytorch code, just go ask george hotz. This isnt the magic you think it is. And nobody wants to hire the guy that just points llms at things and says make it faster. Things have value because talented humans make them. Its why a luxury coat is worth more than the linens that make it, or one from walmart made by a machine. This will 1000% apply to programmers. I think OP will be fine. | |||||||||||||||||
| ▲ | mjr00 5 hours ago | parent | prev | next [-] | ||||||||||||||||
The fact that you're pointing it to PyTorch code in the first place is being specific. Pointing a frontier model to a 10 or 100MLoC codebase and saying "make this code fast, make no mistakes" doesn't work. As an experiment I recently tried this with a relative small (500KLoC) codebase and it got stuck on believing that the primary cause of slowdown was the database not using a connection pool. (Which was completely irrelevant for this specific code.) | |||||||||||||||||
| ▲ | xpct 3 hours ago | parent | prev | next [-] | ||||||||||||||||
With how you presented this, it makes it sound like it was either a toy codebase or something outside of your domain already. | |||||||||||||||||
| ▲ | 3 hours ago | parent | prev | next [-] | ||||||||||||||||
| [deleted] | |||||||||||||||||
| ▲ | bob1029 5 hours ago | parent | prev | next [-] | ||||||||||||||||
How large is your codebase? | |||||||||||||||||
| ▲ | intended 5 hours ago | parent | prev [-] | ||||||||||||||||
The example provided covered both options. In general the OP is right, the people who get the most value out of LLMs are veterans. | |||||||||||||||||