Skip to content

Commit 6eb0839

Browse files
authored
Add sentencepiece tokenizer support to llm runner
Differential Revision: D76789606 Pull Request resolved: #85
1 parent 4da2344 commit 6eb0839

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,18 @@ if(SUPPORT_REGEX_LOOKAHEAD)
9292
pcre2-8-static
9393
PROPERTIES
9494
INTERFACE_INCLUDE_DIRECTORIES
95-
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third-party/pcre2/src>
95+
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/third-party/pcre2>
9696
)
9797
add_library(
9898
regex_lookahead STATIC
9999
${CMAKE_CURRENT_SOURCE_DIR}/src/pcre2_regex.cpp
100100
${CMAKE_CURRENT_SOURCE_DIR}/src/regex_lookahead.cpp
101101
${CMAKE_CURRENT_SOURCE_DIR}/src/std_regex.cpp
102102
)
103-
target_link_libraries(regex_lookahead PUBLIC pcre2-8)
103+
target_link_libraries(regex_lookahead PUBLIC pcre2-8-static)
104104
target_include_directories(
105105
regex_lookahead
106106
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
107-
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third-party/pcre2/src>
108107
)
109108
target_link_options_shared_lib(regex_lookahead)
110109
target_link_libraries(tokenizers PUBLIC regex_lookahead)

targets.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def define_common_targets():
101101
"@EXECUTORCH_CLIENTS",
102102
"//pytorch/tokenizers/...",
103103
],
104-
external_deps = [
104+
exported_external_deps = [
105105
"sentencepiece",
106106
"abseil-cpp",
107107
],

0 commit comments

Comments
 (0)