×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules
6

redneck AI visual processing, or the cheapest way to get 16 trillion ops per second

submitted by o0shad0o to technology 3 weeksMay 20, 2024 21:46:20 ago (+6/-0)     (files.catbox.moe)

https://files.catbox.moe/0bcnon.JPG

https://files.catbox.moe/5m0zxs.JPG
https://files.catbox.moe/jm61dn.JPG

These are $50 Coral Dual Edge TPU boards, on $30 m.2 carriers, in a quad m.2 card. Total cost ~ $420. These will be used for automatic hilighting of unusual events on my security cameras. If you're interested in this sort of thing I'll post more details on how to get this sort of thing going.

Edit: Miscalculated, looks like this setup will actually do 32 tera-ops. ^^;

Beware, this may need unusual hardware and may not work on all mobos. I'll post specific details if people are interested. Alternatively they can put single carriers in standard m.2 slots if they don't want this many.


11 comments block


[ - ] Crackinjokes 2 points 3 weeksMay 20, 2024 21:49:19 ago (+2/-0)

Yes please post more about this.

[ - ] o0shad0o [op] 1 point 3 weeksMay 20, 2024 22:21:14 ago (+1/-0)

Was typing in all the info about this and browser crashed, and I'm tired, so I'll post info tomorrow. :-P

[ - ] o0shad0o [op] 0 points 3 weeksMay 23, 2024 11:00:45 ago (+0/-0)

sigh - Okay, let me type all this up again.

The best overview I can give on the subject would be to refer you to a LTT video - https://www.youtube.com/watch?v=B635wcdr6-w - which talks about a product from Asus that uses the Dual Edge TPU boards. 200% of the performance for ~ 220% of the total price. TBF this card is better built and will handle being inside a server better but it's overkill for most individuals. The video is interesting and goes into some of the software to utilize the TPUs in image recognition.

The Coral Dual Edge TPU uses what is part of the M.2 slot spec but isn't the same as the ones for SSDs. It's actually the same slot as what's used for wifi/bluetooth on some laptops and motherboards. You can actually plug the module into one! Unfortunately you will probably only be able to access one of the TPUs because most of the time there's only one SATA lane routed to the slot.

To get the cards working on more standard hardware I purchased carrier boards from COOPERATOR on Makerfabs - https://www.makerfabs.com/dual-edge-tpu-adapter-m2-2280-b-m-key.html - which will take one of the TPU modules and plug into the same M.2 slot as an NVME drive. The total cost of the module plus the carrier is roughly the same as one of the single-TPU USB dongles, so twice as much bang for the buck!

You can plug the above into a slot on your motherboard, and this might be worthwhile to start experimenting. If you need more, though, you'll need to do what I did and buy a PCIE card that can take multiple "drives". This raises other issues; those cards mostly have PCIE switches meant to share bandwidth between all the drives, and I wasn't sure the switch would be compatible with the TPUs.

What I did is buy this thing - https://www.amazon.com/dp/B0C64FVVHY - which is a card that lacks a switch, but instead depends on a chipset featured called "PCIE bifurcation". This feature was introduced with the PCIE v4 spec, though I hear it's available on some v3 motherboards. It's also not guaranteed you'll be able to enable the feature, it has to be turned on in the BIOS. So this is something you'll need to confirm will work with your PC.

[ - ] PotatoWhisperer2 0 points 3 weeksMay 21, 2024 03:41:35 ago (+0/-0)

Is that enough to saturate the data bus?

[ - ] o0shad0o [op] 0 points 3 weeksMay 21, 2024 03:51:45 ago (+0/-0)

No. Only eight lanes are in use, and and they connect via PCIe gen2.

[ - ] PotatoWhisperer2 0 points 3 weeksMay 21, 2024 04:31:02 ago (+0/-0)

PCIe gen2.

Ah, nice. Seems like only yesterday you could saturate the mobo with a big enough raid of spinning rust.

[ - ] prototype 0 points 3 weeksMay 21, 2024 01:55:08 ago (+0/-0)

So with shipping and the time investment, getting ten of these things running would cost about five to six grand.

What are you plugging it into?

[ - ] o0shad0o [op] 0 points 3 weeksMay 21, 2024 03:49:04 ago (+0/-0)

I won't need ten of these, this should be plenty for my few cameras. Not sure what it's going into yet, depends on how things will be set up. If I need a GPU in the system for video decoding I might need something like a threadripper.

[ - ] Crackinjokes 0 points 3 weeksMay 20, 2024 21:53:14 ago (+0/-0)

So four dual TPU cards so eight tpus?

[ - ] o0shad0o [op] 0 points 3 weeksMay 20, 2024 21:55:11 ago (+0/-0)

Correct. With the carrier cards each dual TPU costs about as much as a single USB TPU.

[ - ] Crackinjokes 0 points 3 weeksMay 20, 2024 21:51:43 ago (+0/-0)