Better HN
topnewbestaskshowjobs
Log inSign up

halflings

2,566 karma · joined Sep 4, 2013 (13y ago) · 633 submissions

Software Engineer specialized in applied Machine Learning, and in particular ranking and search quality.

Get in touch: https://kachkach.com/ ahmed@kachkach.com

Submissions

1.

Sampling from LLMs: Art and Science(kachkach.com ↗)

1 points · by halflings · 7mo ago · discuss

comment 7mo ago · link · parent

> Youtube charges $10 per month and doesn't produce a single video

It is different from Netflix (that pays upfront for production costs), but there's of course a revenue share + the bulk of the revenue for creators is actually from sponsorships (which YT doesn't take a share of).

comment 8mo ago · link · parent

LLMs generate their output one token at a time. The first thought when you learn this is that this is a huge performance bottleneck, as we are used to highly parallelized systems.

However, a large part of what makes LLMs feel so magical comes from this bottleneck.

4.

Generating one token at a time is a blessing in disguise(kachkach.com ↗)

3 points · by halflings · 8mo ago · 1 comment

comment 9mo ago · link · parent

The main thing I noticed in the video is that they have heavily sped up all the code generation sections... seems to be on 5x speed or more. (because people got used to how fast and good Sonnet, and especially Gemini 3.0 Flash, are)

comment 9mo ago · link · parent

Deploying from Antigravity is as easy as say connecting the Firebase MCP [1] and asking it "deploy my app to firebase".

[1] https://firebase.google.com/docs/ai-assistance/mcp-server

comment 11mo ago · link · parent

+1, reading through the post, the PR updating the documentation... thanks for being transparent, but also don't be so hard on yourself!

That was a very niche error, that you promptly corrected, no need to be so apologetic about it! And thanks for all the hard work making Python faster!

comment 11mo ago · link · parent

"The models perform differently when called via the API vs in the Gemini UI."

This shouldn't be surprised, e.g. the model != the product. The same way GPT4o behaves differently than the ChatGPT product when using GPT4o.

comment 1y ago · link · parent

I would also add that search has already moved elsewhere.

Less and less people are using search engines to shop, ex:Amazon makes >$57B a year from search ads, but also look at Temu and Shein which are mostly glorified product search platforms.

No one is searching for "funny videos" when you can just open Instagram and Tiktok.

The only real unique thing that search engines can do is queries that are not directly commercial (e.g. education, information seeking, etc.) and competition is insanely intense (w/ ChatGPT, Perplexity, etc) there.

comment 1y ago · link · parent

That's what the chart says yes. 14.1GB VRAM usage for the 27B model.

comment 1y ago · link · parent

> I cannot be the first person to think about such possibilities

Differentiable Rendering [1] is the closest thing to what you are describing. And yes, people have been working on this for the same reason you outline, it is more data/compute efficient and hence should generalize better.

[1] https://blog.qarnot.com/article/an-overview-of-differentiabl...

But also: > While cool, this also seems utterly wasteful. Video games offer known "analytical" solutions for the interactions that the model provides as a "statistical approximation", so to say.

A bit of the same debate as people calling LLMs a "blurry JPEG of the web" and hence useless.

Yes this is a statistical approximation to an analytical problem... but that's a very reductive framing to what is going on. To find the symbolic/analytical solution here would require to constrain the problem greatly: not all things on the screen have a differentiable representation, for example complex simulations might involve some kind of custom internal loop/simulation.

You waste compute to get a solution that can just be trained on billions of unlabeled (synthetic) examples, and then generalize to previously unseen prompts/environments.

comment 2y ago · link · parent

Training code is only useful to people in academia, and the closest thing to "code you can modify" are open weights.

People are framing this as if it was an open-source hierarchy, with "actual" open-source requiring all training code to be shared. This is not obvious to me, as I'm not asking people that share open-source libraries to also share the tools they used to develop them. I'm also not asking them to share all the design documents/architecture discussion behind this software. It's sufficient that I can take the end result and reshape it in any way I desire.

This is coming from an LLM practitioner that finetunes models for a living; and this constant debate about open-source vs open-weights seems like a huge distraction vs the impact open-sourcing something like Llama has... this is truly a Linux-like moment. (at a much smaller scale of course, for now at least)

comment 2y ago · link · parent

> The world is teetering on the edge of world war

The world probably has never been as peaceful as in the last 50 years or so.

Same goes for access to drinkable water, food, decent shelter, gender equality, freedoms, technology, etc.

But I suppose your comment is a good illustration of the problem at hands (that so many people deeply believe that things are fucked)

comment 2y ago · link · parent

Thanks for putting this together! Will give it a watch now

comment 2y ago · link · parent

The # of chips is not the most important metric.

