Hacker Newsnew | past | comments | ask | show | jobs | submit | antirez's commentslogin

For par condicio: I worked at a similar optimization for Redis using different techniques (when I submitted the PR my colleagues informed me that ValKey and another Redis team was working at it, I was not aware: the amoung the three implementation we picked mine after extensive benchmarks) reaching memory savings that sometimes can be tens of percentage of less RAM compared to this ValKey optimization. So if you are exited for less memory for sorted Sets you should try both the implementations. We also got a lot more speed in many use cases compared to the skiplist.

Is your implementation also a B+ tree? If so how does it use tens of percentage less memory? less metadata?

It uses two techniques: B+ tree instead of sorted sets, but also the hash table side, the dictionary, is specialized for sorted sets and stores several items per allocation. The B+ tree leaves hold all the members and scores (also in clusters of many elements, 96 max or 4k: that's a big part of the win), rank lookup can skip many children because of meta data, which is part of the ability to go as fast or faster than Redis even if the memory is so much smaller. The hash table points to leaves in the B+ tree, does not have elements at all, and is heavily optimized to do just the minimum, a single byte tag is used as a speed optimization to optimized lookups in an optimistic way. Basically it is the sum of many different techniques conceived during the years and never adopted for fear of complexity (today no longer a problem), and newely discovered techniques.

P.S. I tried several variants with different representations, so this specific implementation is the Pareto frontier in speed/size of many, many attempts.


EDIT: "b+ trees instead of skiplists" of course. Sorry, can't edit it anymore.

One (of many) questions,

  today no longer a problem
To be sure, you think these problems are tackleable now due to AI (my impression of your comment)? Or to advances in {yourself}/{else} in the ecosystem? How do you deal with managing the complexity now? Is it 'easier' because we as humans no longer need to do the decently complex step of writing most of it? Or iterations/... enabled by AI are able to reduce the long tails around experimenting/benchmarking with these kinds of complex structures?

Now this can be handled because of development speed but especially because the level of testing coverage you can get today with AI, and even static scrutiny, is immense. So before the frontier models of the latest months there was no way to do something like that without increasing the fragility of the implementation. Now it was possible to try tons of approaches, pick the best, iterate on testing a lot.

Why do you think another option was chosen instead?

Accept the reality that the AI answers are for many searches an improvement for the user. Would not be maybe in the web of 20 years ago. Now it was a shit party of useless sites, advertising of all the kind, and other garbage.

Absolutely, we finally don't have to scroll through the flufftext and ads, click cookiebanners for 200 trackers, and skim the sponsored bullshit when we just want a tortilla recipe.

And the tortilla recipe site can change from serving 3 banners and 2 pop-ups to charging 0.0001 cent via a x402 API request from the LLM for serving that Brand Name chef vouched for content.

But what about their life story about how their grandma used to make their tacos every week that takes up half the page?!?!

To put this on perspective, consider that with 128GB of unified RAM it can run even fast: https://x.com/antirez/status/2119392658661749175 Like, coding-agent acceptably fast. See later in the reply for the prefill at ~300 t/s but can go even faster for larger prefills.


It takes 116 seconds to process 43 input tokens and produce an answer to a very simple request (translation). That's pretty unusable, to be honest. Is overthinking a trait of DeepSeek, or it's a low quantization issue?

For comparison, the whole thing takes 1.8 sec on my RTX 6000 rig with GLM5.3-Flash, and 12.5 seconds on my RTX 5090 rig with Qwen 3.6 27b (it overthinks too, unlike GLM).

I can't imagine waiting 2 minutes for each small turn. It's like... 1 coding task per night? Sounds like, as an engineer, I can accomplish more in that time if I did everything myself manually without any AI.


That's not the speed of the inference, but the fact that the default parameters are to max thinking. You can even disable thinking for many queries, or lower it to a smaller value.


Yes, Deepseek consumes a higher number of tokens per turn that comparable models (the latest Muse for example). This is just my experience, not a scientific study.


This seems great. I have 128GB of unified RAM and a AMD Ryzen AI Max+ 395 that I can use but I feel I'm still not using it as well as I could...

The main/best setup I have running so far is qwen flash next with halogen-server.

But if anyone knows if and how one can run even more impressive stuff, please let me know!


I use lemonade llama.cpp with a 2-bit quant of DeepseekV4F 0731 that runs at about 15 tokens a second. I use it as my "smol" model in omp, with default going to OpenCode hosted Deepseek (faster inference).

I haven't done work lately on Dwarf Star. I got it running a few weeks ago and had my agent make a couple of modifications to it to get it running, but it wasn't materially better than my lemonade setup. I might revisit after this post, though!

https://github.com/lemonade-sdk/llamacpp-rocm


I've switched from halogen to gufo a while ago: https://github.com/gufo-org/gufo It's OSS and I think it's faster.


That video seems to show it takes ~4 seconds to process 43 input tokens. Considering the amount of tokens coding-agents chew through, even when just exploring and not even implementing anything, feels far away from "acceptably fast". Say one file is 500 tokens (small file), it'd take ~a minute just to process it?

You mention "See later in the reply for the prefill at ~300 t/s" but I didn't see that in the video nor in any of the Twitter replies, could you link where that is supposed to be happening? Is that warm context perchance?


43 tokens is a tiny input context when compared with anything agentic. Prefill on SSD streaming is proportionally much faster with larger contexts, because expert loads can be reused across tokens and the engine can also opt to preload entire model layers into memory, without waiting for the outcome of expert routing.


all my local models do just fine (128GB Strix Halo, 72GB Blackwell) loading data. I'm not sure you were sold the right bill of goods for "agentic" work. I keep these things busy via mind power for a few hours, then get exhausted.

So I implenented a task queue so when I do have all the ideas, I can just set them to work, and "chew" through the work.

I get that you can concievably get 100 agents to do something interesting, but 99% of my work doesn't seem to need to divine naiver stokes.

Other than that, you might just have a skill issue if you rely so heavily of spinning up a bunch of agents to tell you what the next TODO item is.


Ironically, local models are much more efficient when running multiple parallel agents, provided that KV storage requirements are not excessive (not an issue with DeepSeek 4.1 Flash). It does not make any individual agent faster, but it does raise overall throughput quite a bit. The limit is then set by compute constraints rather than memory bandwidth, so something like DGX Spark or AMD Strix/Gorgon Halo can be expected to do better than the Apple-based alternative.


> 128GB Strix Halo, 72GB Blackwell

Lol yeah of course, that's not the Apple hardware showcased in the video. Sure, my 6000 Pro also does 11K in prompt processing, but my comment wasn't generally about local models, I thought that was obvious.

> I get that you can concievably get 100 agents to do something interesting

Uuh, OK, cool. Let those vibesloppers do that process if they'd like to, I think most professional software developers already found that process to produce slop and not production-worthy software, so we continue with our process that produce code of quality instead of aiming to produce as much as possible.

> Other than that, you might just have a skill issue if you rely so heavily of spinning up a bunch of agents to tell you what the next TODO item is.

Huh? Where are you getting this from? Where did I say anything of the sorts?


I have a 128GB M5 and while I adore the fact that I can run this as well as it does, I would not consider it fast.

The happy spot for these is for long running closed loop tasks where I’m stepping away for the evening. It doesn’t matter as much if it finishes in 1 hour or 10 hours as long as it’s done by morning.

For tasks where I’m sitting at my desk, it’s not yet where I’d consider it comfortable to use.

I do think this groundwork is going to be awesome come M7, M8 and so on.


I've recently set up Ollama on my homelab server, which is a Topton N17 micro-ATX motherboard with a Ryzen 7 7840HS and 64 GiB of DDR5 RAM. It's no AMD Strix Halo, but it's a laptop CPU with a fairly beefy GPU and a decent amount of memory bandwidth.

I've had decent results with gemma4:26b (although it's more like batch processing when used as a coding agent) and my experience so far is globally in line with the first two sections of the ARCHITECTURE.md: fast with small contexts but performance degrades fast as its size increases. If the rest of the contents of that document are true, I'll need to retune my setup from scratch.


