Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ Example of running a Llama3 miner:
pm2 start neurons/miners/huggingface/miner.py --interpreter python3 --name llama3_miner -- --netuid 1 --subtensor.network finney --wallet.name my_wallet --wallet.hotkey m1 --neuron.model_id casperhansen/llama-3-70b-instruct-awq --neuron.load_in_4bit True --axon.port 21988 --logging.debug
```

## Running with autoupdate

You can run the validator in auto-update mode by using pm2 along with the `run.sh` bash script. This command will initiate two pm2 processes: one for auto-update monitoring, named **s1_validator_update**, and another for running the validator itself, named **s1_validator_main_process**.
```bash
pm2 start run.sh --name s1_validator_autoupdate -- --wallet.name <your-wallet-name> --wallet.hotkey <your-wallet-hot-key>
```

> Note: this is not an end solution, major releases or changes in requirements will still require you to manually restart the processes. Regularly monitor the health of your validator to ensure optimal performance.

# Testnet
We highly recommend that you run your miners on testnet before deploying on main. This is give you an opportunity to debug your systems, and ensure that you will not lose valuable immunity time. The SN1 testnet is **netuid 61**.

Expand Down
2 changes: 1 addition & 1 deletion prompting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# DEALINGS IN THE SOFTWARE.

# Define the version of the template module.
__version__ = "2.4.0"
__version__ = "2.4.2"
version_split = __version__.split(".")
__spec_version__ = (
(10000 * int(version_split[0]))
Expand Down
6 changes: 3 additions & 3 deletions prompting/base/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ def set_weights(self):
raw_weights = torch.nn.functional.normalize(self.scores, p=1, dim=0)

bt.logging.debug("raw_weights", raw_weights)
bt.logging.debug("raw_weight_uids", self.metagraph.uids.to("cpu"))
bt.logging.debug("raw_weight_uids", self.metagraph.uids)
# Process the raw weights to final_weights via subtensor limitations.
(
processed_weight_uids,
processed_weights,
) = bt.utils.weight_utils.process_weights_for_netuid(
uids=self.metagraph.uids.to("cpu"),
weights=raw_weights.to("cpu"),
uids=self.metagraph.uids,
weights=raw_weights.to("cpu").numpy(),
netuid=self.config.netuid,
subtensor=self.subtensor,
metagraph=self.metagraph,
Expand Down
2 changes: 1 addition & 1 deletion prompting/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def add_validator_args(cls, parser):
"--neuron.timeout",
type=float,
help="The timeout for each forward call in seconds.",
default=10,
default=17,
)

parser.add_argument(
Expand Down