dream.models
Import it as from dream import models.
Models on the Dream Labs platform: the checkpoints your account may run.
dream.DreamClient.get_models() is the same call with its key bound; from dream import models reaches it on its own, for a caller that passes api_key itself.
- list_models(): the checkpoints your account may run, the public ones first and then your own fine-tunes. A model’s
idis thecheckpointthatDreamClient.policy()takes.servablemeans it can be started, not that it is running: the first get_action() to a model that is not running is refusedpool_warmingwhile it starts.
The key and the errors are those of dream.datasets.
Example
from dream import models for model in models.list_models(api_key=KEY): if model.servable: print(model.id, model.embodiment)
Classes
Section titled “Classes”Model: One checkpoint your account may run; pass itsidtoDreamClient.policy()ascheckpoint.
dream.models.list_models
Section titled “dream.models.list_models”dream.models.list_models(*, api_key: str | None = None) -> list[Model]
The checkpoints your account may run: the public ones and your own fine-tunes.
Parameters
api_key(str | None, defaultNone, keyword-only): Your API key; the credentials’ when None.
Returns
list[Model]: A list of Model, the public ones first, then your own, each group by id. A model’s id is the checkpoint for DreamClient.policy().
Raises
DreamConfigError: There is no key (and the credentials name none).DreamAuthError: The key was refused.DreamServerError: The platform refused the call; aretryableone (HTTP 5xx, already retried by the client) may be made again after a short wait.DreamProtocolError: The platform could not be reached, or did not answer as the Dream API.