LogoLogo
Developer Docs
Developer Docs
  • Platform Architecture
    • πŸ’ Introduction
  • πŸ’»Application Layer
    • πŸ™‹β€β™€οΈAlith - AI Agent Framework
    • 🏦DeFAI: AI-Driven DeFi
    • πŸ›’DAT Marketplace
    • πŸš€Agent Launchpad
  • πŸ›‘οΈTrust & Execution Layer
    • Consensus Protocol
    • Settlement Layer
    • Execution Layer
    • Data Availability Layer
  • πŸ–‡οΈExetention Layer
  • Data Anchoring Token (DAT)
    • 🧠Introduction
    • πŸ”DAT Specification
    • πŸ’ŽValue Semantics
    • πŸ“DAT Lifecycle Example
  • Quorum-based BFT Consensus
    • πŸ’ŽIntroduction
    • πŸ› οΈiDAO-Quorum Interaction
    • πŸ“Quorum-Based BFT Protocol
    • 🫡Slashing & Challenger System
    • πŸŒ€Quorum Rotation & Benefit
  • Verified Computing Framework
    • πŸ”·Overview
  • πŸ—οΈVerified Computing Architecture
  • Contract & Execution Flow
  • LAZAI Workflow & Runtime
    • 🧩E2E Process
    • βš™οΈPOV Data Structure
    • πŸ”΅AI Execution Mechanism
  • What's More?
    • πŸ”Data Protection
  • πŸ›£οΈRoadmap
  • πŸ†ŽGlossary
  • ⁉️FAQs
Powered by GitBook
On this page
  • AI Node (AI Execution Extension)
  • LazVM
  • Settlement Layer
  • Quorum-based BFT Consensus Protocol & iDAO
Export as PDF
  1. LAZAI Workflow & Runtime

AI Execution Mechanism

AI Node (AI Execution Extension)

PreviousPOV Data StructureNextData Protection

Last updated 1 month ago

AI Node (AI Execution Extension)

The AI node mainly includes an EVM-compatible LazVM for AI computing and gas settlement, and its main process is as follows:

LazVM

  • EVM-Compatible: Ensures compatibility with existing Ethereum Virtual Machine tools and smart contracts.

  • AI Computing: Specialized execution environment for AI workloads.

  • Gas Settlement: Integrated gas mechanism to track and settle computational costs.

AI & Proof Precompile

  • Computation Orchestration: Coordinates between LazVM and GPU Coprocessor including model loaders, tokenizers, embedders, tensor kernels, attention kernels and SIMD, etc.

  • Proof Verification: Validates computation proofs returned from GPU Coprocessor including proof kernels. Besides, we will reserve op and zk proof interfaces to support multiple op and zk systems: e.g., STARKs, PLONK or any component from zkMIPS.

GPU Coprocessor

  • Accelerated Computing: Dedicated hardware acceleration for AI computations.

  • Proof Generation: Creates cryptographic proofs of correct computation execution.

  • Resource Monitoring: Tracks computational resources used during inference.

The Execution Layer is designed to support verifiable AI computation, inference optimization, and seamless AI asset deployment. This layer ensures that AI agents and models operate efficiently and transparently within LazAI’s decentralized ecosystem.

By implementing trustless AI execution mechanisms, the Execution Layer ensures transparency, security, and scalability for AI applications in Web3.

Settlement Layer

The Settlement Layer transforms AI-related data, models, and agents into tokenized assets, ensuring secure, traceable, and programmable ownership.

GasAI=Ξ±β‹…FLOPs+Ξ²β‹…Mempeak+Ξ³

Where:

  • Ξ± = FLOPs rate coefficient (adjustable via governance).

  • Ξ² = Memory peak rate coefficient (adjustable via governance).

  • Ξ³ = Base gas cost for AI operations including data store and computing resources.

  • FLOPs = Floating Point Operations (computational workload metric).

  • Mempeak = Peak memory usage during computation.

In addition, here we refer to EIP1559 to dynamically adjust the gas price, which includes a basic fixed fee and a part based on market conditions.

Quorum-based BFT Consensus Protocol & iDAO

LazAI blockchain leverages a Quorum-based Byzantine Fault Tolerance (BFT) consensus mechanism, distributing data governance and storage across multiple decentralized Quorum organizations to ensure both reliability and transparency.

  • Each Quorum operates as an iDAO, functioning similarly to a traditional data center but without the need to store data directly on-chain, significantly reducing on-chain storage costs.

  • These iDAO organizations reach consensus to validate and ensure the trustworthiness of off-chain data, enabling its rapid and efficient delivery to both on-chain and off-chain agents, while maintaining high availability and low latency.

The main responsibilities of iDAO include:

  1. Providing Trustworthy AI Data Sources or AI Flow Offering reliable data sources or AI workflows to other individuals or organizations, ensuring high-quality and aligned data.

  2. Off-Chain Dataset Conducting off-chain dataset, providing AI Agent services to perform more efficient AI operations.

  3. Decentralized Consensus and Data Governance iDAO participates in the LazChain consensus in the form of a Quorum. Through the decentralization of multiple Quorum organizations, it ensures the reliability and transparency of data governance and storage. Each Quorum acts as an independent iDAO, similar to a traditional data center, but without storing data directly on-chain, effectively reducing on-chain storage costs. iDAO organizations achieve consensus to verify the trustworthiness of off-chain data, ensuring that data is efficiently and quickly available to both on-chain and off-chain agents while ensuring high availability and low latency.

πŸ”΅