Skip to content

feat(android): add QuantizationHelper for block-wise INT4/INT8 edge parameter compression - #252

Open
AhmadHassan-BTed wants to merge 1 commit into
SymbioticLab:masterfrom
AhmadHassan-BTed:feat/android-edge-quantization
Open

AhmadHassan-BTed wants to merge 1 commit into
SymbioticLab:masterfrom
AhmadHassan-BTed:feat/android-edge-quantization

Conversation

@AhmadHassan-BTed

@AhmadHassan-BTed AhmadHassan-BTed commented Nov 6, 2026 •

Copy link
Copy Markdown

Hi! Added QuantizationHelper in fedscale/edge/android/app/src/main/java/com/fedscale/android/utils/QuantizationHelper.java with block-wise INT4 nibble packing and INT8 quantization helpers, byte-buffer conversion (floatsToBytes, bytesToFloats), and checks for non-finite inputs and truncated buffers.

Added 11 unit tests in QuantizationHelperTest.java covering round-trips, odd lengths, zeros, small magnitudes (1e-9), and malformed inputs. Happy to tweak if needed!

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.

1 participant