Skip to content

Add custom GPU inference code / remove cupy dependency#458

Merged
benfred merged 5 commits into
masterfrom
gpu_inference
May 4, 2021
Merged

Add custom GPU inference code / remove cupy dependency#458
benfred merged 5 commits into
masterfrom
gpu_inference

Conversation

@benfred

@benfred benfred commented May 4, 2021

Copy link
Copy Markdown
Owner

Add a KnnQuery class for querying top-k related items on the GPU. This lets us remove
the cupy dependency, which for the small amount of functionality we need (top-k / random
/ matrix multiplication) required a 900+mb package to be installed.

Currently this is only slightly faster than the cupy version (20%) but will become faster
as we move towards batch processing and faster top-k selection algorithms for small k.

benfred added 5 commits May 3, 2021 22:11
Add a KnnQuery class for querying top-k related items on the GPU. This lets us remove
the cupy dependency, which for the small amount of functionality we need (top-k / random
/ matrix multiplication) required a 900+mb package to be installed.

Currently this is only slightly faster than the cupy version (20%) but will become faster
as we move towards batch processing and faster top-k selection algorithms for small k.
@benfred benfred merged commit b15e101 into master May 4, 2021
@benfred benfred deleted the gpu_inference branch May 4, 2021 06:26
@benfred benfred mentioned this pull request May 4, 2021
@benfred benfred mentioned this pull request Sep 9, 2021
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