Skip to content
View as Markdown

tinker.types.DmelChunk

Generated from tinker 0.38.0 at commit 4fb85c7. Source links point at that snapshot.

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