[Feature][QDP] Add Google TPU support via JAX/Pallas backend

Open
#1,156 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@400Ping is already working on this.

Since Mar 8, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement qdp

Summary

Add a TPU backend for QDP using JAX (and Pallas for custom kernels), so encoding workflows can run on Google TPU instead of being tied to CUDA-only infrastructure.

Primary Motivation

We want to avoid NVIDIA vendor lock-in.
Today, core execution paths are CUDA-centric, which limits deployment flexibility, cost control, and hardware strategy.

Scope

  • Add a backend abstraction layer for device-specific implementations.
  • Implement a jax_tpu backend for:
    • amplitude encoding
    • angle encoding
    • basis encoding
  • Add backend selection/configuration in API (cuda, jax_tpu, ...).
  • Add correctness parity tests against current CUDA outputs (with tolerances).
  • Add docs for setup and backend selection.
Dominant language
Rust
Stars
2.3k
Forks
1k
Avg merge
2d 20h
Merged PRs (30d)
7

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/mahout

All issues in apache/mahout

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.