📱

Get Our Mobile App

Take your business learning on the go!

Download on the App StoreGet it on Google Play

AI running fully on the blockchain – AI running on ICP

DFINITY Foundation4:20

Transcription

Hello everybody. I am incredibly excited today to give you the first demonstration of quite a sophisticated AI running on blockchain. That blockchain, of course, is the Internet Computer, the only blockchain in the world today that can run compute at scale.

There's a lot of talk about, you know, blockchains for AI, tokens for AI, and things like that. This is the real deal. This is AI running on the blockchain. So today, I'm going to demonstrate image classification, which involves a neural network running inside a smart contract. In fact, that neural network has been compiled to WebAssembly, um, which is what, you know, runs on the Internet Computer.

Okay, so without further ado, let's get started. Um, so this, this uh, web page you see here is being created by canister smart contract with the AI and site. So I'm going to click this logo, and it's going to ask me to select an image file to classify. So the first one's a, let's see how it does. Now, um, be warned, this is going to take about 10 seconds. Um, currently, uh, it's, it's processing about 20 billion WASM instructions to classify the the image, but that's going to come down, um, very dramatically in the future.

Well, there we go. It's correctly classified this file as depicting a tiger. So let's try another one. This one's a bit more complicated. It's like an espresso cup on a pair of jeans. Let's go. So, um, uh, enhancements in the near future include support of something called SIM instructions, which is going to dramatically speed this up.

Okay, this is actually very impressive. It's correctly identified that it's an espresso, that there's a coffee mug, um, and that it's sitting on a pair of jeans.

Okay, let's try another. Okay, what it's, it's a Porsche convertible. Um, I probably should have used a Lambo because this is crypto, but let's go anyway. And this is, you know, a difficult image to classify because of all the, you know, the reflections and the trees and things like that. Let's see how it does. Chugga chugga.

Okay, um, it's classified this as a sports car, which is correct. Um, it's said that it's got some wheels, and pretty incredibly, it's identified that this is a convertible.

So where, where are we going with this? So I'm going to be giving a, a, you know, succession of demos. Um, there'll be accompanying uh, source code on on GitHub, um, and we're going to be showing more powerful AIs. We're going to be showing optimizations that enable AIs to to run faster. Um, in the future, um, probably within about one or two months, uh, the Internet Computer execution environment that runs smart contracts will move from a 32-bit WASM environment to a 64-bit WASM environment. That's very important because the 32-bit WASM environment limits a smart contract to 4 GB of main memory, and that limits the number of parameters, the number of neuron weights that you you can fit in, and, you know, limits the the power of the AIs that you can run. But very soon, we're moving to a 64-bit environment, and probably the memory limit will be raised to something like 32 gig over time. And our objective is to take people all the way through to running a, a pretty powerful large language model on the Internet Computer. So very, very exciting things happening.

Um, I'm incredibly proud to be giving this demo because, obviously, behind the scenes, um, there's enormous numbers of people who work on the Internet Computer to to make all this kind of stuff possible. For example, um, those computations that you saw actually span multiple blocks, so that's only possible because the Internet Computer has something called deterministic time slicing.

The Internet Computer is a very sophisticated blockchain. It's the only third-generation blockchain in existence, and, um, so, you know, hat tip to everyone that works on it, and thank you, um, for, you know, uh, watching this demo. I look forward to giving you more.

Thanks. See you.