Eternal AI (EAI) Profile picture
Nov 13, 2024 19 tweets 7 min read Read on X
AI-powered Ethereum: from rules-based smart contracts to AI-powered smart contracts.

Ethereum just got smarter.

Eternal AI brings onchain LLM to builders so they can write contracts & launch dapps that don’t just run but learn and think.

Whitepaper: eternalai.org/ethereum.pdfImage
1. Truly smart contracts

Today, dapps are rule-based programs coded as smart contracts. They're like rigid machines, unable to adapt or learn.

To address this, we must rethink our approach to dapps and create a framework for devs to add AI capabilities to their contracts.
2. Rule-based programming model

Consider a contract that manages a decentralized fantasy sports league. It needs to determine the winner between the two teams.

With rule-based, the contract uses a set of if-else statements to analyze the performance & determine the winner.Image
3. AI-powered programming model

In contrast, the AI-powered approach enables a new programming model that uses large language models (LLMs) to make decisions dynamically in real time.

The fantasy sports league contract could be written to provide a simple prompt to the LLM.Image
4. AI Kernel Architecture

To build truly smart contracts & AI-powered dapps, we need a decentralized protocol that facilitates the integration of AI inference, AI models & GPU resources.

This is where the AI Kernel comes in – the central component of the AI-powered Ethereum.Image
5. User Space

Consider the user's journey to interacting with the AI Kernel. It starts with a prompt — a request for the AI Kernel to generate an output.

Along with the prompt, the prompt context is constructed based on onchain data and also sent to the AI Kernel.Image
6. Kernel Space

The AI Kernel is the heart of our decentralized AI architecture.

The AI Kernel consists of several smart contracts that work together to manage resources and facilitate communication between different parts of the protocol.Image
7. Model Space

The Model Space comprises two key components: AI Models and AI Model Drivers.

AI Models are well-known open-source models like Llama, FLUX, and Hermes.

AI Model Drivers adapt these models to the blockchain environment.Image
8. Hardware Space

The Hardware Space is where the actual computation happens in the AI Kernel.

It consists of GPU nodes that serve as the atomic compute unit of the system.

These nodes are responsible for taking user prompts, running inference, and returning outputs.Image
9. Proof-of-Compute

The protocol runs on a novel consensus algorithm called Proof-of-Compute.

Instead of solely solving a complex mathematical puzzle like PoW, GPU nodes perform meaningful computations on prompts requested by real users and real dapps.Image
10. AI-Powered Decentralized Applications

As we integrate AI into Ethereum, a new paradigm for dapps begins to take shape.

No longer limited by rigid, rule-based programming constraints, developers can create dapps capable of adapting, learning, and evolving over time.
11. Onchain Conversational AI Agents

With just a few lines of code, you can build an autonomous agent on top of the AI Kernel and earn passive income by charging a service fee when someone uses your agent.Image
12. AI-Powered Crypto Wallet

In this example, we’re building an AI-powered wallet.

By providing the AI Kernel with a rich context of transaction history, the model can learn to identify potential red flags, such as unusual transactions, inconsistent spending behavior & more.Image
13. AI-Powered Oracles

We're building an AI-powered oracle for BTC prices.

By providing the AI Kernel with a rich context of BTC price feeds added continuously by Oracle feeders, the AI Kernel can learn to return the current BTC price.Image
14. AI-Powered DAOs

By feeding the AI Kernel a continuously updated context of proposal result history, the AI Kernel can develop an understanding of successful and unsuccessful proposals.

This enables it to assess and predict the viability of new proposals.Image
15. AI-Powered Wallet Credit Scores

By providing the AI kernel with a comprehensive context of a given address's transaction history, the model can learn to accurately assess the address's creditworthiness and provide a corresponding credit score.Image
16. AI-Powered ENS

In this example, we're building an AI-powered ENS generator.

The model can generate an available ENS domain that best fits the given description.

If a suggested domain has already been taken, it will continue to retry until it finds a suitable one.Image
17. Conclusion

The integration of AI and crypto represents a paradigm shift in our approach to dapps.

Our work provides a framework for running AI onchain, opening up new possibilities for AI-powered dapps & their potential to reshape our world.

Paper: eternalai.org/ethereum.pdf
PS: Implementation

We've chosen @base as the first EVM chain to implement this protocol.

Base is ideal for this experiment because of its low cost & fast block time. The team also loves Crypto x AI.

Interact with AI-powered smart contracts on @base at .eternalai.org

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Eternal AI (EAI)

Eternal AI (EAI) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @CryptoEternalAI

