Skip to content

Conversation

@jjjxp03
Copy link

@jjjxp03 jjjxp03 commented Dec 5, 2025

For CANN backend:Currently, mul_mat_id performs a device-to-host copy, which does not support full-image inference.Optimize mul_mat_id quantization by referencing the non-quantized version and removing the device_to_host copy operation.

Verify the correctness of the modification using the existing test tool:
./bin/test-backend-ops test -b CANN0 -o MUL_MAT_ID
Passed the q_8 test. Currently, only q_8 has been implemented and tested. Tensor self is not implemented for DT_INT4; to support q_4, the corresponding type implementation needs to be added.

@github-actions github-actions bot added ggml changes relating to the ggml tensor library for machine learning Ascend NPU issues specific to Ascend NPUs labels Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ascend NPU issues specific to Ascend NPUs ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant