Skip to content

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 id is the checkpoint that DreamClient.policy() takes. servable means it can be started, not that it is running: the first get_action() to a model that is not running is refused pool_warming while 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)
  • Model: One checkpoint your account may run; pass its id to DreamClient.policy() as checkpoint.
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, default None, 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; a retryable one (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.