bittensor
bittensor copied to clipboard
Dendrite Text Generate
Adds text generation as a function on the dendrite:
The below code prompts the best miner on the network.
import bittensor wallet = bittensor.wallet() graph = bittensor.metagraph().sync() print ( bittensor.dendrite( wallet = wallet ).generate( endpoints = graph.endpoints[graph.incentive.sort()[1][-1]], prompt = "The quick brown fox jumped over the lazy dog", num_to_generate = 20 ) )