Skip to main content

Team

Struct Team 

Source
pub struct Team { /* private fields */ }
Expand description

The process-wide team. Exists only when FTTS_INT8_THREADS requests more than one thread.

Implementations§

Source§

impl Team

Source

pub fn linear_f32( &self, x: &[f32], weight: &[f32], bias: Option<&[f32]>, m: usize, k: usize, n: usize, out: &mut [f32], )

Runs one f32 dense linear across the team, bit-identically to the serial packed kernel.

§Panics

Panics on shape mismatches, exactly as the serial kernel does.

The argument count mirrors the serial kernel’s signature exactly, which is the point: a caller swaps one call for the other with no reshaping, so any divergence would be a compile error rather than a silent behavioural difference.

Source

pub fn linear_q8( &self, x_q: &[i8], x_scales: &[f32], weight: &QuantizedMatrix, bias: Option<&[f32]>, m: usize, out: &mut [f32], tier: Int8Tier, )

Runs one W8A8 linear across the team. Bit-identical to the serial path per element.

§Panics

Panics on shape mismatches, exactly as the serial kernel does.

Source

pub fn gqa_attention( &self, queries: &[f32], keys: &[f32], values: &[f32], mask: &[f32], query_positions: usize, key_positions: usize, q_heads: usize, kv_heads: usize, head_dim: usize, out: &mut [f32], )

Runs the default-arithmetic GQA attention across the team, partitioned over query heads. Bit-identical to the serial f32ref::gqa_attention (same extracted loop).

§Panics

Panics on shape mismatches, exactly as the serial reference does.

Auto Trait Implementations§

§

impl !Freeze for Team

§

impl RefUnwindSafe for Team

§

impl Send for Team

§

impl Sync for Team

§

impl Unpin for Team

§

impl UnsafeUnpin for Team

§

impl UnwindSafe for Team

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.