Skip to main content

bittensor

Project description

Bittensor

Pushing Image to Docker Discord Chat PyPI version License: MIT

Internet-scale Neural Networks

DiscordDocsNetworkResearchCode

Bittensor is a decentralized market that enables individuals to monetize intelligence production from any computer anywhere in the world. Intelligence production is validated by the other peers in the network and rewarded through token inflation. Consumers stake this currency to gain access to the produced knowledge. Bittensor is collectively-run, open-source, and open-access. For more info, read our paper.

Install

$ pip3 install bittensor

Client

Open In Colab

import bittensor
import torch
wallet = bittensor.wallet().create()
graph = bittensor.metagraph().sync()
representations, _ = bittensor.dendrite( wallet ).forward_text (
    endpoints = graph.endpoints,
    inputs = "The quick brown fox jumped over the lazy dog"
)
representations = # Tensor with shape (N, 9, 512)

Server

Open In Colab

import bittensor
import torch
from transformers import BertModel, BertConfig

model = BertModel(BertConfig())

def forward ( pubkey, inputs_x, modality ):
  return model( inputs_x ).narrow(2, 0, bittensor.__network_dim__)

wallet = bittensor.wallet().create()
axon = bittensor.axon (
    wallet = wallet,
    forward = forward,
).start().subscribe()

...

License

The MIT License (MIT) Copyright © 2021 Yuma Rao

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Acknowledgments

learning-at-home/hivemind

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bittensor-1.2.2.tar.gz (89.5 kB view details)

Uploaded Source

Built Distribution

bittensor-1.2.2-py3-none-any.whl (138.7 kB view details)

Uploaded Python 3

File details

Details for the file bittensor-1.2.2.tar.gz.

File metadata

  • Download URL: bittensor-1.2.2.tar.gz
  • Upload date:
  • Size: 89.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.10

File hashes

Hashes for bittensor-1.2.2.tar.gz
Algorithm Hash digest
SHA256 6d223e256c7b84cbc0c21f1568cdbd0bcebdea2765e52203e0a689e5a31aea3d
MD5 11f3291fd575d5d3f85149aee1231912
BLAKE2b-256 d8a7f88a420acfd2709d1711fcef7500f0ee1dda9377d92373c8c1c8ea802a1d

See more details on using hashes here.

File details

Details for the file bittensor-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: bittensor-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 138.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.10

File hashes

Hashes for bittensor-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aea39d83d94292a729c71c7474285d381bd5c38646d3b5d911489fd3a58b0342
MD5 d6455436ffed579de1d7de4f41d76cfc
BLAKE2b-256 4fbb37f33f027d8ffa884ad69f6f433a6d5e1374b58ca9779777c1dcc93c13d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page