mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 19:47:12 +00:00
AVX version for the q8-0 multiplications. (#598)
This commit is contained in:
@ -421,7 +421,11 @@ impl GgmlType for BlockQ8_0 {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(unreachable_code)]
|
||||
fn vec_dot(n: usize, xs: &[Self], ys: &[Self::VecDotType]) -> Result<f32> {
|
||||
#[cfg(target_feature = "avx")]
|
||||
return super::avx::vec_dot_q8_0_q8_0(n, xs, ys);
|
||||
|
||||
let qk = QK8_0;
|
||||
if n % QK8_0 != 0 {
|
||||
crate::bail!("vec_dot_q8_0_q8_0: {n} is not divisible by {qk}")
|
||||
|
Reference in New Issue
Block a user