News for hackers. Stuff that matters.

marco_z

Re:Ask HN: How did you learn to debug production incidents? on Thursday December 18, 2025 @03:12AM (#46310103)
Through tears and mud, how else?

Show HN: Lightning-extra, cloud-native plugins for PyTorch Lightning

https://github.com/ocramz/lightning-extra

After building ML systems in various organizations, I collected some useful kit I wrote into a single library.What you can do with this:* Save (and retrieve) model checkpoints (optionally with a content-addressable naming scheme) on blob storage* Load datasets incrementally from blob storage into Pytorch, using a local disk cache* store your training metrics into SQLiteDesign principles :*...

( Read More... | no comments | on HN )
Re:Show HN: Chess on a Donut/Torus and Deep-Dive on Thursday December 04, 2025 @11:21PM (#46156809)
E.g the pieces from the rows you eliminate reappear at random at the top row.
Re:Ambsheets: Spreadsheets for Exploring Scenarios on Thursday February 06, 2025 @04:44AM (#42960746)
probably one needs something like lazy evaluation, so that things are only computed if needed.
Re:Minimum bipartite matching via Riemann optimization on Saturday January 11, 2025 @12:52AM (#42663640)
Boumal was advised by Absil IIRC :) And in fact you can see this in his more modern presentation of the material.
Re:Minimum bipartite matching via Riemann optimization on Wednesday January 08, 2025 @03:32PM (#42638157)
Good pointer! I did know about CVXPY but haven't used it yet. Though in requiring everything to be (log-)convex it constrains the user programs quite a bit, but I imagine it would have worked in this case because the objective is linear and the feasible set convex. I won't deny the role accident and force of habit had in picking this particular implementation path; I used Pytorch because it's my daily driver :D and because I had found 'mctorch' which provided the Riemann SGD logic.
Re:Minimum bipartite matching via Riemann optimization on Wednesday January 08, 2025 @03:22PM (#42638062)
It's incredible how many algorithms can be made differentiable end-to-end.

E.g. in https://arxiv.org/abs/1905.11885 "Differentiable ranks and sorting using optimal transport" they show how a relaxation of an array sorting procedure leads to differentiable rank statistics (quantiles etc.). The underlying theory is quite close to what I show in the blog post.

In DETR they don't actually use a differentiable Hungarian algorithm, it's only used to score their neural predictions outside of the training loop IIUC.

Re:Minimum bipartite matching via Riemann optimization on Wednesday January 08, 2025 @09:07AM (#42634351)
Yes, the problem can now be solved efficiently with a scikit one-liner, but the aim of this post was more speculative rather than beating the benchmark :)
Re:Minimum bipartite matching via Riemann optimization on Wednesday January 08, 2025 @09:03AM (#42634304)
Author here! Thank you f1shy for sharing.
Re:Show HN: Kachika – "Learning Japanese Through Life" on Sunday January 05, 2025 @09:44AM (#42602066)
Sugoi! I imagine this approach would be very useful in learning any other language, too.
Re:Minimum bipartite matching via Riemann optimization on Sunday January 05, 2025 @02:06AM (#42600249)
An interesting connection between combinatorial optimization and differential geometry. And some Pytorch too, because when all you have is a hammer..

I built most of this one year ago, but only now managed to write it up. I enjoyed the change of pace of a pure speculative experiment (with some deep connections to a bunch of interesting theory and applications), and I hope you will enjoy reading about it too.

Re: on Sunday December 08, 2024 @12:23AM (#42355187)
same for me now.
Hi there, while the word list will help, I think plugging an LLM to a user-facing form is still a very, very bad idea, especially if this is meant for children.
Re:Vector: A high-performance observability data pipeline on Monday March 18, 2024 @04:27AM (#39741513)
> you could ship logs into Splork, then let it ingest that data into FlorbHut, and then use a frontend like Glorply to search logs

Seriously though, is there a single OSS product that does all of this ? Like, for a small multitenant app (i.e not "web-scale"), and that doesn't force one to get a degree in observability just to get stuff done.