Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,677 karma · joined Jul 18, 2012 (14y ago) · 1,965 submissions

My email is at gmail using my username.

Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.

Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view

Submissions

comment 4d ago · link · parent

Fortunately, that's not really how it works anymore.

When you're prefilling, you can afford to amortize the cost of sending the experts to a scratch space on the GPU then running a bunch of tokens through that set of experts, then repeating with the next set of experts, and so on. There's no reason to compute those on the CPU, and llama.cpp already does move prefill to the GPU by default for partially-offloaded MoEs.

Where performance would still tank is if you don't ensure the microbatch (ubatch) is large enough to amortize that cost, and if you're prefilling only a small input, it's not going to reach full speed. For a large input, you can think of each expert as visiting the GPU once for every ubatch of input tokens. A larger ubatch means fewer transfers.

Try increasing `-ub` (2048 is a sane default, but 4096 or higher can sometimes be desirable), and watch the partially-offloaded MoE prefill performance magically go way up on llama.cpp for large inputs.

EDIT: Also, if you haven't tried replacing `--n-cpu-moe` with `--cpu-moe` + `--moe-cache-mib` (with all of your GPU memory that you can spare), it is even better than `--n-cpu-moe`, since real world models don't distribute work over the experts in a perfectly random way. The moe-cache speeds up decode/output tokens per second.

comment 4d ago · link · parent

Consumer hardware doesn't really boil down to a single constraint on how much memory is available, in my opinion.

Consumer hardware has limited memory, limited memory bandwidth, limited compute, and limited storage. Any model designed for consumer hardware needs to tackle all four, while still optimizing for intelligence.

MoEs save on both memory bandwidth and compute compared to a same-size dense model, and importantly, MoEs can still run quickly even with partial offloading. People have even demonstrated getting pretty good performance out of MoEs streaming from SSD with careful optimization.[0] Dense models fall apart if they aren't run entirely in the fastest memory pool.

Memory bandwidth is scarce on consumer laptops and smartphones. Looping demands even more memory bandwidth than running the same parameters once, so it is not an obvious win. If looping can make the model significantly more intelligent, it might be worthwhile. It is interesting to see a MoE combined with looping, as with Inkling 2 Mini. On your point about memory being the constraint, looping increases the size of Inkling 2 Mini's KV cache because the looped layers don't share KV between loops.

With DSpark-style specdec getting better and better, dense models make more sense than they used to since you can amortize the memory bandwidth better. The problem is then prefill (prompt processing), since specdec does nothing to help with that, and processing long inputs (search results, reading documents, etc) will still feel very slow. A MoE can breeze through that same prefill since it doesn't need as much compute.

With the introduction of Engrams/PLEs, model designers now have another axis for adding knowledge to models at the cost of storage, with comparatively little additional compute or memory bandwidth.

There are tradeoffs on everything. Despite my own extensive testing of different models on different hardware setups, I have not found any one-size-fits-all model architecture for consumer hardware. It is a hard problem. Small models are getting better all the time, and I think even smartphone-sized models will pass the threshold of usable intelligence for most people in the next year. Spark-X2.6-4B[1] and LFM3-1.7B[2] are surprisingly good for their sizes. Inkling 2 Mini looks great, supposedly offering Qwen3.8-27B's intelligence with much less compute required.

[0]: https://huggingface.co/openbmb/MiniCPM-V-4.7-35B-A3B#on-devi...

[1]: https://huggingface.co/XHToken/Spark-X2.6-4B

[2]: https://huggingface.co/LiquidAI/LFM3-1.7B

comment 4d ago · link · parent

It's not the first notable open weight looped transformer:

https://huggingface.co/Nanbeige/Nanbeige4.2-3B

https://huggingface.co/nvidia/NVIDIA-Nemotron-Labs-Dory1.0-4...

https://huggingface.co/sensenova/SenseNova-Loop-9B

But, Inkling 2 Mini is the first open weight MoE looped transformer of any note that I've seen (the others are dense models), and the benchmark scores really do look incredible.

If it can outsmart Qwen3.8-27B while using substantially fewer active parameters... this is going to be really great.

comment 1w ago · link · parent

They literally talked about MacBooks in the blog post, and they did release more than just NVFP4: https://huggingface.co/Edge0/Edge0-145B-q3k

It is strange that they also benchmarked an M2 Ultra, but they are specifically not releasing a Mac runtime today. Maybe that is still under development.

comment 2w ago · link · parent

I've also gotten a lot of similar spam emails from people scraping popular GitHub projects to find contributors' emails, then referencing such and such work that you did on XYZ project.

Please stop. This is not an acceptable way to perform cold outreach.

comment 2mo ago · link · parent

There is also a new, larger voice to text model available... but not for an old iPhone like the 13 mini. Only like the iPhone 17 Pro and above.

The best workaround is a third party app that lets you run Parakeet V3 or Whisper on your phone. There are quite a few.