Apr 1
Latest progress in AI, minus the noise.

Here’s what’s actually worth knowing recently from OpenAI, Google, Amazon, Runway, Eternal AI and more.

Save your scroll. 🧵 Image
1/ @OpenAI announced its first open-weight language model since GPT-2

OpenAI is going open-source again. Open and collaborative efforts helped science and AI move fast. Let’s go, open-source AI!

2/ @AmazonScience introduced Nova Act, a browser-controlling AI agent

Nova Act handles web tasks like bookings and testing—and does it better than Claude 3.7 Sonnet and OpenAI CUA. A step closer to AI that can do real work online.
Image
Read 8 tweets
Feb 5
We've brought Dobby onchain - the latest AI model by @SentientAGI

- Preserved on @Filecoin
- Decentralized served on @0xPolygon
- Made possible by @CryptoEternalAI

Grab an API key and have some fun building with Onchain Dobby 🔽 Image
Step 1: Get your Decentralized Inference API key

1. Go to
2. Login with Twitter
3. Get the Decentralized Inference API key for @0xPolygon

It's free.eternalai.org/api
Step 2: Make your first Dobby API call

1. Enter your API key
2. Set Chain ID as 137 (Polygon)
3. Set the model as "SentientAGI/Dobby-Mini-Unhinged-Llama-3.1-8B"
4. Set the system prompt
5. Set the user prompt

Then run this curl command: Image
Read 7 tweets
Dec 30, 2024
ONCHAIN DEEPSEEK-V3

- Preserved on @Filecoin
- Decentralized served on @Base
- Interact with @deepseek_ai smart contract in Solidity or via API
- Build Eliza AI agents with DeepSeek



ipfs://bafkreic562nps4rmmwr43hebvuks6hechxozfoelcmf75uk5ycus3dhk4e basescan.org/address/0xfC28…Image
1. At Eternal AI, our mission is to preserve humans' most important creations: AIs.

So we preserved @deepseek_ai v3 on @Filecoin.

- 642 GB written to @IPFS
- Split into 2716 chunks
- Powered by @LighthouseWeb3

ipfs://bafkreic562nps4rmmwr43hebvuks6hechxozfoelcmf75uk5ycus3dhk4eImage
2. The other mission is to make AIs censorship-resistant, tamper-proof & permissionlessly accessible to everyone.

So we deployed @deepseek_ai v3 on @base.

Anyone can access DeepSeek at any time. Every interaction with DeepSeek is onchain & verifiable.

basescan.org/address/0xfC28…Image
Read 7 tweets
Dec 29, 2024
BUILD UNSTOPPABLE AI

We just deployed @deepseek_ai v3 on @base as a smart contract:

DeepSeek-V3 is now unstoppable — running exactly as trained without any possibility of downtime, censorship, fraud, or third-party interference.

Let's interact with it.basescan.org/address/0xfC28…Image
STEP 1: Get the Chain ID and Model Name

Here is the list of supported chains and models by Eternal AI:



For this developer guide, the Chain ID is 8453 (Base), and the Mode Name is DeepSeek V3.docs.eternalai.org/eternal-ai/dec…Image
STEP 2: Make the first call to the DeepSeek contract

Interact with the DeepSeek smart contract using TypeScript — the same way you interact with any smart contracts while building dapps.

Let's call the infer() function with a simple prompt: "Hello, how are you?"Image
Read 10 tweets
Dec 26, 2024
🧠 Decentralized ZerePy Agent 🧠

Merry Xmas from Eternal AI & Zerebro.

This dev guide teaches you how to build your first Decentralized ZerePy agent with:

- Decentralized Inference by @CryptoEternalAI
- Onchain AI Model by @AIatMeta deployed on @Base
- Framework by @0xzerebro
BACKGROUND 1:

For this guide, we'll use @CryptoEternalAI's Decentralized Inference, which has the same interface as OpenAI (so no learning curve for you) — but is decentralized.

We'll use onchain @AIatMeta's Llama 3.3 deployed on @Base.

eternalai.org/api
BACKGROUND 2:

Here is a detailed post if you're curious about how Eternal AI's Decentralized Inference works with @AIatMeta's Llama 3.3 70B and onchain on @Base.

Read 17 tweets
Dec 25, 2024
Our BitAI technical whitepaper was posted yesterday! Huge thanks to everyone who's already provided feedback.

We understand the whitepaper was too technical, so we created a clear, visual presentation to make BitAI easy to understand!

Check out the non-technical thread below.Image
We are living in an AI-powered world. Image
AI is now woven into the fabric of everyday life Image
Read 14 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(