Better HN
topnewbestaskshowjobs
Log inSign up

cpldcpu

664 karma · joined Jan 23, 2022 (4y ago) · 180 submissions

github.com/cpldcpu
Submissions

comment 3d ago · link · parent

Yes, it's pre-ai code, like pre-nuclear steel.

comment 4d ago · link · parent

I did something like this with Opus 4.5: https://github.com/cpldcpu/smollm.c

It seems implementing transformers is the new "hello world" of AI assisted coding.

comment 1w ago · link · parent

My experience is that often the models perform better when given less guidance. Thinking of the "jagged frontier" mental model - let the model chose the path it knows.

This is not about abstraction, but about goal setting. Just like the situational leadershop model. Providing more abstract information to a subordinate can still be directional leadership.

Also context enrichment is immensely helpful...

comment 1w ago · link · parent

Interesting that you bring that up. I always though this is also a good reference in how capability shifts of models also changes how we interact with them.

The early models were surely only worked best when directed. Especially anthropic is now approaching a capabilty space where agents can basically decide on their own how they work on topics and we delegate to them - the most capable rung of the situational leadership model.

I feel like OpenAI intentionally sticks to S1-S3.

comment 1mo ago · link · parent

>As for why 4 bit is the limit, the ParetoQ paper has some interesting theories: https://arxiv.org/abs/2502.02631

Its not so clear to me what their real explanation is. Yes, it is possible to redistribute the quantization error, but this only works when the model is not trained to capacity.

comment 1mo ago · link · parent

I mean, this paper clearly shows that all models severely degrade for low bit quantization. Also, these experiments were performed on relatively old models that are not trained as close to capacity as newer ones.

comment 1mo ago · link · parent

The capacity of your model scales with total number of bits in your weights. Shannon entropy.

Yes, there are many way to distribute the error. And LLM are usually not trained to capacity or are prevented from this due to information bottlenecks in the gradiant flow. This allows unlocking wasted capacity by distribtion of the quantization error. But I am pretty certain that there is no way to trick Shannon.

comment 1mo ago · link · parent

> There's no fundamental reason why a transformer with low bit weights would be inherently incapable of doing high dimensional function approximation,

Sure, in fact you can train a 1 bit model to approximate any function. But that is not the point. The problem is that the capacity per weight is diminishing below ~4.5bpw.

With QaT, can you compensate for that by adding more weights. So, instead of training a 1B x 4bpw model to capacity saturation you can train a 4B x 1bpw model and achieve the same capacity. But you will end up with the same number of bits in the model, just distributed differently.

Here are some older experiments of mine with very small models: https://github.com/cpldcpu/BitNetMCU/blob/main/docs/document...

I am quite certain that similar behavior is true also for larger models - it may be more difficult to experimentally demonstrate due to information bottlenecks and the flops required to train them to saturation.

comment 1mo ago · link · parent

I understand the obsession with low bit quantization, but it is empirically quite evident that it is not possible to compress models to less than 4 bit per weight without severe loss of capabilities².

It may be nice as an experiment, but it is obviously a very inefficient route for model training: spending all the flops on a saturated model only to prune its capabilties.

²As to why, I have seen few explanations. But the empirical evidence is there.

10.

Mistral Large 4 Scores(vals.ai ↗)

3 points · by cpldcpu · 1mo ago · discuss

comment 2mo ago · link · parent

You mean the one they copied from Microsofts paper? (properly cited as well)

comment 2mo ago · link · parent

Is this architecture actually able to generalize or is it mostly based on memorization? Have you tried some basic tasks that require generalization? e.g. number addition etc?

comment 2mo ago · link · parent

Well, that is what video models do.

But keep in mind: So far there is no way to train the models while completely avoiding memorization and only including generalization. That would be a great way to avoid any copyright issues, but all attempts I have seen so far were fairly limited.

comment 2mo ago · link · parent

>Notably, the neural network component behaves like a compressed index of the training data.

The "Compression" part is indeed about the model finding order in the training data. But this is not about applying some predefined compression algorithm on it, but by actually learning an algorithmic representation of the data.

This has nothing to do with "consulting the training data", because the training data cannot be reconstructed based on this information.

Roughly speaking, there are two types of information being stored in the NN: Memorization and generalization, or, shannon entropy and kolmogorov complexity.

This paper is highly underrated: https://arxiv.org/pdf/2505.24832

15.

