Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZKL upgrade to v18.1.5 #53

Open
wants to merge 2 commits into
base: testnet
Choose a base branch
from
Open
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: 4 additions & 5 deletions docs/command_line_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The below arguments are specific to miner software and have no effect on validat

| Argument | Required | Default | Accepted Values | Description |
| --------------------- | :------: | ------- | --------------- | ------------------------------------------------------------ |
| `--disable-blacklist` | No | `False` | `True`, `False` | Disables request filtering and allows all incoming requests. |
| `--disable-blacklist` | No | `False` | `True`, `False` | Disables request filtering and allows all incoming requests. |

### Validator specific arguments

Expand Down Expand Up @@ -65,8 +65,8 @@ Bittensor subtensor configuration options.

| Argument | Required | Default | Accepted Values | Description |
| ---------------------------- | :------: | ------------------ | ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| `--subtensor.network` | No | `finney` | `finney`, `test`, `archive`, `local` | The subtensor network to connect to. Overrides `--subtensor.chain_endpoint` with a default node from the selected network. |
| `--subtensor.chain_endpoint` | No | Depends on network | String | The specific blockchain endpoint to connect to. Overrides the network default endpoint if set. |
| `--subtensor.network` | No | `finney` | `finney`, `test`, `archive`, `local` | The subtensor network to connect to. Overrides `--subtensor.chain_endpoint` with a default node from the selected network. |
| `--subtensor.chain_endpoint` | No | Depends on network | String | The specific blockchain endpoint to connect to. Overrides the network default endpoint if set. |
| `--subtensor._mock` | No | `False` | `True`, `False` | If true, uses a mocked connection to the chain for testing purposes. |

### Axon
Expand All @@ -81,7 +81,6 @@ Bittensor Axon configuration options.
| `--axon.ip` | No | `[::]` | String | The local IP this axon binds to. |
| `--axon.external_port` | No | None | Integer | The public port this axon broadcasts to the network. |
| `--axon.external_ip` | No | None | String | The external IP this axon broadcasts to the network. |
| `--axon.max_workers` | No | 10 | Integer | The maximum number of connection handler threads working simultaneously on this endpoint. |

### Logging

Expand All @@ -93,5 +92,5 @@ Bittensor logging configuration options.
| ----------------------- | :------: | -------------------- | --------------- | ------------------------------------------ |
| `--logging.debug` | No | `False` | `True`, `False` | Turn on bittensor debugging information. |
| `--logging.trace` | No | `False` | `True`, `False` | Turn on bittensor trace level information. |
| `--logging.record_log` | No | `False` | `True`, `False` | Turns on logging to file. |
| `--logging.record_log` | No | `False` | `True`, `False` | Turns on logging to file. |
| `--logging.logging_dir` | No | `~/.bittensor/logs/` | String | Logging default root directory. |
4 changes: 2 additions & 2 deletions neurons/cli_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def init_config(role: Optional[str] = None):
)
config.disable_wandb = True
config.verbose = config.verbose if config.verbose is None else True
config.max_workers = config.max_workers or 1

config.full_path = os.path.expanduser("~/.bittensor/omron") # type: ignore
config.full_path_score = os.path.join(config.full_path, "scores")
Expand Down Expand Up @@ -176,7 +175,7 @@ def _miner_config():

parser.add_argument(
"--disable-blacklist",
default=False,
default=None,
action="store_true",
help="Disables request filtering and allows all incoming requests.",
)
Expand Down Expand Up @@ -319,3 +318,4 @@ def _validator_config():
config.external_api_workers = config.external_api_workers or 1
config.external_api_port = config.external_api_port or 8000
config.do_not_verify_external_signatures = True
config.disable_statistic_logging = True
38 changes: 18 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ description = ""
readme = "README.md"
requires-python = "==3.12.*"
dependencies = [
"attrs==24.3.0",
"bittensor==8.5.2",
"ezkl==16.2.3",
"fastapi==0.110.3",
"jsonrpcserver>=5.0.9",
"numpy==2.0.2",
"packaging==24.2",
"prometheus_client==0.21.1",
"psutil==6.1.1",
"pydantic==2.10.6",
"pyopenssl>=25.0.0",
"requests==2.32.3",
"rich==13.8.1",
"torch==2.4.1",
"uvicorn==0.34.0",
"wandb==0.18.7",
"attrs==24.3.0",
"bittensor==8.5.2",
"ezkl==18.1.5",
"fastapi==0.110.3",
"jsonrpcserver>=5.0.9",
"numpy==2.0.2",
"packaging==24.2",
"prometheus_client==0.21.1",
"psutil==6.1.1",
"pydantic==2.10.6",
"pyopenssl>=25.0.0",
"requests==2.32.3",
"rich==13.8.1",
"torch==2.4.1",
"uvicorn==0.34.0",
"wandb==0.18.7",
]

[tool.setuptools]
packages = ["omron"]
package-dir = { "omron" = "neurons" }

[tool.setuptools.dynamic]
version = {attr = "omron.__version__"}
version = { attr = "omron.__version__" }

[tool.uv.sources]
torch = { index = "pytorch" }
Expand All @@ -43,6 +43,4 @@ url = "https://download.pytorch.org/whl/cpu"
explicit = true

[dependency-groups]
dev = [
"black>=24.10.0",
]
dev = ["black>=24.10.0"]
Loading