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

Release/v1.8.0 #292

Merged
merged 51 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
40f8aa0
feat: update imports and configurations for bittensor core modules to…
mo0haned Dec 31, 2024
30df2b8
feat: update version numbers and dependencies; add wandb to .gitignore
mo0haned Jan 6, 2025
26cf2c4
refactor: update prometheus logging and remove deprecated serve_prome…
mo0haned Jan 6, 2025
e8636dc
Merge remote-tracking branch 'origin/main' into bittensor-version-update
mo0haned Jan 6, 2025
0e82b23
refactor: fix an issue with a comment
mo0haned Jan 6, 2025
8b3d7ca
refactor: update extrinsic prometheus handling in validator.py
mo0haned Jan 6, 2025
1aa0309
refactor: simplify GPU handling and fix parameter passing in RegisterAPI
mo0haned Jan 6, 2025
383741f
Merge pull request #241 from neuralinternet/main
nauttiilus Jan 13, 2025
51ff26e
feat(support new dual key feature): support key_type in the exchange …
thomas-chu123 Dec 20, 2024
81f6e6f
fix(register-api): change the default setting for the exchange key
thomas-chu123 Dec 24, 2024
3626cd5
fix(register_api.py): remove the no ssh key checking
thomas-chu123 Jan 7, 2025
db60c59
feat: pre-commit whitespace removal and conventional commit checker (…
rocky2015aaa Jan 15, 2025
71f98b8
feat: only whitelisted ips can access to register api.
EduardoNicoleit Jan 16, 2025
45c71b2
feat(register_api): add query miner version
thomas-chu123 Dec 24, 2024
e9ca277
feat: refactor certificate generation script to use temporary extensi…
mo0haned Jan 16, 2025
07b5bf4
Merge pull request #252 from neuralinternet/ssl-cert-script-update
Gorossy Jan 16, 2025
8a9bdec
chore: ignore new register-api directory
donjmilligan Jan 16, 2025
b625655
update logs for cr3
mo0haned Jan 20, 2025
e65ae0e
Merge pull request #254 from neuralinternet/feature/CSN-428-Git-Ignor…
mo0haned Jan 21, 2025
0fe1a14
Merge pull request #243 from thomas-chu123/feature/CD-1513-ssh-key-en…
mo0haned Jan 21, 2025
6272056
Merge pull request #247 from neuralinternet/feature/CSN-319-Test-pre-…
mo0haned Jan 21, 2025
407c508
Merge pull request #248 from EduardoNicoleit/feature/CSN-258-restrict…
mo0haned Jan 21, 2025
9204d98
Merge pull request #250 from thomas-chu123/feature/CSN-409-api-detect…
mo0haned Jan 21, 2025
e1cd033
Merge branch 'dev' into feature/CSN-399-consensus-scoring-mechanism-w…
nauttiilus Jan 21, 2025
767eb72
Merge pull request #259 from neuralinternet/feature/CSN-399-consensus…
nauttiilus Jan 21, 2025
e834036
Merge branch 'dev' into bittensor-version-update
nauttiilus Jan 21, 2025
bfa7265
fix: remove duplicate variable definitions
nauttiilus Jan 21, 2025
b288c43
Merge pull request #251 from neuralinternet/bittensor-version-update
nauttiilus Jan 22, 2025
44d0372
chore: add torch version 2.5.1 to requirements
mo0haned Jan 22, 2025
47d2fe2
fix: fix the response from the miner by adding middleware_cls and enh…
mo0haned Jan 23, 2025
1557605
Merge pull request #263 from neuralinternet/allocate_hotkey_issue_fix
nauttiilus Jan 27, 2025
68505c8
Merge pull request #264 from neuralinternet/main
nauttiilus Jan 27, 2025
7bee799
chore: update wandb version to 0.19.4 in requirements
mo0haned Jan 28, 2025
a45453b
feat: add testing parameter to container allocation and run functions
mo0haned Jan 28, 2025
48fe464
Merge pull request #266 from neuralinternet/wandb-version-change
nauttiilus Jan 29, 2025
61aad27
feat: include miner version in container info and allocation response
mo0haned Jan 30, 2025
0887a82
Merge branch 'release/v1.8.0' into release/v1.7.5_perf
nauttiilus Jan 30, 2025
ddf4bb9
Merge pull request #276 from neuralinternet/release/v1.7.5_perf
nauttiilus Jan 30, 2025
af73a26
1 - overwrite serve_extrinsic to use __version_as_int_ instead of bit…
mo0haned Jan 31, 2025
4714054
fix: update config reference to use instance method instead of class …
mo0haned Jan 31, 2025
dfebbb0
Merge pull request #275 from neuralinternet/return-the-miner-version-…
thomas-chu123 Feb 3, 2025
7030035
fix: update type hints for function parameters and class attributes i…
mo0haned Feb 3, 2025
cc2ed26
Update neurons/miner_checker.py
mo0haned Feb 3, 2025
fa26914
Update neurons/Miner/container.py
mo0haned Feb 3, 2025
9f37730
Merge pull request #279 from neuralinternet/CSN-469-SSH-Key-quick-fix
thomas-chu123 Feb 3, 2025
1df75b2
fix: update type hint for certificate parameter in custom_serve_extri…
mo0haned Feb 3, 2025
5f461b9
Merge pull request #280 from neuralinternet/CD-1767-miner-version-issue
mo0haned Feb 3, 2025
2669f7a
fix(validator.py): change the validator version and miner staking limit
thomas-chu123 Feb 4, 2025
2fc46b1
feat: add testing flag to device requirements in Validator class
mo0haned Feb 4, 2025
9bd25c1
Merge pull request #289 from thomas-chu123/hotfix/change-the-validato…
mo0haned Feb 4, 2025
b5739df
Merge pull request #290 from neuralinternet/csn-582-POG-fix-on-the-vali
thomas-chu123 Feb 4, 2025
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ target/
profile_default/
ipython_config.py

# wandb
wandb/

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
Expand Down Expand Up @@ -253,3 +256,6 @@ cert/

# wandb
wandb/

# neural internet register api
neurons/register-api/
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.20.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-angular']
23 changes: 15 additions & 8 deletions cert/gen_ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ echo "2.2 Use the server private key to generate a certificate generation reques
openssl req -new -key server.key -out server.req -sha256 -subj "/C=US/ST=NY/CN=server.neuralinternet.ai/O=NI"

echo "2.3 Use the certificate generation request and the CA cert to generate the server cert."
openssl x509 -req -in server.req -CA ca.cer -CAkey ca.key -CAcreateserial -set_serial 100 -days "$ca_cert_expire_days" -outform PEM -passin pass:"$pem_password" -out server.cer -sha256 -extensions v3_req -extfile <(
cat << EOF
# Create a temporary extensions file
cat << EOF > extfile.cnf
[ v3_req ]
subjectAltName = @alt_names

Expand All @@ -35,13 +35,16 @@ IP.1 = 127.0.0.1
IP.2 = 0.0.0.0
IP.3 = "$local_ip"
EOF
)

openssl x509 -req -in server.req -CA ca.cer -CAkey ca.key -CAcreateserial -set_serial 100 -days "$ca_cert_expire_days" -outform PEM -passin pass:"$pem_password" -out server.cer -sha256 -extensions v3_req -extfile extfile.cnf

# Remove the temporary extensions file
rm extfile.cnf

echo "2.4 Convert the cer to PEM CRT format"
openssl x509 -inform PEM -in server.cer -out server.crt

echo "2.5 Clean up now that the cert has been created, we no longer need the request"
echo "2.5 Clean up - now that the cert has been created, we no longer need the request"
rm server.req

#for frontend server
Expand All @@ -52,8 +55,8 @@ echo "3.2 Use the client private key to generate a certificate generation reques
openssl req -new -key client.key -out client.req -subj "/C=US/ST=NY/CN=client.neuralinternet.ai/O=NI"

echo "3.3 Use the certificate generation request and the CA cert to generate the client cert."
openssl x509 -req -in client.req -CA ca.cer -CAkey ca.key -CAcreateserial -set_serial 101 -days "$ca_cert_expire_days" -outform PEM -out client.cer -passin pass:"$pem_password" -extensions v3_req -extfile <(
cat << EOF
# Create a temporary extensions file
cat << EOF > extfile.cnf
[ v3_req ]
subjectAltName = @alt_names

Expand All @@ -62,13 +65,17 @@ IP.1 = 127.0.0.1
IP.2 = 0.0.0.0
IP.3 = "$local_ip"
EOF
)

openssl x509 -req -in client.req -CA ca.cer -CAkey ca.key -CAcreateserial -set_serial 101 -days "$ca_cert_expire_days" -outform PEM -out client.cer -passin pass:"$pem_password" -extensions v3_req -extfile extfile.cnf

# Remove the temporary extensions file
rm extfile.cnf

echo "3.4 Convert the client certificate and private key to pkcs#12 format for use by browsers."
openssl pkcs12 -export -inkey client.key -in client.cer -out client.p12 -passout pass:"$pem_password"

echo "3.5. Convert the cer to PEM CRT format"
openssl x509 -inform PEM -in client.cer -out client.crt

echo "3.6. Clean up now that the cert has been created, we no longer need the request."
echo "3.6. Clean up - now that the cert has been created, we no longer need the request."
rm client.req
1 change: 1 addition & 0 deletions commitlint-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
6 changes: 3 additions & 3 deletions compute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
import string

# Define the version of the template module.
__version__ = "1.7.5"
__minimal_miner_version__ = "1.6.0"
__minimal_validator_version__ = "1.7.5"
__version__ = "1.8.0"
__minimal_miner_version__ = "1.8.0"
__minimal_validator_version__ = "1.8.0"

version_split = __version__.split(".")
__version_as_int__ = (100 * int(version_split[0])) + (10 * int(version_split[1])) + (1 * int(version_split[2]))
Expand Down
Loading