pleroma.debian.social

pleroma.debian.social

I'm doing some cursed shit after some ppl in my lab were talking about using chatGPT to lay out a PCB, so since I still have the ridiculously huge token budget from Muse I set it upon the task of "Vibe PCB design" by giving it a link to our paper and telling it to make a replacement for one of the boards in it without looking.

Anyway, look upon splendor, despair, etc.:
https://jon-e.net/lvds-receiver-official/passes/pass-0148.html

It used up all my budgeted 500m tokens for this, but the internal token counts that it has put it at close to 1b tokens - this is a sort of known token accounting mismatch where across all internal surfaces tokens are counted at 2x the rate of client visible counts, and the internal counts are the only ones that actually make sense when estimating from the transcripts.

https://jon-e.net/lvds-receiver-official/tokens/

@jonny reminds me of https://commons.wikimedia.org/wiki/File:CaffeinatedSpider.jpg#/media/File:CaffeinatedSpider.jpg also the "schematic" is pretty great, with all of the passive components having indistinguishable custom rectangular symbols

I can't waste my EE colleagues time by asking them to eval whether the entire premise of the board would work even if it was laid out perfectly, but I can ask them to look at what they call "pure RF gore." I don't know anything about this, but the AI companies have promised me that's not a problem, that a total noob like me should be able to design their own chip with no expertise, no problem.

EE: I'm checking it, there is so much wrong here that I don't even know where to begin

Me: i bet you guys are always doing this

[a board absolutely littered with via holes, and blue lines just jaggedly scraping their way around them sometimes connected, sometimes not] me: that seems good
[the footprint of one IC is riddled with via holes and all the pads are shorted together]
EE: What happened here
[the inside of an IC has a bunch of its pads shorted together by running wires inside the footprint]
me: dog what can I tell you aside from I don't know [picture of the board with all its components on it, they are all just smashed around in random places and most of them are on top of each other]
me: look at that motherfucker hanging off the side hahahahahahhahaa
EE: Not just that
Almost every component is on top of each other
And for no good reason
There is so much space for routing
me: oh so that's why there are 500 clearance violations every time huh
EE: Very likely kicad just stopped counting at some point Me: I have so many questions but muse keeps telling me its fine
EE: there is so much going on here
[I don't really know how to describe, there's an LED I think? but it has another IC and a bunch of resistors and capacitors inside of it]
Me: I think its actually fine if everything touches
EE: Like sure, things are connected, just in the worst way possible
Me: if things sort of need to be stuffed into the same place then that might cause a little nuclear fusion but otherwise the fab shouldn't have a problem with it

The timelapse is already so awesome. Behold, personal superintelligence

@jonny

i am nothing even close to being even an amateur at board design but youtube has taught me that this is all very wrong. it is so cursed. this might be a lesson in how not to design a PCB.

@burnitdown

I mean, you don't need to be an EE to know that components aren't supposed to overlap.

And are in fact physically incapable of doing so, at least unless you apply sufficient force, in which case you will (1) destroy them and (2) cause a city-sized fusion explosion. Don't try this at home.

Also, the wires connecting them are supposed to, y'know, connect them.

@jonny

@jonny

This is the same crap that Linus Torvalds is using, with great enthusiasm, to develop the operating system I use.

God f**king help me.

@argv_minus_one @jonny linux has pluses but unfortunately also linuses

so there's a problem... this is a board that is an optical receiver that translates a binary optical signal to digital via a photodiode. You can see that as D1 in the first pic. However the design also specifies that there is a shield can over that area to shield the analog components. This shield also covers the photodiode so... um... well....

The LLM has also designed an entire second fallback build on the same board and left it not hooked up to anything, that's D2 down below, a totally different photodiode that runs at a 400V bias. that's there "just in case"

PCB layout diagram showing D1, just a regular lookin square, inside a larger rectangle MH6. also within MH6 are a bunch of other components, the things that are supposed to be shielded. Down below to the right is D2, a bigger square with a circle in it 3D view of the board, with a big metal rectangle over the D1 photodiode and adjoining electronics (and also slicing some of them in half, but whatever!) the D2 photodiode can be seen below, a big round cylinder lookin like a camera lens.

