CompressedTensorModel
pydantic model CompressedTensorModel
Bases: TensorModel
Model of compressed tensor data.
data
field
Type: str [Required]
Base-64-encoded data in litte endian format.
Bool arrays are bitpacked, other types are IEEE753. Everything is little-endian. Tensors are C-ordering.
Validated by
check_sizes
dtype
field
Type: Literal['f16', 'f32', 'f64', 'bool', 'i8', 'i16', 'i32', 'i64', 'u8', 'u16', 'u32', 'u64', 'c64', 'c128'] [Required]
The data type of the tensor.
Validated by
check_sizes
shape
field
Type: list[int] [Required]
The shape of the tensor.
Validated by
check_sizes
check_sizes
from_numpy
to_numpy
Was this page helpful?
Report a bug, typo, or request content on GitHub.