3 ms·
I know this probably seems like such a small detail to a lot of people, but I really love that the author adds comments. I can't stand reading PyTorch or other
by andrewmcwatters 1y ago
I know this probably seems like such a small detail to a lot of people, but I really love that the author adds comments.
I can't stand reading PyTorch or other neural network code and asking myself, "What architecture am I looking at here?" or "What the hell are these operations for?"
It's always like an mash up of reading some published paper code with deep effort behind it along with all the worst programming practices of complete unreadability.
- imranq 1y agoCould you pop your code into an LLM and ask it to write comments for you? I'm not sure how accurate it is though
- andrewmcwatters 1y agoI've noticed leading models fail to understand what's happening in undocumented neural network code as well, so not yet it seems.
- CamperBob2 1y agoIt may be a reasonable approach if you give the model a lot of clues to start with. Basically tell it everything you do know about the code. I wouldn't expect miracles from just uploading a big .py file and asking it to add comments.