Skip to content

Commit

Permalink
Merge pull request #91 from opentensor/staging
Browse files Browse the repository at this point in the history
2.1.6 Release
  • Loading branch information
p-ferreira authored Dec 13, 2023
2 parents 341ddcb + 47b9824 commit 2e8b1b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 0 additions & 3 deletions prompting/baseminer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ def get_config() -> "bt.Config":
# Using command-line arguments allows users to customize various miner settings.
parser = argparse.ArgumentParser()

parser.add_argument(
"--axon.port", type=int, default=8098, help="Port to run the axon on."
)
# Subtensor network to connect to
parser.add_argument(
"--subtensor.network",
Expand Down
6 changes: 5 additions & 1 deletion prompting/baseminer/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ def __init__(self, config=None, axon=None, wallet=None, subtensor=None):
bt.logging.info(f"Running miner on uid: {self.my_subnet_uid}")

# The axon handles request processing, allowing validators to send this process requests.
self.axon = axon or bt.axon(wallet=self.wallet, port=self.config.axon.port)
self.axon = axon or bt.axon(
wallet=self.wallet,
port=self.config.axon.port,
external_ip=self.config.axon.external_ip,
)
# Attach determiners which functions are called when servicing a request.
bt.logging.info(f"Attaching forward function to axon.")
self.axon.attach(
Expand Down
2 changes: 1 addition & 1 deletion prompting/validators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from . import event
from . import dataset

__version__ = "2.1.5"
__version__ = "2.1.6"
version_split = __version__.split(".")
__spec_version__ = (
(1000 * int(version_split[0]))
Expand Down
6 changes: 3 additions & 3 deletions prompting/validators/reward/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def name(self) -> str:

def __init__(
self,
boundary: float = 40,
boundary: float = 20,
n_min: int = 5,
n_max: int = 10,
word_limit: int = 2000,
A: float = 1.3,
A: float = 1.25,
preprocess: str = "[^(\\w|\\s)]",
partial_ratio_boundary: float = 95,
partial_ratio_boundary: float = 90,
half_life: int = 20000,
support: float = 0.01,
error: float = 0.001,
Expand Down

0 comments on commit 2e8b1b8

Please sign in to comment.