prompting.validators.forward
#
Module Contents#
Functions#
|
Returns k available random uids from the metagraph. |
|
|
|
- prompting.validators.forward.get_random_uids(self, k, exclude=None)#
Returns k available random uids from the metagraph. :param k: Number of uids to return. :type k: int :param exclude: List of uids to exclude from the random sampling. :type exclude: List[int]
- Returns:
Randomly sampled available uids.
- Return type:
uids (torch.LongTensor)
- Parameters:
Notes
If k is larger than the number of available uids, set k to the number of available uids.
- async prompting.validators.forward.run_step(self, task, k, timeout, exclude=[])#
- Parameters:
task (prompting.validators.tasks.Task) –
k (int) –
timeout (float) –
exclude (list) –
- async prompting.validators.forward.forward(self)#