Try using llama.cpp directly and tune it for your hardware. I had gemma 26b a3b running at 400-500t/s prefill and 40ish t/s generation speed with a RTX A3000 GPU with only 4.5GB free VRAM. A better model than gemma itself may help you tube the parameters. Gemma wasn't that helpful in that respect.


Try strata. I’m not sure how well it handles igpus but if it does i’m pretty sure that system will go screaming fast


Also https://github.com/drawthingsai/local-code-community pretty stable around 30 tok/s during decode on 128GiB RAM of M5 (with ~56GiB RAM usage), prefill is around 400 tok/s with 4k chunk.


I bet we will find this is mostly that smaller models have issues to go against: 1. strong priors that are inverted here in the changes of the benchmarks. 2. underspecified specs for which hidden tests test things not clearly stated, but that very large models can guess knowing they are tested.


Why this post is here in the front page? The Qwen vector steering performed was a very selective operation that interested only specific layers and weights set, it is non trivial to identify and fix. This is remarkable. Also Experiment 3: no access to forward pass, so why here this post says the contrary of what the paper shows and everybody upvoted it? I don't understand.


Experiment 3 doesn't involve reading the weights in as part of the prompt. It's a coding exercise. Here are the turns: https://github.com/RikiyaT/lm_understand-logs/tree/main/exp3...

