soehi/gguf/tensor does not have a README file
pub(all) suberror TensorError {
UnknownType(type_id~ : Int)
UnsupportedType(type_id~ : Int, name~ : String)
NegativeLength(n_elems~ : Int64)
NotBlockAligned(n_elems~ : Int64, block_size~ : Int)
LengthOverflow(n_elems~ : Int64)
BufferTooSmall(offset~ : Int64, needed~ : Int64, available~ : Int64)
OutputTooSmall(out_offset~ : Int, n_elems~ : Int64, out_len~ : Int)
} derive(Eq, Debug)impl Show for TensorErrorfn bf16_to_float(v : Int) -> Floatfn dequant(buf : Bytes, offset : Int64, ty : GgmlType, n_elems : Int64) -> Result[Array[Float], TensorError]fn dequant_by_id(buf : Bytes, offset : Int64, type_id : Int, n_elems : Int64) -> Result[Array[Float], TensorError]fn dequant_into(buf : Bytes, offset : Int64, ty : GgmlType, n_elems : Int64, out : FixedArray[Float], out_offset : Int) -> Result[Unit, TensorError]let ggml_type_count : Intfn half_to_float(bits : Int) -> FloatInstall
Download zipRead-only GGUF container parsing and ggml block dequantization, in pure MoonBit