Most important, even ignoring latency, is throughput (tokens) per $$$. And according to their own benchmark [1] (famous last words :)), they're quite cost efficient.

[1] https://www.semianalysis.com/p/groq-inference-tokenomics-spe...

comment 2y ago · link · parent

No HBM because they use tons of fast SRAM instead. Isn't that the main driver for performance here?

(the way I understood it => it's still cost effective at scale due to throughput increase this brings)

comment 2y ago · link · parent

Agree re:hallucinations/safety issues, that was likely one of the main blockers.

And here's the sad part: they had this back in 2019... see this paper released in Jan 2020: https://blog.research.google/2020/01/towards-conversational-...

comment 2y ago · link · parent

This (innovator's dilemma / too afraid of disrupting your own ads business model) is the most common explanation folks are giving for this, but seems to be some sort of post-rationalization of why such a large company full of competent researchers/engineers would drop the ball this hard.

My read (having seen some of this on the inside), is that it was a mix of being too worried about safety issues (OMG, the chatbot occasionally says something offensive!) and being too complacent (too comfortable with incremental changes in Search, no appetite for launching an entirely new type of product / doing something really out there). There are many ways to monetize a chatbot, OpenAI for example is raking billions in subscription fees.

comment 2y ago · link · parent

uv has been really awesome as a replacement for pip: https://github.com/astral-sh/uv

So fast it finally made virtual environments usable for me. But it's not (yet) a full replacement for conda, e.g. it won't install things outside of Python packages

comment 2y ago · link · parent

This looks pretty cool! What's the catch? e.g. why isn't this already implemented in accelerators, is it really just a forgotten algorithm, or this has some implications on the cost of building the accelerator or else?

comment 2y ago · link · parent

> Your analogy is the same as early Intel engineers completely unaware that those chips would bring on the ramifications of social media

Exactly! As they should be. (for both Intel engineers developing chips, and physicists developing nuclear research)

There were a billion more potential dangers from those technologies that never materialized, and never will.

I'm glad we didn't stop them in their track because a poll of 10 leaders in the field thought they were too dangerous and progress should stop. (note that no one is against regulating dangerous uses of AI, e.g. autonomous weapons, chemical warfare; the problem is regulating AI research and development in the first place)

comment 2y ago · link · parent

This is the definition of strawman. "Advocate for killing all humans" sounds like someone advocating for a genocide, but instead it's just the same transhumanist thinking (which Yudkowsky also believes in, FYI)

comment 2y ago · link · parent

Your comment (+ username) reads like what I would have written once upon a time when I was fully in the EA bubble.

Truly no offense meant, as I was deeply into the EA movement myself, and still consider myself one (in the original "donate money effectively" sense), but the movement has now morphed into a death cult obsessed by things like:

* OMG we're all going to die any time now (repeated every year since circa 2018)

* What is your pDoom? What are your timelines? (aka: what is your totally made up number that makes you feel like you're doing something rational/scientific)

I'm deep in the weeds w/ LLMs, e.g. I probably finetune an average of 1 model a day, and working with bleeding edge models... and AI safety just sounds so silly. Wanting to take drastic measures today to prevent an upcoming apocalypse makes as much sense as taking the same drastic measures when gradient descent was invented.

comment 2y ago · link · parent

The importance (e.g. attention) needs to be dynamic, e.g. one token will be important to some other tokens but not others.

tf-idf and similar heuristics are what we were using before attention came along, e.g. tf-idf weighted bag-of-words representation of word2vec embeddings. That approaches fails in so many cases.

comment 2y ago · link · parent

Yep that's pretty much it! That's what they call needle in a haystack. See: https://github.com/gkamradt/LLMTest_NeedleInAHaystack

comment 2y ago · link · parent

Not if you account for the increase in ad revenue from the company paying them.

comment 2y ago · link · parent

> The technology looks at hundreds of signals that could indicate a booking is higher risk for this type of incident, like the duration of the trip the guest is trying to book, how far the listing is from their location, the type of listing they’re booking, and if the reservation is being made at the last-minute, among many more.

This is most likely a (simple) ML model trained on previous reports of such bookings.

Not newsworthy, but probably not a bunch of if-statements.

comment 2y ago · link · parent

> Nowhere it's touted as a rival to youtube in the popularity sense, just like you wouldn't call WordPress a rival to Twitter.

... the first image on the article linked here shows a monster called "Videorapter" with YouTube, Vimeo and Twitch logos, and calls for donations to "help push back Videoraptor"?

comment 3y ago · link · parent

> Why not output MIDI instead, and let the artist manipulate that?

This is not true at all, it all started with generating MIDI, and even the very link I shared is of a system that generates MIDI.

comment 3y ago · link · parent

The page fully explains what they mean by this, showing results on benchmarks etc.
12345
22