Skip to content

Commit

Permalink
Move sentencepiece to extension/llm/third-party (pytorch#4388)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#4388

bypass-github-export-checks
bypass-github-pytorch-ci-checks
bypass-github-executorch-ci-checks

Reviewed By: helunwencser

Differential Revision: D60158652

fbshipit-source-id: 7c3f7f02cfb0c0e4bdd0e44845d61ed39fd2fd5d
  • Loading branch information
shoumikhin authored and facebook-github-bot committed Jul 24, 2024
1 parent 99623be commit d8866e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
[submodule "backends/xnnpack/third-party/pthreadpool"]
path = backends/xnnpack/third-party/pthreadpool
url = https://github.com/Maratyszcza/pthreadpool.git
[submodule "examples/models/phi-3-mini/third-party/sentencepiece"]
path = examples/models/phi-3-mini/third-party/sentencepiece
url = https://github.com/google/sentencepiece.git
[submodule "examples/third-party/LLaVA"]
path = examples/third-party/LLaVA
url = https://github.com/haotian-liu/LLaVA.git
Expand All @@ -43,6 +40,9 @@
[submodule "extension/llm/third-party/re2"]
path = extension/llm/third-party/re2
url = https://github.com/google/re2.git
[submodule "extension/llm/third-party/sentencepiece"]
path = extension/llm/third-party/sentencepiece
url = https://github.com/google/sentencepiece.git
[submodule "kernels/optimized/third-party/eigen"]
path = kernels/optimized/third-party/eigen
url = https://gitlab.com/libeigen/eigen.git
Expand Down
6 changes: 3 additions & 3 deletions examples/models/phi-3-mini/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ add_subdirectory(
${CMAKE_CURRENT_SOURCE_DIR}/../../..
${CMAKE_BINARY_DIR}/../../..)
add_subdirectory(
${CMAKE_CURRENT_SOURCE_DIR}/third-party/sentencepiece
${CMAKE_BINARY_DIR}/third-party/sentencepiece)
${CMAKE_CURRENT_SOURCE_DIR}/../../../extension/llm/third-party/sentencepiece
${CMAKE_BINARY_DIR}/sentencepiece)

add_executable(phi_3_mini_runner main.cpp)
target_include_directories(
phi_3_mini_runner
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/third-party/sentencepiece/src)
${CMAKE_CURRENT_SOURCE_DIR}/../../../extension/llm/third-party/sentencepiece/src)
target_link_libraries(
phi_3_mini_runner
PRIVATE
Expand Down

0 comments on commit d8866e3

Please sign in to comment.