Skip to content

Add per-channel asymmetric INT8 quantization & ARM64 NEON vdotq_s32 / AVX-512 VNNI kernels #9

Open

Description

@voidstackloop

Summary

crates/oxideon-core/src/quant/int8_kernels.rs currently implements symmetric per-tensor INT8 qlinear_i8 and qconv2d_i8 with true integer accumulation (i8 * i8 -> i32, using AVX2 vpmaddwd on x86_64).

Adding per-channel weight scales, asymmetric zero-point activations (u8 / i8 with zero_point), and hardware dot-product instructions (vdotq_s32 on ARM64 dotprod CPUs, vpdpbusd on AVX-512 VNNI CPUs) will improve both accuracy and quantized inference throughput.

Relevant Files

  • crates/oxideon-core/src/quant/int8_kernels.rs
  • crates/oxideon-core/src/quant.rs

Acceptance Criteria

  • Support per-channel weight scales (w_scales: &[f32]) and activation zero_point: i32 in qlinear_i8 and qconv2d_i8.
  • Add optional aarch64 NEON vdotq_s32 and/or x86_64 AVX-512 VNNI fast paths with runtime feature detection.
  • Add accuracy tests comparing quantized outputs against f32 reference.

Activity

  1. added
    enhancement
    help wanted
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions