Skip to content

Conversation

@5000user5000
Copy link
Owner

This update refactors the lookup table implementation to support mixed-precision matrix multiplication, specifically INT4 × FP16 or FP32. The ProductLookupTable class has been extended to allow both scalar lookups and dynamic row-wise generation of lookup vectors based on activation matrix rows. This enables more efficient LUT-based computation without requiring runtime multiplications. The fast GEMM kernel is updated accordingly to rebuild the LUT for each activation row, improving cache locality and performance. Additionally, the original AVX2-specific code has been removed to simplify the implementation and improve readability. All relevant tests, including those involving INT4 and mixed-precision computation, pass successfully.

@5000user5000 5000user5000 merged commit c79c398 into main May 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants