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 p2p-market that rewards the production of machine intelligence with a digital token called Tao. Peers in the system train models by mining knowledge from unsupervised datasets to share with others. Consumers access the network and distill what they learn into production models. The network is collectively-run, open-source, open-access, decentralized, and incentivized to produce state-of-the-art intelligence. For more info, read our paper.

Install

$ pip3 install bittensor

Client

import bittensor
import torch
graph = bittensor.metagraph().load().sync().save()
text = torch.tensor([bittensor.tokenizer().encode( "The quick brown fox jumped over the lazy dog" )], dtype=torch.int64)
representations, _ = bittensor.dendrite().forward_text(
    endpoints = graph.endpoints,
    inputs = [text for _ in graph.endpoints]
)
representations = # List[ (1, 9, 512) ... ]

Server

import bittensor
import torch
from transformers import BertModel, BertConfig

model = BertModel(BertConfig())

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

axon = bittensor.axon(
    forward_callback = 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

This version

1.1.3

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.1.3.tar.gz (87.1 kB view details)

Uploaded Source

Built Distribution

bittensor-1.1.3-py3-none-any.whl (137.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bittensor-1.1.3.tar.gz
  • Upload date:
  • Size: 87.1 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.1.3.tar.gz
Algorithm Hash digest
SHA256 8c9b9aca0caaad8bc655bb021dfb251b983fc28d9818d08a477611bcfcb28a90
MD5 acb8b16d561f64a93287ce842d9bd847
BLAKE2b-256 c52f8c214aaf3337e50c004faa920eabb0e01093600f363be8275931f210ea73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bittensor-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 137.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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a7030ab31e42fbf6a4f9b5101b877fcd5b37e8be1a3e246358440d43ec4362d2
MD5 27c015400a61db5de9c0d8aceb7ad663
BLAKE2b-256 f7f5ee3368cd62a8e343072c5fa8cf16b37e5e54325a6fb103dcd5bb1128c0a5

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