Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/hpc/gguf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ use std::io::{Read, Seek, SeekFrom};
/// GGUF magic number: "GGUF" in little-endian.
pub const GGUF_MAGIC: u32 = 0x46554747; // "GGUF" as LE u32

/// Tensor data type in GGUF.
/// Tensor data type in GGUF (variant names follow GGML convention).
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u32)]
#[allow(non_camel_case_types)]
pub enum GgmlType {
F32 = 0,
F16 = 1,
Expand Down
9 changes: 8 additions & 1 deletion src/simd_avx2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -919,13 +919,20 @@ impl I64x8 {
#[inline(always)] pub fn simd_max(self, other: Self) -> Self { let mut o = [0i64; 8]; for i in 0..8 { o[i] = self.0[i].max(other.0[i]); } Self(o) }
}

/// Lowercase aliases (std::simd convention)
/// Lowercase aliases (std::simd convention).
#[allow(non_camel_case_types)]
pub type f32x16 = F32x16;
#[allow(non_camel_case_types)]
pub type f64x8 = F64x8;
#[allow(non_camel_case_types)]
pub type u8x64 = U8x64;
#[allow(non_camel_case_types)]
pub type i32x16 = I32x16;
#[allow(non_camel_case_types)]
pub type i64x8 = I64x8;
#[allow(non_camel_case_types)]
pub type u32x16 = U32x16;
#[allow(non_camel_case_types)]
pub type u64x8 = U64x8;

#[cfg(test)]
Expand Down
Loading