Code Monkey home page Code Monkey logo

sn2-omron's Introduction

Omron SN2 (๐œ, ฮฒ)

Discord Chat

Proof of Inference

Documentation โ€ข X โ€ข Inference Labs โ€ข Explorer โ€ข Dashboard

Omron represents a significant stride in enhancing the Bittensor network, aiming to create the world's largest peer-to-peer Verified Intelligence network, by building a Proof-of-Inference system for the Bittensor network. This initiative aligns with the Opentensor foundation's criteria for innovative subnet solutions. zk-ML allows AI models to be converted into a unique 'fingerprint,' a circuit that can be used to verify that a model's prediction was generated by a specific AI model, thereby providing what we term as Proof-of-Inference.

Miners and Validators Functionality

Incentive Mechanism and Reward Structure

Omron incentivizes miners and validators on Subnet 2 to contribute to the generation and validation of high-quality, secure, and efficient verified AI predictions using a specialized reward mechanism that aligns with the unique aspects of zero-knowledge machine learning (zk-ML) and decentralized AI. Currently Zero-knowledge proofs are generally more CPU computationally intensive and opens the opportunity for non-GPU miners to participate however the end goal is to further incentivize the development of proving systems optimized for GPU based operations. The incentives are based around Miners creating succinct and efficient models which can be circuitized with a zero-knowledge proving system.

The reward mechanism for Subnet 2 scores the initial AI predictions based on the cryptographic integrity and time to generate zk-proofs along with the outputs, rather than solely on end results. This approach reduces the computational burden on validators as zk-proofs confirm the source model and integrity of AI predictions efficiently.

Miners

  • Receive input data from validators on the subnet.
  • Generate predictions using custom, verifiable AI models that have been converted into zero knowledge circuits
  • Return the generated content to the requesting validator for validation and distribution.

Validators

  • Produce input data and distribute requests for verified inference throughout miners participating on the subnet
  • Confirm that miners are acting faithfully, by verifying the authenticity of the miner's returned zero knowledge proof
  • Score results from miners based on performance metrics such as proof size and response time

Quickstart

Run the below command to install Omron and it's dependencies.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/inference-labs-inc/omron-subnet/main/setup.sh)"

See full setup guide โ†’

Register on the SN

btcli subnet register --subtensor.network finney --netuid 2 --wallet.name {your_coldkey} --wallet.hotkey {your_hotkey}

Run the miner

Important

Ensure you are within the /neurons directory before using the commands below to start your miner

cd neurons

Within a virtual environment

pm2 start miner.py --name miner --interpreter ../omron-venv/bin/python --kill-timeout 3000 -- \
--netuid 2 \
--wallet.name {your_miner_key_name} \
--wallet.hotkey {your_miner_hotkey_name}

Outside of a virtual environment

pm2 start miner.py --name miner --interpreter python3 --kill-timeout 3000 -- \
  --netuid 2 \
  --wallet.name {your_miner_key_name} \
  --wallet.hotkey {your_miner_hotkey_name}

Run the validator

Important

Ensure you are within the /neurons directory before using the commands below to start your validator

cd neurons

Within a virtual environment

pm2 start validator.py --name validator --interpreter ../omron-venv/bin/python --kill-timeout 3000 -- \
--netuid 2 \
--wallet.name {validator_key_name} \
--wallet.hotkey {validator_hot_key_name}

Outside of a virtual environment

pm2 start validator.py --name validator --interpreter python3 --kill-timeout 3000 -- \
  --netuid 2 \
  --wallet.name {validator_key_name} \
  --wallet.hotkey {validator_hot_key_name}

Miner

Miners contribute to this subnet by providing compute to generate output from, and prove AI model inferences. Miners receive workloads from validators in the form of input data, perform verified inferences on those inputs and respond with output along with a zero knowledge proof of inference.

Hardware requirements

Minimum

Component Requirement
CPU 8 core 3.2GHz
RAM 32GB
Network Up 400Mbps
Network Down 400Mbps
Storage 100GB

Recommended

Note

Exceeding these requirements in terms of storage, network and CPU speed will most likely result in higher rewards due to performance incentivization.

Component Recommendation
CPU 8 core 3.6GHz
RAM 64GB
Network Up 1Gbps
Network Down 1Gbps
Storage 400GB
Storage Medium SSD

Validator

Validators are responsible for verifying model outputs as provided by miners, and updating that miner's score based on the verification results.

Hardware requirements

Minimum

Component Requirement
CPU 8 core 3.2GHz
RAM 16GB
Network Up 400Mbps
Network Down 400Mbps
Storage 100GB

Recommended

Component Recommendation
CPU 8 core 3.4GHz
RAM 32GB
Network Up 1Gbps
Network Down 1Gbps
Storage 300GB
Storage Medium SSD

sn2-omron's People

Contributors

alex-drocks avatar gagichce avatar hudsongraeme avatar sudo-ron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.