AI Execution Mechanism
AI Node (AI Execution Extension)
Last updated
AI Node (AI Execution Extension)
Last updated
The AI node mainly includes an EVM-compatible LazVM for AI computing and gas settlement, and its main process is as follows:
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.
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.
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.
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.
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.
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.
Off-Chain Dataset Conducting off-chain dataset, providing AI Agent services to perform more efficient AI operations.
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.