bundle.lambdalabs.models ======================== .. py:module:: bundle.lambdalabs.models .. autoapi-nested-parse:: Lambda Labs API data models. Classes ------- .. autoapisummary:: bundle.lambdalabs.models.InstanceStatus bundle.lambdalabs.models.InstanceSpecs bundle.lambdalabs.models.InstanceType bundle.lambdalabs.models.Instance bundle.lambdalabs.models.SshKey bundle.lambdalabs.models.Filesystem bundle.lambdalabs.models.LaunchRequest Module Contents --------------- .. py:class:: InstanceStatus Bases: :py:obj:`str`, :py:obj:`enum.Enum` str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'. .. py:attribute:: BOOTING :value: 'booting' .. py:attribute:: ACTIVE :value: 'active' .. py:attribute:: UNHEALTHY :value: 'unhealthy' .. py:attribute:: TERMINATING :value: 'terminating' .. py:attribute:: TERMINATED :value: 'terminated' .. py:class:: InstanceSpecs(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Base data model class, providing utilities for serialization and deserialization from/to JSON, along with JSON Schema generation. .. attribute:: model_config Default model configuration settings. .. py:attribute:: vcpus :type: int .. py:attribute:: memory_gib :type: int .. py:attribute:: storage_gib :type: int .. py:class:: InstanceType(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Base data model class, providing utilities for serialization and deserialization from/to JSON, along with JSON Schema generation. .. attribute:: model_config Default model configuration settings. .. py:attribute:: name :type: str .. py:attribute:: description :type: str .. py:attribute:: price_cents_per_hour :type: int .. py:attribute:: specs :type: InstanceSpecs .. py:property:: price_per_hour :type: float .. py:class:: Instance(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Base data model class, providing utilities for serialization and deserialization from/to JSON, along with JSON Schema generation. .. attribute:: model_config Default model configuration settings. .. py:attribute:: id :type: str .. py:attribute:: name :type: str | None :value: None .. py:attribute:: status :type: InstanceStatus .. py:attribute:: instance_type :type: InstanceType .. py:attribute:: ip :type: str | None :value: None .. py:attribute:: region :type: dict[str, Any] .. py:attribute:: ssh_key_names :type: list[str] :value: [] .. py:attribute:: file_system_names :type: list[str] :value: [] .. py:property:: is_active :type: bool .. py:property:: is_ready :type: bool .. py:class:: SshKey(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Base data model class, providing utilities for serialization and deserialization from/to JSON, along with JSON Schema generation. .. attribute:: model_config Default model configuration settings. .. py:attribute:: id :type: str .. py:attribute:: name :type: str .. py:attribute:: public_key :type: str .. py:class:: Filesystem(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` A Lambda Labs persistent NFS filesystem. Auto-mounted on instances at ``/home/ubuntu//``. Survives instance termination — ideal for storing datasets and results across multiple training jobs without re-uploading. .. py:attribute:: id :type: str .. py:attribute:: name :type: str .. py:attribute:: region :type: dict[str, Any] .. py:attribute:: mount_point :type: str :value: '' .. py:property:: path :type: pathlib.Path Mount path on the instance. .. py:class:: LaunchRequest(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Base data model class, providing utilities for serialization and deserialization from/to JSON, along with JSON Schema generation. .. attribute:: model_config Default model configuration settings. .. py:attribute:: region_name :type: str .. py:attribute:: instance_type_name :type: str .. py:attribute:: ssh_key_names :type: list[str] .. py:attribute:: name :type: str | None :value: None .. py:attribute:: quantity :type: int :value: 1 .. py:attribute:: file_system_names :type: list[str] :value: []