bittensor icon indicating copy to clipboard operation
bittensor copied to clipboard

Dendrite Text Generate

Open unconst opened this issue 3 years ago • 0 comments

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 ) )

unconst avatar Oct 10 '22 23:10 unconst