Skip to content

Commit

Permalink
fix(android): lora_chars
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Nov 26, 2023
1 parent ecdd42e commit 33bcbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Java_com_rnllama_LlamaContext_initContext(

const char *lora_chars = env->GetStringUTFChars(lora_str, nullptr);
const char *lora_base_chars = env->GetStringUTFChars(lora_base_str, nullptr);
if (!lora_chars) {
if (lora_chars) {
defaultParams.lora_adapter.push_back({lora_chars, lora_scaled});
defaultParams.lora_base = lora_base_chars;
defaultParams.use_mmap = false;
Expand Down

0 comments on commit 33bcbd8

Please sign in to comment.