Skip to main content

Open Validators

Discord Chat PyPI version License: MIT


This repository contains Bittensor Validators designed by the OpenTensor Foundation team for the community. It offers several functionalities, such as:

  • Building and running Bittensor validators
  • Real-time analysis of validator performance integrated with wandb
  • Offline analysis of data generated from the network
  • Creation of datasets using network data for training miners

The main goal of this repository is to facilitate the interaction with the Bittensor network by providing a set of open-source validators to the community. The current validator implementation queries the network for responses and evaluations using carefully crafted prompts, that are later evaluated by a large foundation GPT-J reward model.

Additionally, the repository provides an analysis and data toolkit that allows users to analyze the data generated from the validator's interaction with the network. By default, the validator collects various data points, such as question responses, evaluations, rewards and scorings by UID, and model performance data. This data is then sent to wandb, making it publicly accessible to the community.

The toolkit also includes scripts to analyze and extract data from specific validator runs or multiple runs, simplifying the creation of valuable datasets for the community's miners.

To learn more about the Bittensor validation process, check out this documentation.

Usage

There are currently four main avenues for engaging with this repository:

  1. Validators:

    • Designed for TAO holders who aim to build or run validators developed by the foundation.
  2. [Real-time performance analysis with wandb integration](#Real-time performance analysis with wandb integration):

    • Allows users to analyze the performance of various validators runs in real-time using wandb.
  3. [Data analysis](#Data analysis)

    • Caters to individuals, researchers, and data scientists interested in analyzing the data generated from the validators' interaction with the Bittensor network.
  4. [Dataset creation](#Dataset creation)

    • Serves individuals, researchers, and developers who seek to create datasets for the community's miners.

Install

There are two ways to use OpenTensor validators:

  1. With pip:
$ pip3 install open-validators
  1. From source:
$ git clone https://github.com/opentensor/opentensor-validators.git
$ python3 -m pip install -e validators/
  1. From docker (TO BE CONFIRMED):
$ docker pull opentensor/opentensor-validators

You can test the installation by running the following command: Get the help from the validator.

$ python3 validator/neuron.py --help

Validators

Participation in Network Validation is available to TAO holders. The validation mechanism utilizes a dual proof-of-stake and proof-of-work system known as Yuma Consensus, which you can learn more about here. To start validating, you will need to have a Bittensor wallet with a sufficient amount of TAO tokens staked.

Once you have your wallet ready for validation, you can start the foundation validator by running the following command:

$ python3 validators/neuron.py --wallet.name <your-wallet-name> --wallet.hotkey <your-wallet-hot-key>

Real-time performance analysis with wandb integration

By default, the validator sends data to wandb, allowing users to analyze the performance of the validator in real-time. All the data sent to wandb is publicly available to the community at the following link.

You don't need to have a wandb account to access the data or to generate a new run, but bear in mind that data generated by anonymous users will be deleted after 7 days as default wandb policy.

Data Analysis

This repository provides a set of tools to analyze the data generated by the validators. The scripts and notebooks are located in the analysis folder.

Dataset creation

For the individuals who are eager to create datasets tailored specifically for the community's miners. With convenient scripts available in the scripts folder, you can effortlessly download data from specific or multiple runs of wandb, empowering you to curate comprehensive and valuable datasets that align with your mining objectives.

License

The MIT License (MIT) Copyright © 2023 Yuma Rao

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for test-openvalidators 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for test-openvalidators 0.1.0
File Size Uploaded
test-openvalidators-0.1.0.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for test-openvalidators 0.1.0
File Interpreter ABI Platform
test_openvalidators-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 62.4 kB

Release files / test-openvalidators-0.1.0.tar.gz

Download URL test-openvalidators-0.1.0.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
031a8b6623045b72296e8a98770df7dbc226343bf798a5f7864c852f5fbcddc6
BLAKE2b-256 checksum
How to use checksums
579e6bb6622d92e284eaad8b49d155935c429223474badf62301350cd9313735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release files / test_openvalidators-0.1.0-py3-none-any.whl

Download URL test_openvalidators-0.1.0-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
274a64b0525167b7472b9eb5e9d95a0c6c38265c7be1ac9f51e991c20c6ea7d3
BLAKE2b-256 checksum
How to use checksums
d43a2fbe8b1fd4e6d8e08aea65f9aed79dc7e056ab690a480d4640da80fbbe0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.16

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page