start	end	text
0	1200	Hello everyone.
2500	8480	So it looks like the projector doesn't work, so I'm just gonna dry talk this.
9520	16920	So we're Pamir AI, P-A-M-I-R dot AI, you can just look it up.
17100	29140	So we are a small startup at San Francisco, so we specialize at just bridging AI and hardware, put it together, try to use that to help other people to build hardware.
29740	42040	So this talk is mainly about how we use that to enable one of the villages in DEF CON, and how do we power there.
42760	50120	It's a biohacking village, so I'm gonna talk about how is that gonna enable medical-related stuff.
51420	55560	Yeah, so the company is built by just me and my co-founder.
56120	63580	I used to work at Microsoft and Qualcomm, so that's how we know how to handle the AI and hardware part of stuff.
65880	70340	So how do we run AI model today, right?
70340	87440	For any model that's larger than 70 billion parameter, like whatever you use on chat GPT is huge models, you can only host it at a GPU cluster, which we probably don't have it at home.
88120	94800	So most of the people that use the model are ranging like 13 billion parameter to 30 billion parameter.
94800	103740	You can run that on a really good MacBook or like a Mac Studio size of hardware, which is still very expensive.
104960	112720	And then you can drop that down to like 0.5 billion parameter to 7 billion parameter, those kind of stuff.
112720	123000	You can probably run on a very good phone and you can get a decent result out of it, but it's not gonna be as smart as chat GPT, right?
123460	128100	So that kind of leads where our company started.
128180	129980	What about embedded system?
129980	143660	You know, there's a lot of hardware stuff is built on a single board computer, like Raspberry Pi, Arduino, ESP32, those kind of stuff, no one's building a local AI for that, right?
143720	154660	So that, but fortunately in the past half a year, there's a lot of progress in the open source community made.
155020	161020	Like there's model called Quinn, Q-W-E-N, you can look it up.
161020	166180	And also Lama, they released a 1B model to a 3B model.
166540	174580	And a lot of stuff done by Hugging Face, it's called a small LLM, S-M-O-L-L-L-M.
175500	183060	They released a lot of three billion parameter to four billion parameter model that's also really good.
183140	192840	Also Google has one particular model called Gemma, that's also a performance very well.
192840	199520	So thanks to the open source community, we now have a small enough model that we can squeeze into an embedded system.
199880	205080	So that's where our company start to mess around, prototyping those kind of stuff.
206360	211340	So I tried some of the model on Raspberry Pi so you don't have to.
211640	218020	Around one billion parameter, you can get like okay-ish communication going.
218020	223260	Like it's not very smart, it's kind of like talking to a 10 years old.
223260	226140	It can tell story back to you.
226640	227960	So that's that.
227960	236300	But when you get it to like two billion parameter, it can start to make like JSON type of request.
236300	238320	So it started getting useful.
238600	248960	Once the model reached three to four billion parameter, it's starting to get very reliably calling like a Python function.
249300	254860	So that's where we start to collaborate with Spell Hacking Village.
254860	259360	We made this badge that's built on a Raspberry Pi 5.
259440	263300	If you want to get it, you can check out at the Spell Hacking Village booth.
263600	274260	So essentially we miniaturized inference engine into a badge form factor and we can make it to control real sensor and do simple medical QA.
274600	277780	So there's like four LED on the badge.
277780	284840	You can talk to it and it will try to rationalize what kind of color you want.
284840	289500	And make a Python request to turn on those RGB LED.
289680	300500	And the funny thing is when you say, I want to write a green or blue color, it was able to very reliably recognize those comments.
300500	310200	However, if you say, I want a pink or purple, which require reasonability, the model start to not getting it, right?
310200	311980	Because they cannot one-shot it.
311980	313340	It's a RGB combination.
313340	318000	So they have to think, okay, what's the combination for pink, right?
318000	324340	It's probably like 100 for red, then 50 for green.
324340	328740	So that's where the small models start to become not so smart.
328740	335620	So sometimes it give you a wrong color, but we know it's smart enough to control simple sensors.
335620	348500	Like if you give it a moisture sensor or just like a simple, I don't know, IR sensor, it can probably help you to use that, right?
350060	358700	And I really encourage everyone to check an open source model called MedGemma, M-E-D, Gemma.
358700	361700	It's an open source model made by Google.
361700	365080	They made a lot of interesting research on that model.
365080	372920	They use it to do clinical reasoning for medical records and just general medical knowledge answering.
372920	377800	We actually put a four billion parameter model into this Raspberry Pi.
377800	395980	So it's not like hyper accurate, but yesterday someone came by and asked like how much of antibiotics medicine I should give to a two years old.
396160	403240	So he kind of gave back an answer in terms of milligram, and that's kind of in a correct range.
403240	414640	So we were surprised, okay, it definitely knows more medical stuff than me, but I think that's good enough for like a doomsday device part.
414920	424740	Also, Google mentioned they use it to do X-ray, chest X-ray report generation, and it turns out it's pretty decent.
425080	427960	So I encourage everyone to check that out.
428980	433860	So what if, so we know with a small model, we can get that far.
433860	443600	So what if we put like just like chat GPT or isotropic, those huge model to enable them on the device, what's gonna happen, right?
444960	456330	So imagine we put, I know if anyone here is a technical, like I use cursor, those kind of AI IDE to code every day.
456330	459590	So imagine we put that into embedded system.
459810	467410	So what's gonna happen is you put in plan language, you connect sensor to it, it can generate and load the driver for you.
467410	473330	Also, it can probably log the data for you, build a UI for you and retry on arrow.
473330	481610	You don't have to write a single line of code because the whole embedded system is controlled by AI agent essentially, right?
484530	494210	So some example we've done in the past by just leveraging the isotropic model to control a full Linux system, let's see what it can do, right?
494210	501730	So I had this flipper zero thing and I wanted to write a screen saver for it, but I don't know how to do that.
501730	507010	So I connect that to the single board computer we made.
507010	509910	It's like this size and there's a Raspberry Pi 5 in there.
509910	515450	It gives full control of that Raspberry Pi to a very big cloud model, right?
515450	526030	So we find out there's a command line driver or like a SDK for just writing flipper zero customized code.
526030	529910	So it's just utilizing that to run me a screen saver.
529910	539950	Similar thing for Arduino or Raspberry Pi, I plug it in, tell it what's the serial number, like what's the product number on what type of Arduino it is.
539950	541210	It will go download.
541210	544050	There's actually a Arduino IDE CLI.
544070	549550	I didn't know that, but the AI found that thing and just programmed the Arduino with a CLI.
550490	553950	There's also, so we also do similar thing to a thermal printer.
553970	561490	So, you know, we bought a thermal printer from Amazon and, you know, those kind of type of thermal printer, they can only print shipping labels.
561570	563130	It's only designed for shipping labels.
563130	566390	But I want to use a printer to print whatever I want.
566390	569490	Because I already paid for it, I want to print stickers on it, right?
569490	571530	So I plugged in this device.
571550	576230	It figured out, oh, this is this brand of printer.
576230	581770	They do have a driver for Windows and Mac, but they don't have a driver for Linux.
582430	586050	So , however, it's a printer, so it's using a universal protocol.
586050	587910	So it kind of reverse engineered the printer.
587910	589870	I wrote a whole driver for the printer.
589870	594590	Now I can print whatever I want with the printer.
595090	601350	So we also sponsored multiple hackathons in San Francisco.
601390	607950	Some people brought a Roomba that they don't need anymore, but they want to control the Roomba.
607950	612410	So it turns out there's also a USB port for that Roomba.
612410	615250	So they plug in a Roomba to the device.
615250	619830	Of course, the device, the almighty AI found the driver for the Roomba.
619830	623630	Now they can use the Xbox controller to control the Roomba.
624990	636790	But, so, all that is telling us, you know, I used to just copy paste code from Arduino IDE to a chat GPT and ask question and copy paste it back.
636790	643270	But now I can just, you know, chat with it and just write a driver and do everything for me now.
643270	646390	I think that's kind of the future we're going at.
647270	655050	And I think it's relevant at DEF CON because, you know, if you have an AI in your pocket, it can slightly hex stuff for me.
655530	659450	But can we eventually do all that locally, right?
659450	665770	Right now I'm using, I don't know, one trillion parameter on the cloud, but I do want to use it locally eventually.
665770	673710	So there's a paper came out, it's called Multi-step Planning and Reasoning Improves Acting Agent.
673890	682450	You can look it up, it's a long title, but if you Google pre-act paper, it'll probably show up.
682450	701110	So essentially there's a team of researchers, they find out, oh, if you just fine tune like 70 billion model on those kind of syncing, replanning data set, it can eventually be as good as the huge model run by OpenAI.
701110	709190	So I think in the next two or three months, we can get all those stuff like running on my MacBook or just a Mac Studio.
709810	725870	So we'll get there to run everything locally, which I think is very important for since like medical device or anything that involves my biometric data, I don't wanna send that to OpenAI, right?
726930	734310	Also, you know, if anyone works for a medical device company, the UI is hella complex.
735030	743510	I don't know how to operate that, but if there's a local model that I can just drop the manual or SDK off the machine, it can operate for me.
743510	749990	I think that will enable a lot of medical automation industries
753490	756090	researchers to utilize them, yeah.
757290	760370	Yeah, that's pretty much of the talk.
760370	766490	If you got any question, you can stop by the Biohacking Village booth and to learn more.
766490	767510	Yeah, thank you.
