# Miner/Validator Resources

## Miners

Miners contribute to Subnet 2 by running inferences through zero-knowledge circuits. They receive requests from validators containing model IDs and input parameters, execute the model through a pre-generated circuit, and return outputs with cryptographic proofs.

Zero-knowledge proof generation is CPU-intensive, providing an opportunity for non-GPU miners to participate competitively.

### Hardware Requirements

#### Minimum

| Component      | Requirement   |
| -------------- | ------------- |
| CPU            | 8 core 3.2GHz |
| RAM            | 32GB          |
| Network Up     | 400Mbps       |
| Network Down   | 400Mbps       |
| Storage        | 1TB           |
| Storage Medium | NVMe SSD      |

#### Recommended

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

| Component      | Recommendation |
| -------------- | -------------- |
| CPU            | 8 core 3.6GHz+ |
| RAM            | 64GB+          |
| Network Up     | 1Gbps          |
| Network Down   | 1Gbps          |
| Storage        | 2TB            |
| Storage Medium | NVMe SSD       |

## Validators

Validators query miners, verify the proofs they return, and score them based on performance. Validators can accept external requests and route them through the network, or generate synthetic queries for benchmarking.

### Hardware Requirements

#### Minimum

| Component    | Requirement   |
| ------------ | ------------- |
| CPU          | 8 core 3.2GHz |
| RAM          | 16GB          |
| Network Up   | 400Mbps       |
| Network Down | 400Mbps       |
| Storage      | 1TB           |

#### Recommended

| Component      | Recommendation |
| -------------- | -------------- |
| CPU            | 8 core 3.4GHz  |
| RAM            | 32GB           |
| Network Up     | 1+Gbps         |
| Network Down   | 1+Gbps         |
| Storage        | 2+TB           |
| Storage Medium | SSD            |

## Setup

For installation and setup instructions, see the GitHub repository:

<https://github.com/inference-labs-inc/subnet-2>

### Quick Install

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

### Register on Subnet 2

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

## Scoring

Miners are scored based on:

| Metric          | Description                       |
| --------------- | --------------------------------- |
| Proof Validity  | Invalid proofs cause score decay  |
| Response Time   | Faster provers earn higher scores |
| Proof Size      | Smaller proofs are more efficient |
| Output Accuracy | Compared against baseline models  |

Valid proofs cause score recovery. The rate of recovery and maximum achievable score adjust based on a combined performance penalty weighting response time, proof size, and accuracy.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sn2-docs.inferencelabs.com/miner-validator-resources.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