At each point the model has to write code to read the weights in with Python and some other Python code to perform analysis, like this: https://github.com/RikiyaT/lm_understand-logs/blob/main/exp3...

My complaint is that the post presents a confusing mix of experiments that imply capabilities that are more than the sum of their parts. This experiment 3 has nothing to do with experiment 1 for instance. In experiment 1 the model does read in the raw weights like it's reading an image.


If you don't like these experiments, then I can only assume you would complain about CRISPR as well, considering it's a general framework with many disparate parts that work together synergistically, similar to the work Takehi et al. describe. CRISPR was also famously rejected multiple times by reviewers.

Note that being able to both inspect raw weights and run Python code to perform additional analysis means the model has multiple possible techniques at its disposal (generally considered a positive, rather than a "confusing mix").


I don't understand CRISPR well enough to comment on the analogy.

The blog post claims to show that frontier LLMs can understand and craft neural network weights natively. The experiments where the model completes coding tasks are not relevant to this conclusion. Those experiments require the model to demonstrate an analytic understanding of how a network might behave under various conditions, along with reasoning skills, coding skills etc. As a coding task this is a significant challenge. But it's entirely different from "natively reading and writing neural network weights".

Would you also consider it a benefit if there were experiments showing that a frontier model can download and run PyTorch, or write its own network and optimiser? That's another technique it has at its disposal to improve an ML model. It's just not one that's relevant to the paper's core claims.


If people have programmed programs to interpret neural networks, what is so special about the AI doing so? It's a forgone conclusion.

You can let the AI generate training code for the next architecture too.

It's not like the AI is randomly losing its ability to write software just because it involves AI.


[flagged]


But why? Shouldn't people who like CS be more open to the idea? I mean this is why computers were created, to think instead of people.


<Insert Uptown Sinclair quote here> ;-)


Are you kidding? If anything pro-AI hysteria is way stronger here, just look at how many upvotes the original got

Even any small model update a company puts out is guaranteed top of HN


I am growing increasingly fond of the term "anti-AI psychosis". It's getting ridiculous sometimes.


As seen in Rick and Morty


Imagine asking for a review before checking with the brutally powerful agents we have today all the low hanging fruits. And, at the point we are, you can likely go at incredible levels of automated bugs seeking and do the whole test in house.


My understanding is that Orkes did, in fact, ask AI agents to test ParticleDB in-house prior to our collaboration.


It is months that I find subtle bugs far more complicated than the most immediately findable issues in the report. Together with the rest of the world. So there must be something wrong with their AI usage.


Right, exactly. All those disclaimers in front of various AI applications have made people forget that in fact, AI cannot fail, it can only be failed.