comment 2mo ago · link · parent

Some OpenRouter providers do not implement reasoning levels for these models correctly at all: https://www.reddit.com/r/DeepSeek/comments/1vdqjwr/openroute...

If you're going to use OpenRouter to test reasoning levels, always make sure you are locking to the official provider instead of third party providers.

comment 2mo ago · link · parent

"Dictionary gains are mostly effective in the first few KB."

https://facebook.github.io/zstd/index.html

Pretrained dictionaries have never been intended to help with book sized or bigger compression. zstd automatically learns the most efficient dictionary it can within a few kilobytes. Pretrained dictionaries are only useful when you're independently compressing very small records.

comment 2mo ago · link · parent

Please run GLM-5.3 and GLM-5.3-Flash. I would love to see how they do. On the smaller end of things, Qwen3.8-27B and Ling-3.0-Flash would also be interesting.

In the benchmark, have you considered instructing the models to build their own SPICE simulations to test their work? Simply asking them to write and run simulations could improve performance, even without telling them what to simulate.

comment 2mo ago · link · parent

FunctionGemma never worked well for me (without fine tuning). Liquid has released 230M and 350M models that work far, far better in my testing: https://huggingface.co/LiquidAI/LFM2.5-230M

I really look forward to a hypothetical LFM3-230M, because LFM2.5-230M is so close to being usable, while FunctionGemma is miles away from being usable.

But, yes, still tangential to TERMy.

comment 2mo ago · link · parent

Novita does not offer Hy4-preview on either OpenRouter or their own model list. Maybe you confused it with Hy3.

comment 2mo ago · link · parent

I haven't tried it, but this looked promising for that exact task: https://huggingface.co/superwhisper/s1-mini

comment 3mo ago · link · parent

The spark can easily run UD-Q4_K_XL on this model... using IQ1_S doesn't make much sense.

comment 3mo ago · link · parent

No. What else could it reasonably be named? Hard to imagine.

The rule has always been intended to cover types that have another word in them but still choose to pointlessly repeat the package name.

`uuid.UUIDGenerator` is a hypothetical example of the anti-pattern that would instead be better named as `uuid.Generator`.

comment 3mo ago · link · parent

The post does not imply the 5090 is needed, that is just a common reference point.

A single six year old RTX 3090 works great: https://www.reddit.com/r/LocalLLaMA/comments/1vkm42m/muse_gl...

I fully expect Meta will release other, smaller Muse models in the near future too.

The 5090 is also supposed to be a $2000 GPU, not a $5000 one. The entire market is utterly distorted right now, which will impact cloud inference more and more over time too. They are not immune to the absurdly high RAM prices, so their prices will have to go up over time too until the RAM supply chain goes back to normal.

comment 3mo ago · link · parent

I think glancing at a random snapshot from today misses all the context. Nemotron 3 is far more significant than you're giving it credit for.

At this point, Nemotron 3 is really an 8 month old model series. That's when Nemotron 3 Nano was released, and the Nemotron 3 Super/Ultra models this year are obviously based on that recipe, mostly just bigger with a few tweaks here and there. Against today's models, no, not that interesting. Each of the Nemotron 3 models were briefly competitive when they launched, but never exceptional, and less competitive with each scale up. The fact that it took so long for Nemotron 3 Ultra to launch really hampered its competitiveness.

The Nemotron 3 series is extremely open about training recipes and training data, far more open than most open weight models, and that is valuable.

Before Nemotron 3, Nvidia had never released a single LLM that I would consider interesting at all, so Nemotron 3 was a big step up. The closest thing was Mistral NeMo, but a significant part of the credit there goes to the Mistral team, not Nvidia.

Given how much Nemotron 3 improved, I'm curious to see if Nemotron 4 will take them to a leading edge level instead of just briefly competitive.

(Nvidia released a Nemotron 3 and a Nemotron 4 like 3 years ago... this year's Nemotron 3 is entirely unrelated. Nvidia's naming schemes leave a little bit to be desired.)

comment 3mo ago · link · parent

Yes, the article uses AI-assisted text, so if that offends you, no need to accuse: you can just stop reading.

I have a good amount of background knowledge on all of this, and I've invested hours into pulling this short series together, so this was not just some single shot prompt and hope for the best.

As someone who has used LLMs since ChatGPT first launched, and used them locally since the first open models were released around the Llama 2 era, I have a perspective to share that I think offers some value. LLMs aren't magic. People who have only ever used full reasoning models with agentic tool calling loops may not appreciate how they work under the hood, so this article series tries to give you the foundational concepts and terminology to do more research. Hopefully, it also gives a basic understanding.

Part of the difficulty of putting something like this together is that I don’t know what people don’t know, so there will invariably be gaps that make some of this hard to understand.

I am sure there are ways this series can be improved, so any constructive feedback is welcome.

18.

