Skip to content

Commit

Permalink
Add kv cache related ops (pytorch#2968)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#2968

X-link: facebookresearch/FBGEMM#65

Reviewed By: Aya-ZIbra

Differential Revision: D60951847

fbshipit-source-id: 9d3fa828fcdb3c905c8cf8ca6fbce2066252724b
  • Loading branch information
jianyuh authored and facebook-github-bot committed Aug 15, 2024
1 parent 7143818 commit 7105d5f
Show file tree
Hide file tree
Showing 10 changed files with 3,182 additions and 618 deletions.
7 changes: 6 additions & 1 deletion fbgemm_gpu/experimental/gen_ai/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ set(comm_ops_sources
src/comm/car.cu
src/comm/car.cpp)

set(kv_cache_ops_sources
src/kv_cache/kv_cache.cu
src/kv_cache/kv_cache.cpp)

set(experimental_gen_ai_cpp_source_files
${attention_ops_sources}
${quantize_ops_sources}
${comm_ops_sources})
${comm_ops_sources}
${kv_cache_ops_sources})

# Set the source file for FB only CPP
if(USE_FB_ONLY)
Expand Down
Loading

0 comments on commit 7105d5f

Please sign in to comment.