hang on i ran out of tokens on muse and it's still pushing updates. so. token quotas are enforced at the client gateway i guess. i am in a fucking nest of fractal brokenness where just when i think i had seen the most broken thing ever, i look over and there's another fucking rectangular monolith letting me know i'm about to be taken to a new dimension

people have accused me of sandbagging these models and telling them to be shitty on purpose, which is a fair criticism i guess if you assume that anyone who would be making up "content for engagement" would be doing it on the fediverse. but i will be sure to publish the full chat log on this website when it's done and i can redact all the hundreds of times my github PATs are in the chat history. it will show how i begged and pleaded with the model to "please remove the traces to nowhere and when you move things please remove the traces that used to connect to them and how can you not programmatically just remove all the traces connected to nothing in one shot with 100% deterministic accuracy."

lengthy details about the agony of trying to persuade a brute force machine to lay out a PCB

i had to teach it that moving things was in fact possible, it placed the parts and then told me it was working on layout for two and a half days before i figured out that it did not know that it should be moving things around. i had to ask it to build the whole website so i could compare its layouts over time to know this

having it build the website also burned multiple days, where for horrible subagent logic reasons it spent 95% of its lifetime doing nothing in pursuit of a commit.

it said it didn't have enough room on the board, i said "i don't care, make it bigger, do whatever you need to do to finish it." it enlarged the board, you can see in the timelapse above, and threw the pieces randomly at the top. so it did move the components.

but timeline website viewer in hand, expanded board too, upon pressing it about why nothing had moved across all its passes, it plainly acknowledged that the only thing it had set itself up to do was add and remove wires. it had put the parts in one place and never moved them.

that's still not the end of that even. I had figured that it had used some heuristic parts placement thing. kicad has a builtin tool for this, i assumed it would be default for something that has consumed every pcb blog ever written. instead it had placed them literally randomly with the only constraint being that the parts were all in the pcb.

see my mental model of what was going on was that a) this is a text prediction model and b) it exists only in text and what it can cause to be text by the random scripts it writes, and actually remarkably c) this model is a multimodal model and can get relative position information from a constrained screenshot of something and does do that on its own. SO i assumed that what it had was doing was in these TEXT-BASED file formats of pcb files with a SCRIPTING interface through kicad, that it would do something like 1) "generate some board schematic or definition/use a script to do that" 2) "use the kicad tools to show the board errors which contain TEXT BASED information including numbers" 3) "generate some inline script or whatever to modify that TEXT BASED information in response to the error text" 4) GOTO 2. Even for the most hardcore refuseniks who don't acknowledge any utility from LLMs, that is an extremely reasonable workflow for a turn-based text prediction algorithm to be able to do SORT OF SOMETIMES.

However that is not even close to what it was doing. It had written its own error checking scripts that made no sense. They only reported two numbers that were unrelated to the board state. The only tests it had written for itself were "that the self-reported errors were lower than when the board was started". It tried some A* algorithm to route and when that failed it often just left the trace. I had to tell it to "just use the kicad error detection cli" like 5 days in.

I have not laid out a PCB, but i have worked in a lab that does PCB design for about 4 years now, and i talk to my colleagues and watch over their shoulder and see their lab meeting presentations every week, so i don't know nothing about PCB design. So this is, to me, a great demonstration of how much of the technology is just mentalism (s/o chase millionaire) - projecting expertise that you have through an interface that you think is doing it for you. this is just layout, we haven't reached the actual design of the board. i have no idea what it did, and no means of evaluating it. the optimistic promise of "AI" is letting people do things they otherwise couldn't. nobody who doesn't already know how to make PCBs would be able to make one that worked this way, and this would be just about the worst way to learn if you wanted to know.

edit: so i don't want to hear that i'm sandbagging these models again, i want to see some fucked up shit, sure, that's why i spend time with the fucked up shit machines, but if it was actually possible for me to be like "hey computer make me a chip that projects a holographic jack-o-lantern around my balls" then i'd be doing that as a bit instead.

this is the final problem that it is stuck on, after i cheated and talked it through solving its random placement and other fucked up layout bugs: i need to connect green circle to green line on the blue layer. please someone who knows the economy, please help me get my blue lines out of the way of the green line.

look at that magnificant blue squiggle on the left side. no that doesn't connect to anything.