The Next Token – LLMs, from the Beginning(ceres1.space ↗)

1 points · by coder543 · 3mo ago · 1 comment

comment 3mo ago · link · parent

A year and a half behind Seedance 2.0? That is a bold claim that needs evidence.

According to one user preference leaderboard, MiniMax H3 is already ahead of Seedance 2.0 based on thousands of A/B votes: https://artificialanalysis.ai/video/leaderboard/text-to-vide...

I haven't seen any user preference comparisons between Seedance 2.5 and MiniMax H3. As an upper bound, H3 cannot be more than 6 months behind Seedance 2.5 since H3 is already ahead of where Seedance was 6 months ago.

comment 3mo ago · link · parent

The weights were just released a few minutes ago: https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731

comment 4mo ago · link · parent

But if you compare to Anthropic's models? The cost difference is huge. Anthropic is clearly concerned that people are realizing they are expensive, since the Opus 5 blog post dedicated a lot of time to talking about how cheap the model was compared to the competition... but this doesn't hold water when I haven't seen any independent benchmarks claiming Opus 5 is cheaper than GPT-5.6-Sol, even if it is supposedly closer.

GPT-5.6-Sol is pretty competitively priced, but not all American frontier models are, and even 10% to 30% is still significant for any commodity that's as fungible as frontier models often are.

> as you say that could go down to 20-30% cheaper

I never said anything about 20% to 30%. We don't know how much it actually costs to host this model yet, and that will determine the final price. It could be just a little less, or it could be a lot less.

> once you account for quantisation

There will be no need to account for quantization. Kimi models have been 4-bit only since at least K2.5. They don't release or serve models in higher precision than that. This isn't one of those situations where LLM inference providers are debating between serving 16-bit, 8-bit, or 4-bit, and I have never seen a publicly hosted, paid model that was hosted in less than 4-bit, even if hobbyists will use sub-4-bit quantizations sometimes locally.

comment 4mo ago · link · parent

This article seems premature to post. Right now, the price is arbitrarily set by a single provider. Why wouldn't Moonshot collect extra revenue during this exclusivity period when they knew there would be hype?

The model weights are supposed to release tomorrow.

Over the next several weeks, I would expect competition among open weight providers to drive down the cost, as I've seen happen with other open weight model releases.

comment 4mo ago · link · parent

At this point, I would not recommend ignoring Parakeet TDT 0.6b v2/v3 (english-only versus multilingual). Those models have been out for a year, give or take, and they are both accurate and fast. I would choose Parakeet over Whisper in almost all situations these days. Parakeet works great even on my several year old iPhone 15 Pro Max, so if an app is going to ship a dedicated model, I strongly recommend investigating Parakeet.

On the more cutting edge front, Granite Speech 4.1 has proven to be a reliable workhorse for me, but it is larger than Parakeet. Cohere Transcribe is interesting, but how strong it is seems to vary more from task to task.

Parakeet Unified 0.6B came out a few months ago, combining both online streaming and offline transcription into one model, and that is one that I need to test more, but it seems promising.

As others have mentioned macOS 27/iOS 27 is supposed to have a new model, particularly on devices with 12GB of RAM or more. I have not actually seen the option to enable that new model yet, though, despite being on the beta on a device that meets the requirements. Maybe a benchmark would reveal that it is already active?

comment 4mo ago · link · parent

It’s not FUD. It is my actual, lived experience. FUD is false, which this is not.

I use both vLLM and llama-server. vLLM is very painful, even with the Spark community docker image. It is slow to start, it does not support 3-bit dynamic quants well, and it takes a lot of tweaking to get it to run well for each model I want to try out, which is made worse by the slow starts.

I’m glad you’ve had a better experience? I can only speak to the experiences that I have had repeatedly. For at least a month, people on the official Spark forum were claiming you just couldn’t run MiMo-V2.5 on a single Spark, because they refused to use anything other than vLLM, while I was doing it just fine on llama-server with 200k+ of context.

And llama-server is “worse” in what specific ways? I was specific with my comment. The usual complaint was the lack of MTP/Eagle3 support in llama-server, but that is solved now. Now the main difference is a minor hit to prompt processing speed, at most, if you’re using a single Spark.

Too many people on the Spark forum are closed minded to the idea that vLLM is not the solution to every problem.

llama-server also comes with a truly excellent built-in web chat interface these days, which includes the ability to connect to MCPs so the models can be used agentically through a conversational interface even from my phone. What does vLLM offer? Yeah… nothing. And options like Open WebUI seem really bloated.

For a cluster of multiple Sparks, the pain of vLLM is still worthwhile, as I already said before. Or if you’re running some kind of major production workload, I guess? Instead of a single user, few agent setup like most people.

comment 4mo ago · link · parent

Unsloth Studio is also very low effort, and a lot better than LM Studio in my opinion. (Performance, compatibility with Gemma 4, actually open source, etc.)
12345
66