Better HN
topnewbestaskshowjobs
Log inSign up

celrod

1,148 karma · joined Feb 4, 2018 (8y ago) · 402 submissions

SIMD and performance enthusiast. https://github.com/JuliaSIMD https://spmd.org/
Submissions

comment 2w ago · link · parent

Yes, two ways failing to combine tool calls is a real deficiency for the LLM's user: it costs money and can get you rate limited.

Every turn forces you to pay $ for cached inputs and possibly gets you rate limited on TPM. At 500k context and $0.26/M-tok cache read price, every time it combines two tool calls instead of taking separate turns would save you $0.13. That could add up.

Maybe the provider sets a rate limit of 2 million TPM. That's just 4 turns in 1 minute before you start getting 429s. Cutting them in half by combining calls can save that.

All else equal, we definitely want models combining tool calls!

comment 1mo ago · link · parent

It seems like thinking should be the place where it can iteratively draft before creating an output. I've wondered if text diffusion models could in theory write better, thanks to iteratively rewriting/refining the text. It seems to me at least that avenues like that are worth pursuing, so I'm happy to see efforts like Mercury 3 and Diffusion Gemma.

comment 1mo ago · link · parent

For some reason the providers for MiMo 2.6 Pro are all very slow. I'd much rather use something quick. DeepSeek was great for that. I haven't tried MiMo ultraspeed.

comment 1mo ago · link · parent

Using Artificial Analysis

Model | Reasoning | Intelligence Index | Artificial Analysis million output tokens for the intelligence index -|-|-|- Step 5 | ? | 44 | 160 GLM 5.3 | Max | 45 | 210 MiMo V2.6 Pro | ? | 46 | 140 Kimi K3 | Max | 44 | 160 Qwen Max 0902 | ? | 45 | 190 DeepSeek 4.1 Flash | Max | 39 | 250 GLM 5.3-flash | Max | 42 | 180 GPT-6 Astra | Low | 46 | 10

It looks reasonable by open model standards. This doesn't capture the fact that DeepSeek and Step 5 have much higher token/s than the rest, other than MiMo Ultraspeed. MiMo V2.6 is either slow but cheap, or fast but expensive. Just based on these numbers, it looks good. Astra-low is one of the fastest and cheapest because it doesn't use many tokens, but I've never tried it. I liked DeepSeek and GLM when I used them.

comment 2mo ago · link · parent

Yeah, that's what I'd been leaning towards. No mcp, but I'll see if I can reproduce and debug it, since other people don't seem to have that problem as badly as I've experienced it (and the idea of having a nasty bug like that bothers me).

No mcp support. I'll try copying deepseek harness's basic tool call formats as a starting point.

comment 2mo ago · link · parent

I tried it a few times and liked the speed, but often found it ended up looping, i.e. repeating the same token sequence (e.g. the same sequence of 5 paragraphs) over and over again until it hit the max output limit. This doesn't end up happening every session, but does every now and then.

My impression of DSv4.1-flash was very positive aside from this. But that was enough for me to stick with GLM-5.3(-flash), which both gave me consistently great results

I was using a vibe coded bare bones harness. I was wondering if this was normal from DSv4.1-flash, or if its my harnesses fault.

comment 2mo ago · link · parent

I was just trying deepseek v4.1 flash on OpenRouter. After running reasonably well for a while, I return to the window and see that my scrollback is nothing but this repeated over and over again:

``` OK.

Let me write.

Let me go.

OK.

Let me write the script.

Let me go. ```

I'm not sure to what extant this is a model problem, vs some providers being fairly broken. If I chose a single provider, I could know how to blame and to avoid them. With OpenRouter, I don't know which provider I was on when this happened.

comment 2mo ago · link · parent

If Q4 takes less than 1.3x as many tokens as bf16 or q8, it could still end up being faster, given how decode tends to be bandwidth bound. The kv cache was still bf16, so a few ops are the same between quants.

comment 2mo ago · link · parent

Mercor, Tacit Labs, Handshake AI... I suspect companies like these play a big part in model improvements, generating high quality benchmark/task-focused data for training.

However, these do require educated, white collar, workers.

comment 2mo ago · link · parent

> A narrow set of frontier LLM development tasks, such as distributed training infrastructure, ML accelerator design, and kernel development for certain non-standard chips.

https://support.claude.com/en/articles/15363606

My work is mostly on the Nvidia b200, which apparently gets flagged as non-standard.

Opus 5 works, but sometimes I do wonder if it's surreptitiously trying to sabotage the efforts -- possibly deliberately, but more likely by something like Fable's initial launch, which did come with secretly degraded performance when detecting kernel work. Anthropic was open at the time that such a mechanism existed, but disabled it due to backlash. More likely than not, this is just paranoia on my end...

