File tree 5 files changed +9
-10
lines changed
5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
[submodule "third_party/google/rpc "]
2
2
path = third_party/google/rpc
3
3
url = https://github.com/googleapis/googleapis.git
4
- [submodule "cpp/third-party/llama2.c "]
5
- path = cpp/third-party/llama2.c
6
- url = https://github.com/karpathy/llama2.c
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ add_custom_command(
14
14
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /aot_compile_export.py
15
15
)
16
16
17
- # set(TOKENZIER_CPP_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../cpp/third-party/tokenizers-cpp)
18
- # add_subdirectory(${TOKENZIER_CPP_PATH} tokenizers EXCLUDE_FROM_ALL)
19
17
add_library (bert_handler SHARED src/bert_handler.cc bert-seq.so)
20
18
target_include_directories (bert_handler PRIVATE )
21
19
target_link_libraries (bert_handler PRIVATE ts_backends_core ts_utils ${TORCH_LIBRARIES} tokenizers_cpp)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ FetchContent_MakeAvailable(stories15M_pt)
22
22
23
23
add_custom_command (
24
24
OUTPUT stories15M.so
25
- COMMAND PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR} /../../../../cpp/third-party/llama2.so/ python ${CMAKE_CURRENT_SOURCE_DIR} /compile.py --checkpoint ${CMAKE_CURRENT_BINARY_DIR} /\'stories15M.pt?download=true \' ${CMAKE_CURRENT_BINARY_DIR} /stories15M.so
25
+ COMMAND PYTHONPATH=${llama2_so_SOURCE_DIR} python ${CMAKE_CURRENT_SOURCE_DIR} /compile.py --checkpoint ${CMAKE_CURRENT_BINARY_DIR} /\'stories15M.pt?download=true \' ${CMAKE_CURRENT_BINARY_DIR} /stories15M.so
26
26
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /compile.py
27
27
)
28
28
Original file line number Diff line number Diff line change 1
- include (FetchContent)
1
+
2
+ FetchContent_Declare(
3
+ llama2_c
4
+ GIT_REPOSITORY https://github.com/karpathy/llama2.c
5
+ GIT_TAG d986206
6
+ )
2
7
3
8
FetchContent_Declare(
4
9
stories15M_bin
@@ -14,9 +19,9 @@ FetchContent_Declare(
14
19
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR} /
15
20
)
16
21
17
- FetchContent_MakeAvailable(tokenizer_bin stories15M_bin)
22
+ FetchContent_MakeAvailable(tokenizer_bin stories15M_bin llama2_c )
18
23
19
- add_library (llama2_c STATIC ${CMAKE_CURRENT_SOURCE_DIR} /../../../cpp/third-party/llama2.c /run.c)
24
+ add_library (llama2_c STATIC ${llama2_c_SOURCE_DIR} /run.c)
20
25
target_compile_options (llama2_c PRIVATE -Wall -Wextra -Ofast -fPIC)
21
26
22
27
add_library (babyllama_handler SHARED src/baby_llama_handler.cc)
You can’t perform that action at this time.
0 commit comments