You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mahout.apache.org by "viiccwen (via GitHub)" <gi...@apache.org> on 2026/02/02 16:23:16 UTC

[I] [QDP] Add zero-copy basis encoding from float32 GPU tensors [mahout]

viiccwen opened a new issue, #1004:
URL: https://github.com/apache/mahout/issues/1004

   ### Summary
   Extend QDP to support zero-copy basis encoding from GPU pointers when the indices are provided as float32 (e.g. PyTorch `torch.float32` CUDA tensor of basis indices).
   
   - **Amplitude encoding** has zero-copy float32 GPU APIs (`encode_from_gpu_ptr_f32`, `encode_from_gpu_ptr_f32_with_stream`); the Python bindings use them for float32 CUDA tensors.
   - **Basis encoding** today uses the generic `encode_from_gpu_ptr` / `encode_batch_from_gpu_ptr` path, which expects the pointer to point to **integer** data (e.g. `usize` / int64) on the device. When the user passes a float32 CUDA tensor (e.g. indices stored as `float32` for consistency with other model tensors), the API does not support it and may require `.cpu()` or a cast, losing zero-copy.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mahout.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [QDP] Add zero-copy basis encoding from float32 GPU tensors [mahout]

Posted by "viiccwen (via GitHub)" <gi...@apache.org>.
viiccwen commented on issue #1004:
URL: https://github.com/apache/mahout/issues/1004#issuecomment-4950357169

   Closed, already done by @rich7420.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [QDP] Add zero-copy basis encoding from float32 GPU tensors [mahout]

Posted by "SuyashParmar (via GitHub)" <gi...@apache.org>.
SuyashParmar commented on issue #1004:
URL: https://github.com/apache/mahout/issues/1004#issuecomment-3928384650

   @viiccwen is this still open to work ?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [QDP] Add zero-copy basis encoding from float32 GPU tensors [mahout]

Posted by "viiccwen (via GitHub)" <gi...@apache.org>.
viiccwen closed issue #1004: [QDP] Add zero-copy basis encoding from float32 GPU tensors
URL: https://github.com/apache/mahout/issues/1004


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@mahout.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org