Show HN: Pico-Faces – A diffusion transformer image generator on a RP Pico 2 MCU(github.com ↗)

4 points · by cpldcpu · 2mo ago · discuss

comment 4mo ago · link · parent

its doing video, audio, images and motion. I think that counts as multimodal.

comment 4mo ago · link · parent

>When Intel finally shipped it at the 45-nanometer node in 2007, Gordon Moore called it the biggest change in transistor technology since the late 1960s. The breakthrough was not the material. It was learning how to process the material at scale.

Its curious that they picked this example. The challenge with HKMG was not the material itself, but how to integrate into into the transistor stack.

There were two completely different approaches: Gate first and replacement gate. Gate first is what the industry was already using for silicon oxide so everybody tried to go with as little change as possible. Only intel decided for replacement gate, which worked much better and reaped some other benefits on the way.

This was a watershed moment in the industry and ultimately led to some of the players dropping out of the cmos race.

But is this really a "scale-up" problem? It required development of novel manufacturing processes (atomic layer deposition), but was still mainly a process integration and device engineering topic.

The part of the thesis I have to agree with is that there is a data problem. The development above relies on executing lots of time consuming and tedious split experiments that often cannot be parallelized. The outcome of this relies heavily on the experience and diligence of the experimenters.

It's probably well suited for an "autoresearch" approach, bridging to the phyiscal world and dealing with the timescale is the challenge.

comment 5mo ago · link · parent

hm.. has been quite a while for me. The good thing about the Tang Nano is that it is supported by the Yosys open source toolchain. There are quite a few resources on the web when you search for the combination.

comment 5mo ago · link · parent

I had Opus 4.5 design an LLM inference engine in verilog, including firmware and automated verification a while ago: https://github.com/cpldcpu/smollm.c

It's of course far from optical. But lowering the implementation through the abstraction levels turned out to be extremely powerful.

comment 5mo ago · link · parent

CISC view: Its another adressing mode.

RISC view: SUBLEQ is already four instructions (2x memory access, alu, branch)

comment 5mo ago · link · parent

Great article!

Yeah, that pattern can be seen everywhere in semiconductors. E.g. the transistor invention vs. Lilienfeld, Heil, Matare etc. So the scope is more narrow than "Inventend Semiconductors".

Generally, there seems to be a tendency to disregard discoveries from outside the US. I think this pattern can still be observed today...

Other examples: Invention of light bulb, telephone.

comment 5mo ago · link · parent

Wow! And it also implements a very interesting variant of SUBLEQ that is turing complete.

>This VM implements an OISC - a One Instruction Set Computer. That instruction takes three signed 32-bit operands, a, b and c, and runs a program from memory m[] as follows:

1 PC (program counter) starts at 0

2 Fetch the next instruction (32-bit signed operands a, b and c)

3 If the low bit on any operand is set, remove it, and replace that operand with m[operand] i.e., a dereference of that address

4 Set m[b] = m[b] - m[a]

5 If m[b] is 0 or negative, set the PC to c, otherwise increment PC by 3 words

6 Go to step 2

comment 5mo ago · link · parent

The early discovery of light emission from silicon carbide long before the first LEDs is a very interesting finding, worth pointing out.

But alas, as ever so often, the article turns this into a hyperbole. The premise from the title does not check out at all.

>The Russian who invented semiconductors 25 years before the USA

https://en.wikipedia.org/wiki/Semiconductor#Early_history_of...

comment 5mo ago · link · parent

What do you mean with "open-source"? Of course, the inference code for all the open weight models is publically available - see llama.cpp or hf transformers.

There are, however, very few models where also the full training pipeline is available. Olmo by AI2 comes to mind.

comment 6mo ago · link · parent

Wow, nice! It's an honor.

I guess nowadays one could use some of the 32bit WLCSCP microcontrollers to easily beat this.

comment 6mo ago · link · parent

More than 25 years ago, there was a show off, of building the smallest web server:

https://web.archive.org/web/20000815063022/http://www-ccs.cs...

Someone with an ACE1101 microcontroller "won". I can't find the original articles, but there is also this:

https://conceptlab.com/fly/

Webserver on a fly...

comment 6mo ago · link · parent

From the blog post: https://github.com/wuxx/TD4-4BIT-CPU

comment 6mo ago · link · parent

Nice!

comment 6mo ago · link · parent

But why is this always the first comment on custom CPU builds? Can't there also be other designs out there?
123456