Skip to content

tinker.types.DmelChunk

class tinker.types.DmelChunk(StrictBase)

Fields:

  • dmel (bytes) – Serialized TensorContainer bytes holding the DMel model token tensor.
  • type (Literal['dmel'])

validate_dmel(value)

Deserialize base64 string to bytes if needed.

Parameters:

  • value (Union[bytes, str])

Returns: bytes

serialize_dmel(value)

Serialize bytes to base64 string for JSON.

Parameters:

Returns: str