News for hackers. Stuff that matters.
Re:Llama from Scratch (or how to implement a paper without c... by tnecniv on Wednesday August 09, 2023 @09:08AM (#37062102)
I’m not sure about PyTorch (last I checked, no, but it’s been a while), but Jax offers rudimentary runtime checking support for matrix shapes via bear / type guard.

Ultimately, though, I don’t think Python will be nearly as good at that as Julia, whose type system can easily ensure matrix sizes make sense.

There are no comments on this comment yet.