Skip to content

[QwixEmbedding] Add quantized take op matching jax.numpy.take. - #487

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1025005592
Nov 24, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1025005592

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

[QwixEmbedding] Add quantized take op matching jax.numpy.take.

  • Add qwix._src.core.take.take matching jax.numpy.take's full input signature (axis, out, mode, unique_indices, indices_are_sorted, fill_value, out_sharding), delegating plain arrays directly to jnp.take.
  • Gather compressed qvalue and matching scale/zero_point slices before dequantizing so full tables are not materialized on device (leaving execution placement to XLA).
  • Handle zero-size dimensions safely in qarray.validate_qarray.

@copybara-service copybara-service Bot changed the title [QwixEmbedding] Add quantized embedding table take and lookup ops. [QwixEmbedding] Add quantized take op matching jax.numpy.take. Nov 24, 2026
- Add `qwix._src.core.take.take` matching `jax.numpy.take`'s full input signature (`axis`, `out`, `mode`, `unique_indices`, `indices_are_sorted`, `fill_value`, `out_sharding`), delegating plain arrays directly to `jnp.take`.
- Gather compressed `qvalue` and matching `scale`/`zero_point` slices before dequantizing so full tables are not materialized on device (leaving execution placement to XLA).
- Handle zero-size dimensions safely in `qarray.validate_qarray`.

PiperOrigin-RevId: 1029315026
@copybara-service
copybara-service Bot merged commit e0d1f6d into main Nov 24, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_1025005592 branch November 24, 2026 21:47
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