The llama.cpp project released build b10758, introducing MUL_MAT and MUL_MAT_ID fusion capabilities for the Hexagon DSP. This update also includes several fixes to improve stability and performance on Qualcomm hardware.

  • Fuses QKV and FFN matmuls that land on HMX.
  • Removes the hardcoded ne[1] < 32K restriction.
  • Corrects overhead sizing to prevent exceeding vtcm budget for large dimensions.
  • Fuses MUL_MAT_ID into MUL_MAT_ID_NX variants where possible.
  • Updates opbatch and opqueue sizing to reduce trace buffer allocation overhead.
  • Adds virtual address space defragmentation to avoid aborts due to fragmentation.

These changes optimize memory usage and execution efficiency for Hexagon-based devices.