comment 2mo ago · link · parent

I'm a kernel engineer. Fable 5 refused all my requests, falling back to Opus 4.8. My wife is a chemist. Her experience wasn't much better.

comment 3mo ago · link · parent

I think I'd rather have the model stop once the obvious solutions failed and ask me. It can suggest more creative ideas, but I don't necessarily want it to try implementing them.

comment 4mo ago · link · parent

A few years ago, on July 4th one of my mom's dogs freaked out, somehow managed to escape, and got hit by a car before my mom found her. She loved that dog, regularly attending nose work competitions with it. One of your pets getting a seizure must be harrowing for both you and the dog.

I don't light fireworks.

comment 4mo ago · link · parent

When claude goes down a wrong path, I tend to clear context and write a new prompt that helps guide it down the correct path. Whatever thinking or context that led it there has inertia and tends to be sticky, otherwise.

Pretty annoying when it brings those up again later from memory...

comment 5mo ago · link · parent

I found this, which has some: https://arxiv.org/pdf/2605.28876 TLDR: RTK does not look good according to the author's benchmark.

comment 5mo ago · link · parent

That list also places Sonnet 4.6 above Opus 4.6, which doesn't match my experience.

comment 5mo ago · link · parent

Exactly. How can "we" develop and encourage benchmarks for multi-turn user assistance? That is what I want. I feel like the models and harnesses push much too hard against this workflow -- that they push you towards letting go and vibe coding, with only your discipline (and desire for a quality and maintainable product) holding it back.

comment 5mo ago · link · parent

What quant do you run it at? 32GB seems like cutting it close on the rtx 5090 if going 8b, but other commenters are saying 4b lobotomizes the model.

comment 5mo ago · link · parent

If performance is the concern, ugrep will get you most of the way there relative to gnu grep, and should be fully grep compatible in terms of syntax:

https://github.com/Genivia/ugrep#aliases

Claude Code may ship with ugrep already.

comment 5mo ago · link · parent

Yes. I think one of the big advantages of SoA is that you only pay for the fields you're currently using. If you need a field somewhere, you can add it and only pay the cost of iterating it where you need it.

comment 6mo ago · link · parent

foot also offers a client/server architecture. If you start a foot server (e.g. with a systemd service), you can use `footclient -N`. This may reduce the memory pressure of running many terminals.

This is similar to the `kitty --singleinstance` mentioned in another comment by amarshall.

comment 6mo ago · link · parent

Yeah, for now. I'd like it to be open, but I also want to potentially be able to make money/a living off of it. My dream would be that it can be open while hardware vendors pay me to optimize for their hardware. For how, being closed gives me more options. It's a lot easier to open in the future than to close, so it's just keeping options open.

I've thought a lot more about the engineering than any sort of marketing or businesses plan, so I just want to defer those.

comment 6mo ago · link · parent

I'm still working on it. I'm currently working on a cache tile-size optimization algorithm that should (a) handle trees (a set of loops can be merged at some cache levels and split at others, e.g. in an MLP it may carry an output through the L3 cache, while doing sub-operations in the L2/L1/registers) (b) converge reasonably quickly so compile times are acceptable.

This is the last step before I move to code generation and then generating a ton of test cases/debugging.

My goal is some form of release by the end of the year.

comment 6mo ago · link · parent

I was once a bit of a Julia performance expert, but moved toward c++ for hobby projects even while still using Julia professionally.

I wrote a blog post at the time with exactly that punchline (not explicitly stated, but just look at the code!): https://spmd.org/posts/multithreadedallocations/ The example was similar to a real production-critical hot path from work.

Maybe things changed since I left Julia, but that was December 2023, for years after this blog post.

comment 6mo ago · link · parent

Fellow kakoune user here. I'm curious about your use case/ what you're doing with it!

comment 7mo ago · link · parent

In my experience, llms don't reason well about expected states, contracts, invariants, etc. Partly because that don't have long term memory and are often forced to reason about code in isolation. Maybe this means all invariants should go into AGENTS.md/CLAUDE.md files, or into doc strings so a new human reader will quickly understand assumptions.

Regardless, I think a habit of putting contracts to make pre- and post-conditions clear could help an AI reason about code.

Maybe instead of suggesting a patch to cover up a symptom, an AI may reason that a post-condition somewhere was violated, and will dig towards the root cause.

This applies just as well to asserts, too. Contracts/asserts actually need to be added to tell a reader something.

12345
14