Skip to content

Add an INT4 KV tile encoding (KVEncoding::kInt4). - #1072

Open
copybara-service[bot] wants to merge 1 commit into
devfrom
test_1008185752
Open

copybara-service[bot] wants to merge 1 commit into
devfrom
test_1008185752

Conversation

@copybara-service

Copy link
Copy Markdown

Add an INT4 KV tile encoding (KVEncoding::kInt4).

Same element order as kInt8 tiles with two 4-bit values per byte (offset
binary, q + 8) and per-token bf16 K and V scales, scale = bf16(absmax / 7).
Adds encode/decode/transcode support and tests.

Same element order as kInt8 tiles with two 4-bit values per byte (offset
binary, q + 8) and per-token bf16 K and V scales, scale = bf16(absmax / 7).
Adds encode/decode/transcode support and tests.

PiperOrigin-RevId: 1008185752
@google-cla

google-cla Bot commented Nov 2, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

0 participants