Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/qualcomm/oss_scripts/llama/runner/runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ Error Runner<T>::load() {
eos_ids->insert(tokenizer_->encode("<|eot|>", 0, 0).get()[0]);
eos_ids->insert(tokenizer_->encode("<|end_of_text|>", 0, 0).get()[0]);
} else {
tokenizer_ =
example::load_llama_tokenizer(tokenizer_path_, Version::Default);
tokenizer_ = llm::load_tokenizer(tokenizer_path_);
if (tokenizer_ == nullptr) {
ET_LOG(
Error, "Failed to load tokenizer with %s", tokenizer_path_.c_str());
Expand Down
15 changes: 1 addition & 14 deletions extension/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,8 @@ endif()

if(EXECUTORCH_BUILD_LLAMA_JNI)
target_sources(executorch_jni PRIVATE jni/jni_layer_llama.cpp jni/log.cpp)
list(APPEND link_libraries llama_runner)
list(APPEND link_libraries extension_llm_runner)
target_compile_definitions(executorch_jni PUBLIC EXECUTORCH_BUILD_LLAMA_JNI=1)
add_subdirectory(
${EXECUTORCH_ROOT}/examples/models/llama/runner
${CMAKE_CURRENT_BINARY_DIR}/../../examples/models/llama/runner
)

target_sources(
executorch_jni
PRIVATE ${EXECUTORCH_ROOT}/extension/llm/runner/llm_runner_helper.cpp
)

target_include_directories(
executorch_jni PRIVATE ${EXECUTORCH_ROOT}/extension/llm/runner
)

if(QNN_SDK_ROOT)
target_sources(
Expand Down
Loading