so it's a rats nest of brightly colored wires, but there is a green line going from a circle to another line right through the middle. on the board this is the layer of wires that is otherwise blue. there is just one blue wire that is drawn in the way of where we want our green wire to go, it's pointlessly looped around some other pointless hold for no reason. basically we want to make a line that should be no problem to make, except for how previously we have filled the board with random pointless squiggles.

these things are so infuriating to work with. if it was a normal project where i could just pull up kicad and fix the wires myself, i would just do that, but instead because it's a stupid experiment and also the systems are designed to take your hands away from everything except the prompt, i have to instead say "flatten out the goofy curvy wire and flatten out the other unnecessarily curved blue wire. move the pads slightly out of the way, and then draw the line, it's right there" and then suffer how it interpreted my directions literally and tried to draw a literal straight line, cited that as a failure, and was setting up another 1m token run on diagnosing how to make a perfectly straight line fit.

if you hired a junior engineer, were looking over their shoulder and said "just move those out of the way and connect the line, it's a straight shot" and then you came back an hour later and they had taken what you said literally and just drawn a straight line and were now puzzling about how to reconfigure the whole board to accommodate the straight line, you would fucking fire that junior engineer.

@MrBerard linked me to this earlier and it's just so funny to me man: https://www.anthropic.com/research/claude-electronics-design

they publish two layouts out of 3, say nothing about the token cost or time, give it problems that are so easy they can be laid out in a single layer, and then say "towards solving electronics design." fucking snake oil salesman dog. i'm going to keep going on this and keep prompting it to make the board look slicker for a press release to see how marketable i can get it. i'm not going to even say how it needlessly spec'd a custom-wound transformer because i'm under no obligation to actually describe any of the shit i claim as a tech startup

yeah fucking muse can reason through geometric problems too. it's called "it wrote a thousand scripts that brute forced every possible geometry"

when anthropic says that the language model created its own algorithm to lay out PCBs, what it means is probably closer to something like this, where muse created 1800 python scripts at 208ksloc to brute force through algorithmic space.

the difference is that i post the repo

https://github.com/sneakers-the-rat/lvds-receiver-official/tree/main/scratch

cloc output for the scratch directory in this pcb's repository.

    3067 text files.
    2792 unique files.
     277 files ignored.

I hope that this comma spaced table is readable, if not please lmk how to make tables screenreader friendly

Language: files, blank, comment, code
JSON: 196, 0, 0, 219970
Python: 1789, 9887, 14170, 207769
Text: 685, 8, 0, 105223
Bourne Shell: 105, 248, 565, 2790
Markdown: 17, 171, 0, 2420
SUM: 2792, 10314, 14735, 538172

i am just now learning from elsewhere in thread that this is in fact good!!!!!!!! and exactly like how all knowledge works. personal superintelligence here we come, or here we are, or there we go, whichever.

@jonny a system trained all almost all written knowledge, and it still has to work it out from first principles or trial and error 😬

@argv_minus_one @jonny Computing right now is so cursed. You can have the OS written by a charmless dude with an LLM, the OS written by a company selling an LLM, or the OS written by the hardware lockin company that is still somehow failing to make an LLM.

@Rgsharpe

Or you can use the operating system with the pitchfork guy, which…is probably going to be using LLMs shortly if not already.

Or you can use the operating system with the blowfish or the flag, but they haven't received much love on desktop (that all went to the charmless dude's OS), so there's a whole bunch of stuff missing, like Bluetooth and point-and-click network setup. And they may or may not go full slop who knows.

Sigh.

@jonny

@argv_minus_one It's almost like we're the idiots for not going whole hog on LLMs.

Think it's possible to spin up an LLM OS grift and use the cash to hire a highly specialized covert team of catgirls to build an actually decent OS?

@jonny why are you still using the slop extruders to burn our planet?

No, making fun of them is not worth it.

@mirabilos @jonny
I think it's very well worth it. These posts help the rest of gain a better understanding about how this stuff works. The cost is 0.0000000001% of overall LLM usage.

@jeromio @jonny that article where someone implemented it in 498 lines of SQL helped with that already

@jonny I am really glad to have chosen EE. An LLM can never correctly layout a PCB, because the inherent creativity you need is not there. This does not even take into account EMI and differential layouting etc. Creating a good, working layout (and circuit) requires knowledge, time, skills and creativity, and LLMs can never deliver that. A PCB ist art, soulless random number generators won't ever to be able to deliver that.
replies
0
announces
0
likes
1