Better HN
topnewbestaskshowjobs
Log inSign up

simedw

758 karma · joined Jun 20, 2012 (14y ago) · 74 submissions

CTO/co-founder of V7, before that Aipoly.

blog: simedw.com X: https://x.com/simedw

Submissions

comment 1d ago · link · parent

This reminds me of Lava, an old Haskell eDSL that used combinators to describe hardware circuits, which could then be compiled down to RTL. Not sure what happened to that project in the end.

comment 4d ago · link · parent

Very cool, I wonder if my MIDI generation model would improve if I trained it on the MIDI files your model generates.

comment 1w ago · link · parent

I'm planning to have a blog post up in the next two weeks or so (simedw.com), still have a lot of experiments to run, and training even tiny models takes a bunch of time.

comment 1w ago · link · parent

Thanks for sharing! I'm exploring a similar direction, but optimising for extreme model size. I have gotten an LLM down to 970 KB, with some interesting results compared to GPT-2 (small).

5.

Show HN: Harness Corp – An incremental game powered by a local LLM using WebGPU(simedw.com ↗)

4 points · by simedw · 3w ago · discuss

comment 1mo ago · link · parent

very good question, but during training it gets the actually characters as input, and then * as what gets rendered, so I think it should understand the difference.

comment 1mo ago · link · parent

It's only in the models context.

comment 1mo ago · link · parent

That's a very cool idea, maybe a bit expensive to scale.

comment 1mo ago · link · parent

Exactly, I wonder if I'm not hitting the right WebGPU path for Firefox?

comment 1mo ago · link · parent

Thank you.

The base model already have a good grasp of language, so that man pages look like coherent sentences. It also knows python and similar language well, which means that things like 1+5 or print(["hi" for _ in range(5)]) work.

I did try to train from scratch, but it was much weaker (also added a lot of aux losses).

comment 1mo ago · link · parent

The first part of the context is the window width:

``` BOS SCREEN_START 32 96 ```

I trained it on three different resolutions, but it should kind of work with in between ones too.

comment 1mo ago · link · parent

That's very cool project. I read this blog post a few days ago about one way to look at memory encoding in models https://alexwang.ai/posts/associative-memory/ that you might find relevant

comment 1mo ago · link · parent

Normal only keypresses invoke the next ”frame”. There is a sleep token that the runner could use to indicate that time is moving.

comment 1mo ago · link · parent

I haven’t run extensive tests yet, but larger models also get better at memory.

comment 1mo ago · link · parent

Thank for posting it, happy to answer any questions!

comment 1mo ago · link · parent

It shows a good improvement on my COCO object detection benchmark: 0.504 mAP zero-shot.

Gemini 3 Flash was around 0.403, 2.5 Pro was around 0.34.

comment 2mo ago · link · parent

For some reason, in almost every test I did with Gemini 3.5 Live, it classified my Swedish (native) as Dutch. There are similarities between the languages, but still.

It’s pretty good at understanding my broken Mandarin, though.

comment 2mo ago · link · parent

This was neat, well done!

The only alternative version of Go I’ve played before was magnetic Go, where all the rules are the same except that, along the axis lines where you place a piece, like colours attract and opposite colours repel.

On Voronoi, I did feel like the continuous space made it really hard to judge whether there was enough room, whether the opponent could get in, etc. Maybe it would work better if it were discretized a bit? Or maybe I just need to play it more.

comment 3mo ago · link · parent

Luckily I have access to 4x RTX 4090s, so I didn’t have to pay cloud GPU prices directly. If I had, it probably would have added up quite a bit given how many training runs and experiments I ended up doing.

comment 3mo ago · link · parent

The biggest speed improvement came from changing the note representation when I switched to compound note events: roughly 5× fewer autoregressive passes per note.

For the current model I’m using Core ML, which optimizes the kernels the first time you run it. I haven’t actually spent that much time tuning performance beyond that.

comment 3mo ago · link · parent

Yes, some kind of planning step is on my TODO list. Another thing I want to try is generating a few continuations in parallel, picking the one that looks best, and then continuing from there. Maybe the picking could be automatic.

I can probably squeeze out quite a bit more than 100 notes/sec as well. I haven’t spent much time optimizing inference yet.

comment 3mo ago · link · parent

For DPO I only had around 700 preference examples, so not much data at all. That took about 12 minutes to train on a single GPU.

Pretraining was obviously a a lot slower, the 125M model took roughly half a day.

comment 3mo ago · link · parent

If the attribute describes the current note, I would first try adding it as another field/head on the note event. For example:

  NOTE(
    pitch,
    delta_onset,
    duration,
    attack_velocity,
    release_velocity,
    ...
  )
More global things might be better modelled as a control event:

  NOTE(...)
  | CONTROL_SUSTAIN(delta_onset, value)
  | CONTROL_TEMPO(delta_onset, bpm)
  | CONTROL_PROGRAM(delta_onset, instrument)
The harder part might actually be finding enough good training data with all of those attributes represented consistently.

comment 3mo ago · link · parent

Thank you.

Yes, I think I’ve gotten it to roughly a GPT-2 level: good enough to share, but with a lot of room left to improve. I think adding some kind of bar/measure token might help with rhythm, and perhaps some form of longer-term planning for the overall composition.

25.

Show HN: I trained a 125M model to autocomplete piano on-device(simedw.com ↗)

598 points · by simedw · 3mo ago · 117 comments

26.

How to force AI agents to use an egress proxy(simedw.com ↗)

4 points · by simedw · 5mo ago · 1 comment

comment 6mo ago · link · parent

Nice package, not only is using words more token-efficient [saving time and money], but weaker models are also less likely to make mistakes when providing the key, at least in my tests.

That said, for `createAliasMap`, don't you think you could create a deterministic mapping from and to UUIDs <-> word chains? That way, no additional state would be needed. [Might require fairly long word chains...]

comment 6mo ago · link · parent

Cool project!

I noticed that if you go from training to watch and then back, the training temporarily drop significantly in score.

comment 8mo ago · link · parent

No offense, but are you a bot?
123