File tree 3 files changed +12
-5
lines changed
examples/cpp/aot_inductor/llama2
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 4
4
[submodule "cpp/third-party/llama2.c "]
5
5
path = cpp/third-party/llama2.c
6
6
url = https://github.com/karpathy/llama2.c
7
- [submodule "cpp/third-party/llama2.so "]
8
- path = cpp/third-party/llama2.so
9
- url = https://github.com/mreso/llama2.so.git
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
2
+ FetchContent_Declare(
3
+ llama2_so
4
+ GIT_REPOSITORY https://github.com/mreso/llama2.so.git
5
+ GIT_TAG 370154d
6
+ )
7
+
8
+ if (NOT llama2_so_POPULATED)
9
+ message (STATUS "Fetching llama2.so..." )
10
+ FetchContent_Populate(llama2_so)
11
+ endif ()
12
+
2
13
FetchContent_Declare(
3
14
stories15M_pt
4
15
URL https://huggingface.co/karpathy/tinyllamas/resolve/main/stories15M.pt?download=true
@@ -16,7 +27,7 @@ add_custom_command(
16
27
)
17
28
18
29
19
- add_library (llama2_so STATIC ../../../../cpp/third-party/llama2.so /run.cpp)
30
+ add_library (llama2_so STATIC ${llama2_so_SOURCE_DIR} /run.cpp)
20
31
target_compile_options (llama2_so PRIVATE -Wall -Wextra -Ofast -fpermissive)
21
32
22
33
add_library (llama_so_handler SHARED src/llama_handler.cc stories15M.so)
You can’t perform that action at this time.
0 commit comments