mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 19:47:12 +00:00
AVX version of the q6k vec-dot. (#493)
* AVX version of the q6k vec-dot. * Use the avx sum.
This commit is contained in:
@ -462,7 +462,11 @@ impl GgmlType for BlockQ6K {
|
||||
const BLCK_SIZE: usize = QK_K;
|
||||
type VecDotType = BlockQ8K;
|
||||
|
||||
#[allow(unreachable_code)]
|
||||
fn vec_dot(n: usize, xs: &[Self], ys: &[Self::VecDotType]) -> Result<f32> {
|
||||
#[cfg(target_feature = "avx")]
|
||||
return super::avx::vec_dot_q6k_q8k(n, xs, ys);
|
||||
|
||||
if n % QK_K != 0 {
|
||||
crate::bail!("vec_dot_q6k_q8k: {n} is not divisible by {QK_K}")
|
||||
}
|
||||
|
Reference in New Issue
Block a user