Axonum
HomeBridgeExplorerFind Us
  • ☘️About Axonum
    • 🧠The Brain of Ethereum
    • 0️⃣ The Age of AI EVM
    • 1️⃣ Overview
    • 2️⃣ Workflow
    • 3️⃣ Fraud Proof Design
  • 📝Axonum Testnet
    • Differences From Ethereum
    • Networks and RPC Endpoints
    • Contract Addresses
    • AI Precompiles
  • 🦺Builders
    • Solidity Compatibility
    • Deploy on AI EVM
Powered by GitBook
On this page
  • Inference Precompile
  • Available models
  1. Axonum Testnet

AI Precompiles

A precompile is a special contract that is compiled into the EVM and is executed by the EVM itself. Precompiles are used to provide additional functionality to developers building on Axonum.

PreviousContract AddressesNextSolidity Compatibility

Last updated 1 year ago

Axonum has additional precompiles that are not present on Ethereum. These precompiles are designed to provide additional functionality to developers building on Axonum. The following precompiles are available on Axonum:

Inference Precompile

Address: 0xa1

The inference precompile is used to run machine learning models on Axonum.

  • Input:

    • model_address (bytes32): See

    • input_data (bytes): The input data for the model

    • output_size (uint256): The size of the output data in bytes

  • Output:

    • The output data from the model (bytes)

Available models

Model Address
Model Name
Prompt Template

0x0000000000000000000000000000000000000000000000000000000000000001

microsoft/Phi-3-mini-4k-instruct-gguf

<|user|>\n{PROMPT}<|end|>\n<|assistant|>

To use the inference precompile, check out how to .

📝
deploy on AI EVM
Available models