The more futuristic concept of AI for smart contracts, which eventually can be used to build and run AI DApps and decentralized autonomous organizations (DAOs) in such a way that they can adapt and evolve to complete tasks with very limited human intervention is also very interesting.
A project called Cortex claims to be the first blockchain to support on-chain AI. They've managed to deploy a couple of AI models on their testnet using techniques such as quantization and compression. Quantization is a concept in machine learning that combines lightweight inference with high performance, which allows AI models to be executed with high levels of accuracy and low memory costs:

The inference process works as follows:

Compression reduces the size and data usage of models. The first model, a Cat or Dog classifier, was originally over 500 MB in...