# tinker.types.DmelChunk

## _class_ [**tinker.types.DmelChunk**](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/types/dmel_chunk.py#L13)( _[StrictBase](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/_models.py#L76)_)

**Fields:**

- [**dmel**](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/types/dmel_chunk.py#L14) ( _bytes_) – Serialized TensorContainer bytes holding the DMel model token tensor.  
- [**type**](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/types/dmel_chunk.py#L17) ( _Literal['dmel']_)

### [**validate_dmel**](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/types/dmel_chunk.py#L21)( _value_)

Deserialize base64 string to bytes if needed.

**Parameters:**

- [**value**](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/types/dmel_chunk.py#L21) ( _Union[bytes, str]_)

**Returns:** _bytes_

### [**serialize_dmel**](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/types/dmel_chunk.py#L28)( _value_)

Serialize bytes to base64 string for JSON.

**Parameters:**

- [**value**](https://github.com/thinking-machines-lab/tinker/blob/main/src/tinker/types/dmel_chunk.py#L28) ( _bytes_)

**Returns:** _str_