"Why you bother about local AI? LOL with the $ you spend for <insert hardware here> you can buy 5 years of 20x account". Yeah. 5 years where you are told what you can do.


It’s quite something when western companies act more like authoritarian governments than actual authoritarian governments. I just wish RAM was less expensive ;(


>companies act more like authoritarian governments than actual authoritarian governments.

Yeah definitely Cyberpunk moment here.


My guess is we're within a year of the first governments banning local LLM AI at any scale. Declare GPU's as munitions that must be registered and ban any card with more than X GB of RAM and more power than a 3060 or something like that.

That could be done with an executive order in the US, and it probably wouldn't take much to get it to pass congress.

Now, don't worry, businesses can still buy a lot more GPU compute than that, but they have to register and track their usage just like any other company making/buying weapons.


There is zero chance this will happen.


By banning the Chinese from accessing the latest and fastest GPU, this is somewhat happening now.


You only need to ban compute on a scale that can actually compete with frontier models, which is currently something like a $500,000 investment.

"Must declare any purchase of 10 or more GPUs" does not strike me as particularly implausible.

There's already plenty of jurisdictions where possession of certain tools is considered evidence of criminal intent.

I don't think any of this is good behavior on the part of our legal system, but I do not doubt the legal system's ability to regulate this if it so chooses - and Anthropic has already gotten slapped down by the Trump administration once before.


5 years where you can get arrested if the AI tattles to the feds.


Just wait till your GPU legally requires an online connection to run an LLM.


I use local abliterated models + paid for subs like OAI or A\ and avoid touching anything that would hit their TOS + anonymously paid for Chinese pay as you go for things in between those two.

Works very well.


5 years, assuming the terms don't change.


Redis remained useful for 10+ years because of the design choices that were made, actually. Many other systems/companies failed since the idea, back then, was that a system needed to be linearizable or could not be useful at all. So what you point as a limit of my work was one of the better things I did in my career.


So did mongodb. Then we all grew up, and went back to postgres.

And your company took a stab at doing it right [1], though by that point most competent programmers decided that redis was just a smarter memcache and started designing around data loss instead of building on top of the programmable memory system you envisioned.

[1] https://github.com/RedisLabs/redisraft


Trolls will troll. Redis is still a mainstay of many companies and in ~30% of the cases I review I find one or more installations.

I think OP wished he had that kind of credit to his name.


Thanks, I believe the hate is also linked to my AI-positiveness... Funny enough GPT 6 Astra can easily produce a TLA+ model that can be verified under very real-world system model assumptions on the safety of RedLock, which is a paradox to the arguments I see in this thread and to the AI-rage.


Dude, I _like_ antirez. Specifically this version of him:

https://antirez.com/news/75


I hope he didn't really say this: it is an incredibly basic take. More or less like atomic bomb is hardware, it can be controlled.


> More or less like atomic bomb is hardware, it can be controlled.

That is the point. It can be controlled by the operators if they want to.


There’s a good number of nuclear power plants and nuclear submarines in operation, so yes, that’s technically true.


He did say it, and the reason he said it is obvious. He is afraid new regulations will put his company at a disadvantage and that this will reduce the value of his property.


And yet, historically, the atomic bomb has been controlled.

But this is a terrible analogy. Atomic bombs are weapons of strategic mass destruction. AI is just a computer program. It's way easier to control--just hold the operator responsible for the consequences of running it. Those consequences are not large, they're very tightly bounded as compared with the destruction a rogue actor with an atomic weapon can wreak.


If AI is as powerful as an atomic bomb why could it only manage to kill a couple hundred Iranian school girls? Surely a truly society-shifting technology could manage to execute 1000 innocent children at least.


AI didn't do that. You're deflecting blame from the responsible party.


It's Mistral quality statement.

3rd tier quality proped up by European governments and European patriots.

I don't even know what I'd do if I was in their position. They seem unable to complete... Maybe they do the classic European protectionist thing European farmers do.

I don't know what I'd do if I was the EU. Maybe promote the opposite of what Mistral is doing and promote full unrestricted AI that will tell you how to download illegal videos. Mistral had 0 competitive edge.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: