diff --git a/README.md b/README.md index f78fc33a1..75c85a466 100644 --- a/README.md +++ b/README.md @@ -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 --wallet.hotkey +``` + +> 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**. diff --git a/prompting/__init__.py b/prompting/__init__.py index 643f4f1ac..65aed54ea 100644 --- a/prompting/__init__.py +++ b/prompting/__init__.py @@ -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])) diff --git a/prompting/base/validator.py b/prompting/base/validator.py index 893bf2055..93240ad5b 100644 --- a/prompting/base/validator.py +++ b/prompting/base/validator.py @@ -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, diff --git a/prompting/utils/config.py b/prompting/utils/config.py index 4ffa0ddd4..a9382039c 100644 --- a/prompting/utils/config.py +++ b/prompting/utils/config.py @@ -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(