logoalt Hacker News

bobmarleybiceps • yesterday at 6:52 PM • 4 replies • view on HN

it is sort of surprising how many parts of pytorch seem (sort of) buggy / numerically not great... I think they just have sooo many operations that some are (relatively) unused and don't receive as much attention. (though kl-divergence seems pretty important (??))

I wonder if it's also because ML stuff is just pretty insensitive to numerical issues, so users don't notice it.


Replies

thenickdude • yesterday at 8:54 PM

I'm reminded of this article that explains that the realities of floating point numbers can introduce non-linearity into an otherwise linear neural network:

https://openai.com/index/nonlinear-computation-in-deep-linea...

In this case, the "bug" actually allows the neural net to be more powerful than designed.

coderenegade • yesterday at 8:46 PM

I've been using pytorch since the beginning, and it's pretty rare that I'd reach for the inbuilt KL-divergence. Not because I don't use it, but because there are so many ways to evaluate it, and I'll often hand-roll the one that seems easiest given the project. I suspect others would do the same thing.

And yeah, ML is pretty resistant to this sort of bug.

PaulKeeble • yesterday at 8:29 PM

Its really buggy with a mix of devices especially when they aren't all CUDA. I have run into a lot of problems just having an AMD card in the machine even if I am not trying to use it! Image creation and editting has been broken ever since I added a 9070 XT to my PC, its mere presence is enough to break pytorch for anything image related.

big-chungus4 • yesterday at 8:10 PM

What other parts of pytorch are buggy?

➕ show 1 reply