You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modern LLMs distributed on platforms like Ollama or HuggingFace frequently utilize non-native asymmetric block quantization formats (e.g. Q4_K_M, Q4_0, Q5_K, Q8_0). While optimized for general-purpose CPU threads and CUDA GEMV kernels in llama.cpp, these k-quants fail to execute natively on Intel Arc GPUs (Xe-HPG/Xe-LPG Xe Matrix Extensions - XMX) and Intel NPUs (Neural Compute Engines).
Intel XMX systolic arrays and NPU tensor accelerators execute hardware matrix-multiply-accumulate ($\mathbf{C} = \mathbf{A} \cdot \mathbf{B} + \mathbf{C}$) strictly using Symmetric INT4 (Group size 128 / 64), INT8, or FP16 representations packed into contiguous 32-byte cachelines matching 256-bit Direct Memory Access (DMA) transactions.
arc-runner bridges this silicon gap by providing a mathematically verified Ahead-of-Time (AOT) transpiler that transforms arbitrary non-native GGUF weights into Intel Xe XMX native formats with guaranteed Signal-to-Quantization-Noise Ratio (SQNR) validation.
Any weight matrix exhibiting severe quantization noise below threshold triggers an automatic pipeline rejection.
Theorem M4: 32-Byte Cacheline Direct Memory Alignment
Intel Xe-HPG/Xe-LPG memory controllers execute bus transactions in 32-byte (256-bit) bursts. Unaligned reads crossing cacheline boundaries force dual bus cycles, halving effective memory bandwidth.
For any tensor byte length $L$:
$$L_{\text{padded}} = (L + 31) \ & \ (\sim 31)$$$$\text{Padding Bytes} = L_{\text{padded}} - L \in [0, 31]$$
All binary buffers emitted into OpenVINO .bin containers are guaranteed to satisfy $L_{\text{offset}} \pmod{32} \equiv 0$, eliminating memory bus split-lock penalties.
Theorem M5: Roofline Model on Intel Arc Graphics
Given peak memory bandwidth $B_{\text{max}} = 112\text{ GB/s}$ and model footprint $S_{\text{bytes}}$:
$$\text{Theoretical Max Autoregressive Decode Speed} = \frac{B_{\text{max}}}{S_{\text{bytes}}} \text{ tokens/second}$$
Theorem M6: Rotary Position Embedding (RoPE) Angle Transformation
For Qwen 2.5 architecture with $\theta_{\text{base}} = 1,000,000$ and head dimension $d_k = 128$:
$$\theta_i = \theta_{\text{base}}^{-2(i-1)/d_k}, \quad i \in [1, d_k / 2]$$
Rotary frequency scaling is mathematically extracted and embedded in openvino_model.xml and config.json, preserving context integrity up to 131,072 tokens without attention matrix collapse.
To guarantee that quantized weights do not cause semantic logit drift and hallucinations:
$$D_{\text{KL}}(P_{\text{source}} \parallel P_{\text{int4}}) = \sum_{x \in \mathcal{V}} P_{\text{source}}(x) \ln\left(\frac{P_{\text{source}}(x)}{P_{\text{int4}}(x)}\right) \le 0.05$$
LogSumExp stabilization prevents numerical underflow across vocabulary size $|\mathcal{V}| = 151,936$.