0:00
AI agents as well as Sasha who is the
0:03
CTO and co-founder of Brain AI Brainform
0:07
AI right and has 20 plus years of act
0:11
architecturing scalable enterprise
0:13
systems across front end backend cloud
0:17
mobile and AI from generative AI to the
0:21
to on device. Okay, without further ado,
0:24
I will hand over to you. But quickly
0:27
reminder, if you have questions, please
0:29
submit them via the app and we will
0:31
check them after. All right, you guys on
0:37
>> Yeah, thank you. And hello everyone.
0:39
Thank you very much for being here. Uh
0:42
my name is Shada. I do developer
0:44
relations at Quadrant.
0:46
>> Yeah, I'm Sasha. uh so I was introduced
0:49
as CTO co-ounder of brand form but uh
0:52
for quudrant I'm playing a role of
0:54
research engineer so uh here in the
0:56
stage I will represent myself a research
0:58
engineer of quadrant that I'm
1:00
responsible for demo part
1:03
>> yes and in the next 20 minutes we will
1:05
be diving into edge AI and how you can
1:08
use quadrant for building semantic
1:11
memory for your ondevice edge AI
1:15
but uh before we start with the how.
1:18
Let's uh talk about why and when we need
1:21
edge AI. So there are three real world
1:25
constraints uh that make it a must and
1:27
maybe you're working under one of these
1:30
constraints and you're interested in
1:32
using edge AI. So this is the right
1:34
place to be. So the first one is uh
1:37
connectivity. So there are environments
1:40
where we don't have reliable access to
1:42
the cloud or no access at all for
1:44
extended periods of times such as in
1:46
pharmaceutical clean rooms. The second
1:49
is latency. In some applications like
1:52
autonomous driving, we cannot tolerate
1:54
the delay of the round trip to the cloud
1:57
and um we need to run that on device
2:01
because like even a 100 millisecond
2:04
delay can mean the vehicle travels a few
2:07
meters. uh which which can be very
2:10
critical in some situations. And lastly,
2:13
of course, we care a lot about data
2:15
privacy. So, if you think about how you
2:18
use Face ID or Touch ID to unlock your
2:21
phone, your computer every day, it's
2:24
great. It's seamless and convenient, but
2:26
you don't want your biometric data or
2:29
any type of your sensitive data leaving
2:32
your device and being uh processed in a
2:37
And uh of course edge AI also has uh
2:41
cost reduction benefits. It cuts your uh
2:44
cloud processing bills. But here we uh
2:47
are talking about situations where it's
2:49
really a must and not just an
2:53
So um edge AI actually has been there
2:56
for years. It's not new. We've been
2:59
already using it uh when for example
3:02
applying uh social media filters or
3:04
extracting the foreground of photos. But
3:08
what's changing is that now we are
3:11
bringing general intelligence. The kind
3:15
of reasoning capabilities that not long
3:18
ago used to only exist behind an API in
3:22
the cloud data center you'd never see
3:25
directly on device. And that is uh being
3:30
made possible thanks to first small
3:34
language models. So think about small
3:37
language models as lightweight versions
3:40
of LLMs with a much smaller uh parameter
3:44
count. So as you can see here on this
3:47
timeline and they are designed for
3:50
faster inference, lower compute
3:53
requirements and lower energy
3:55
consumption. So they can actually fit
3:58
and work on your computer, on your
4:01
phone, on your IoT systems, etc. And
4:06
actually we are using Google Gemma for
4:09
E2B in um a quick demo that Sasha is
4:14
going to present uh in um a minute. So
4:20
And the second thing is that open weight
4:25
models are becoming very very capable.
4:31
recent rec recently uh you don't need to
4:34
use proprietary models that sit behind
4:37
an API to have state-of-the-art
4:40
performance or a near state-of-the-art
4:42
performance because these openweight
4:44
models uh are accessible to you. you can
4:48
deploy them on your edge devices and
4:50
they are catching up and very close to u
4:57
frontier models. So they are not the
5:00
absolute frontier but surprisingly
5:03
close. basically uh on a machine that
5:10
you can basically run uh a model that is
5:13
uh last year's frontier and the gap uh
5:16
is shrinking every quarter.
5:20
Okay, great. We have really capable
5:23
models uh that we can deploy on the
5:26
edge. But real intelligence is not just
5:30
the model, it's also the memory. Because
5:33
even if you have the smartest model
5:35
without memory, it can feel like a
5:38
complete stranger that does not know
5:41
you, does not know your preferences,
5:43
your history, and the context that you
5:47
would want to build over time based on
5:52
memory is a really important piece and
5:55
it makes all the difference. For
5:57
example, in personal assistance, you
6:00
move from a generic chatbot that
6:03
basically doesn't remember anything
6:05
about you to something very personalized
6:09
that knows your preferences, that knows
6:11
you and that understands you.
6:15
And the second point is uh that
6:22
are always evolving. So eventually at
6:26
some point you will swap the model
6:28
because you will move to a more capable
6:30
one. Even the hardware you're running
6:32
the model on can be switched as devices
6:36
evolve. But memory is what you carry
6:39
forward. It's the operational history
6:44
that for example you learned in whatever
6:47
uh industry application you are building
6:51
and um it's what transforms an LLM to a
7:01
how uh you can bring that memory on
7:04
device. So this is exactly what Quadrant
7:09
edge is designed for. It brings semantic
7:13
memory directly to your device
7:16
application, to your robot, to your
7:18
phone, etc. So before we dive into
7:22
Quadrant Edge, let me uh introduce
7:25
Quadrant before to those of you who
7:27
don't know it. So Quadrant is a vector
7:30
search engine and this enables you to
7:34
build semantic memory and do semantic
7:37
search. So you have different kinds of
7:40
data whatever data you are working with
7:43
in your day-to-day uh job. It could be
7:46
text, it could be images, video, audio,
7:49
whatever. The first step is that you
7:52
transform this data into a
7:55
representation that captures the meaning
7:57
and the complex relationships within
8:00
this data. And this is done with
8:02
embedding models. And after that,
8:05
Quadrant comes in as a vector search
8:08
engine that is going to index your
8:10
vectors and allows you to search them
8:13
very very quickly and efficiently. It's
8:16
based on REST uh which allows it to be
8:19
extremely fast uh and memory efficient.
8:23
And Quadrant Edge is the edge deployment
8:26
of Quadrant that is designed to run on
8:29
your low CPU devices. It runs um
8:34
in the background and you can use it for
8:38
like whatever uh edge application you
8:41
can imagine. And it has the same
8:43
features as Quadrant. And also with the
8:47
same API so you can synchronize your
8:50
data between uh ondevice and your cloud
8:53
cluster if you need for example to share
8:56
uh within different devices or like to
8:58
have a uh snapshot on the cloud.
9:02
Now let me give it to uh Sasha who's
9:05
going to present uh our first example.
9:09
>> Yeah. Hello again. Yeah. My turn. So uh
9:14
first please raise your hand if you have
9:16
no mobile phone with you.
9:21
>> But I can see it in your hands.
9:24
>> I think you probably for forgot it or
9:27
something. Yeah. Because it's
9:29
complicated to imagine our life without
9:31
mobile phone, right? It's practically
9:33
part of you. Yeah. It knows uh it knows
9:37
everything about you like all your
9:39
secrets, all your conversations,
9:41
private, public, whatever. All your
9:44
photos, uh your invoices, screenshots
9:47
with interesting information,
9:49
everything. Yeah. Uh and there's a huge
9:52
amount of information. Uh so you have it
9:55
there and sometimes it's even hard to
9:57
remember uh when did I make this
10:00
screenshot or in uh which chat we
10:03
discussed this trip or how to find Wi-Fi
10:06
password that I uh sent to my friend and
10:10
so on. So I prepared demo u with it's
10:16
application on flatter impetus flatter
10:18
just to be able to run on Android and
10:20
iOS. Uh and there is two use cases. One
10:24
use case it work with chat. So actually
10:27
I generated a fake chat with a tons of
10:30
messages uh few friends that discussed
10:34
one trip uh to Amsterdam as I remember.
10:39
Uh so it's fake information I don't
10:41
remember. So the second example with
10:43
images. So I also generated a lot of
10:46
fakes invoices uh airplane tickets and
10:54
uh I named this gives gave the name of
10:57
this demo could run uh on device memory.
11:01
Uh so this uh this demo you can with
11:05
natural language ask uh like tell me
11:09
when we discuss this thing and uh this
11:13
demo will find this message in your chat
11:16
answer your natural language and give
11:18
you opportunity to scroll up to this
11:20
message. Uh and the second one you also
11:23
can ask natural language like show me
11:25
like invoices of how many times I went
11:29
in grocery shop or uh where is my uh
11:32
ticket to show me ticket to Amsterdam.
11:36
and yeah everything happens on device
11:40
and no one bite leaves device. So you
11:44
get privacy by default. Uh you don't
11:47
share your memory with someone else. uh
11:49
even if you sure that there is a safe
11:52
but anyway all data on device you have
11:55
offline functionality you're in plane
11:58
you're on mountains I don't know
12:00
underground so you can work with it and
12:03
you don't have to pay because you
12:06
utilize your device power so let's take
12:09
a look the first one
12:12
so there is a chat I generated like
12:15
friends Anna Mark uh Sasha Lena and then
12:21
I'm asking so what time are we meeting
12:25
and we are meeting at 6 p.m. uh and you
12:28
press button and shows a message in chat
12:30
where we meet and Wi-Fi password the
12:32
Wi-Fi password is sunflower uh 2023 and
12:37
show a message when we discuss this so
12:40
uh it's talk with you and show you the
12:44
message so because all messages are
12:46
embedded and stored in coder edge and
12:49
you can uh search there so and second
12:54
uh so there are the invoices I plan
12:57
tickets. Uh so I'm asking
13:02
at is open all invoices from grocery
13:04
shopping. Yika uh whatever I don't
13:09
remember and boarding pass to Amsterdam
13:12
and it found boarding pass to Amsterdam.
13:20
So there are two part memorize part and
13:22
recall part. memorize how to store the
13:24
data and recall how to get the data. Uh
13:27
so there are two ways. The chat part is
13:32
take chat history uh embed them. I use
13:36
embedding gema model to generate
13:38
embedding on device as well without
13:40
sending to cloud and then send them to
13:43
vector store. And uh another one with
13:47
photos it's a little bit more
13:48
complicated. First I use GMA 42B uh to
13:52
get information about what do we have on
13:55
this screenshot uh uh and embed uh this
14:00
uh description uh to to store it as a
14:05
text description of this image and be
14:09
able to search by description of what
14:11
we're looking for. Everything stored in
14:13
vector store and next step recall. So in
14:17
case of chat and in case of question in
14:20
the beginning almost the same first what
14:22
do we have query parsing with gema for
14:24
model I just took information for
14:28
request uh to have uh smart filters uh
14:31
for example how to separate uh flight to
14:34
Amsterdam and flight from Amsterdam from
14:36
vector similarity it's almost the same
14:40
but uh I uh got the filters and separate
14:44
from and to apply izes filters and uh
14:48
then look using semantic search with
14:50
embeddings and took only relevant
14:53
answers. Uh and in case of chat I there
14:58
is one more step answer generation it
15:00
generate for your answer in natural
15:01
language but then uh show your exact
15:04
message. In case of photo just shows the
15:06
photo. Uh this is how does it work. So I
15:10
just added video to the slides not to
15:13
run it here but if you would like to try
15:15
it yourself just come to our booth and
15:17
uh you can try it in mobile phone. Uh so
15:20
what what else? So if you're interested
15:23
how uh edge AI works nowadays and
15:26
capabilities of AI models on mobile
15:28
devices you can come to my talk
15:30
tomorrow. I will talk about what does
15:32
mean uh edge AI uh edge u intelligence
15:36
for mobile developers uh exactly as a
15:39
mobile developer. Uh so that's
15:42
everything about this demo but then
15:45
let's imagine so we were talking about
15:47
mobile phones that we have right now.
15:50
Let's imagine what we will have tomorrow
15:52
in the future. So uh like little robots
15:54
will running around us. Yeah. Do
15:56
something. Yeah. Uh what what what what
15:59
are they robots? So it's actually kind
16:01
of mobile devices, right? Uh but mobile
16:04
devices on like near future. Uh is it
16:07
possible to run edge uh quadrant edge on
16:12
>> This is a very good question and the
16:14
answer is yes, absolutely.
16:18
>> Okay. Uh some technical problem maybe.
16:49
What does it happen?
17:04
>> Yes. Finally, we have our home robot
17:07
demo on the screen after a small
17:10
technical problem. So, think uh about
17:14
having this home robot that you bring
17:17
into your home to help you with the
17:19
chores uh etc. you enter, you ask it
17:22
where did I leave my keys or can you
17:26
change the pillowcase for um the pillows
17:29
in uh the children's bedroom. So the
17:32
first thing what that happens when you
17:34
bring this robot into your home is it
17:36
has to get familiar with its
17:38
environment. It will scan your house for
17:42
the objects. And this uh recording here
17:45
is a demo that we built and I will very
17:49
quickly walk you through how this is
17:51
made possible um also of course with
17:54
quadrant edge. So we're using YOLO E for
17:58
uh object detection and we're embedding
18:02
the uh pictures the frames with um an
18:06
embedding model and also captioning each
18:09
frame and then uh we're doing hybrid
18:12
search. So we're combining both the
18:15
embeddings of the images with uh BM 25
18:20
sparse vectors for the captions uh with
18:23
reciprocal rank fusion all with quadrant
18:26
but most importantly it's all done on uh
18:30
your robot so your house basically data
18:34
does not leave uh your home and it can
18:37
answer your questions and perform the
18:40
search very quickly in sub uh millisec
18:47
And um this is not just also about
18:51
robots. So think about uh the
18:53
experiences that you live every day and
18:57
that you can index and make searchable
18:59
with smart glasses. And this is uh what
19:02
Sasha is going to show us live now.
19:06
>> Yeah, thank you Sha. So
19:10
how many of you for example in the
19:12
morning oh where where where I drop my
19:14
keys? Yeah I might have to run quickly
19:17
to to developers people waiting me on my
19:21
boo where is key or where is my mobile
19:24
phone actually. Yeah. So [laughter]
19:27
uh I created a demo that helps exactly
19:30
with this situation. So uh I gave it
19:33
name quadrant edge object memory because
19:38
uh how does it work? It detects objects
19:41
like on the previous demo uh store uh
19:43
them exactly on glasses uh and then
19:48
using voice recognition you can ask
19:51
where is my mobile phone and it will
19:54
find it for you. Uh so uh let's try
19:59
that. We'll have no technical issues
20:01
because Wi-Fi dropped uh and uh they
20:05
actually connected by Wi-Fi. Uh so let's
20:18
So let's Can you see that? Let's switch
20:26
I can try to disconnect it. It still
20:37
I have to be sure that mobile phone is
20:41
okay. Uh so let's try to find it.
20:51
Uh let's start with laptop.
20:54
Uh where is my laptop?
21:03
many different ah yeah it's finally
21:10
so uh today we figured out then when a
21:14
lot of people around uh and Wi-Fi is
21:17
very heavy loaded uh sometimes needs to
21:20
too many energy to send signal from
21:23
glasses to laptop and on the peak of
21:25
this energy it's switched off but uh we
21:28
demonstrated hated everything I guess.
21:29
So now they are not working anymore but
21:32
without translation to laptop [laughter]
21:37
it won't happen. So actually if you will
21:40
try would like to try yourself welcome
21:43
to our booth. Uh we will be there today
21:45
so you can uh play with this glasses and
21:48
with demo uh there. So how does it work?
21:58
two parts as well memorize and recall as
22:01
previous demo. So we have camera
22:03
streaming and there we have a yola model
22:06
that recognize and detect the objects.
22:09
It runs exactly. So everything runs on
22:12
the glasses uh glasses reo x3 pro
22:17
is powered by qualcom
22:19
and there's a npu and jpu inside. uh so
22:23
recognition of object it takes 9
22:26
milliseconds there then I have embedding
22:28
models tiny clip it's a model small
22:31
enough to be run on glasses it's a like
22:35
to transform this object to vectors and
22:37
store to quant database then during
22:40
recall we have Google ISR that recognize
22:44
your voice then we use the same
22:46
embedding model to trans transform this
22:48
voice to the embeddings and organize the
22:51
search in quadrant antage
22:53
uh some numbers uh so object detection 9
22:57
millconds it utilize NPU and works very
22:59
fast uh image embedding it's half second
23:03
it's a maybe the longest part yeah
23:06
because tiny clip models is designed the
23:08
way that it can't utilize NPU so that's
23:12
why it takes a little bit longer
23:14
if you find the model that will utilize
23:17
NPU it will be faster of course so
23:19
vector search 15 milliseconds and vector
23:24
upsert 60 milliseconds. It's longer than
23:26
vector search because I do this flash
23:29
after every object to be safe if
23:32
something will will be wrong with
23:36
with power or something to to be sure
23:38
that I stored everything. Uh that's why
23:40
I don't use batch saving. In case of
23:42
batch saving, it would work much faster
23:45
than 60 milliseconds. uh uh so query
23:48
embedding half a second because it's the
23:51
same embedding model and uh so vector
23:55
search of top five models
23:58
less than 80 milliseconds and take a
24:00
look to this uh I just did some
24:04
experiments what if we will save object
24:07
like during one year I don't know
24:10
one year maybe too too much but I
24:15
vectors uh to check the how fast it will
24:18
be and result vector search 78
24:21
milliseconds. It's very extremely fast.
24:24
So quadr is really good for speed. So uh
24:30
longest part is not search part here is
24:33
embeddings. So now when we add the the
24:39
embedded model that will be details npu
24:41
it will be much faster as well.
24:44
Uh so let's go further.
24:48
>> Yeah. So one last idea about these uh
24:52
smart glasses. In this demo we showed
24:55
that you can search for objects. But
24:58
this can go much further than that.
25:01
Imagine uh indexing basically your
25:03
day-to-day memories and your experiences
25:06
while wearing these uh smart glasses.
25:09
And because owning your memories does
25:11
not mean not sharing them, you can
25:13
actually create a hive mind where uh if
25:17
you imagine a family where each member
25:20
is wearing smart glasses and uh
25:22
recording their best moments uh then
25:26
this can be shared and synced from uh
25:28
your glasses from Quadrant Edge to the
25:31
cloud to Quadrant cloud and creating uh
25:34
this uh shared pool where you can search
25:37
through your memory. memories but also
25:40
uh your loved ones memories all in one
25:44
So uh this is it for today's
25:48
presentation. Thank you very much for
25:50
attending and uh please come join us at
25:54
uh the booth and uh yeah we're happy to
25:57
hear your questions. Thank you.
26:05
Otherwise the question okay so I don't
26:09
have a lot of questions because I'm also
26:11
experiencing some tech technical
26:12
difficulties so let's see the questions
26:14
that I have which are on my card is
26:17
which edge case use case surprised you
26:20
the most in the wild
26:26
edge case use case so today I was
26:29
actually surprised uh with this Wi-Fi
26:32
dancing so it worked uh really good. But
26:36
then people start coming and it start to
26:38
switch off. What happened? And I then I
26:41
find out if I go outside a little bit
26:43
there are less people. It works fine.
26:45
When more people coming on the pses
26:49
needs more energy to send a signal and
26:52
on peak switch off. I didn't expect
26:54
this. Uh and so what what else
27:00
Actually, I was surprised how fast
27:02
glasses work with NPU with the object.
27:06
So, 9 millconds. It's extremely fast. Uh
27:20
do I remember something else? So uh in
27:25
general I I'm really surprised how good
27:29
it works on devices. So and how much
27:32
opportunities it opens uh for us. Uh
27:36
tomorrow uh I will talk about it also a
27:42
which approaches we can get. So not only
27:46
cloud or on device we also can utilize
27:48
like hybrid approach that have partially
27:50
on device partially in cloud it's
27:52
related to memory it's related to LLM
27:54
themselves and you can play with it. So
27:57
I think it's kind of future of uh
28:00
utilizing AI. It's hybrid approach.
28:03
>> Okay. One more question before I let you
28:05
go is how do you sync on devices indexes
28:09
when connectivity returns?
28:12
>> Could you repeat please?
28:14
>> How do you sync on device indexes when
28:18
connectivity returns?
28:23
so uh it's actually everything works on
28:27
device you don't have to sync so uh
28:30
everything works here so uh if you would
28:33
like uh to sync so it's not exactly edge
28:37
approach it's hybrid approach that I
28:39
mentioned so you can have uh partially
28:42
on device partially on cloud uh and then
28:46
sync it but it's not necessary it's
28:48
works absolutely independently
28:52
All right. Um, that's it for now because
28:55
my device is not working either. So, um,
28:58
we are going to take a break from the
29:00
stage because the next talk will be at
29:03
12:50. So, thank you so much Chander and
29:05
Sasha and looking forward to having your
29:08
talk tomorrow. Okay, everybody clap some
29:11
>> and yeah, if you have more questions,
29:13
uh, yeah, we are here. Uh, please catch
29:15
us here or on our booth and ask all your