Skip to content

Commit 43e036e

Browse files
committed
fix(android): default rope_freq_base / rope_freq_scale to 0 during recent breaking change
ref: ggml-org/llama.cpp#3401
1 parent 8da7244 commit 43e036e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/rnllama/LlamaContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public LlamaContext(int id, ReactApplicationContext reactContext, ReadableMap pa
6161
// String lora_base,
6262
params.hasKey("lora_base") ? params.getString("lora_base") : "",
6363
// float rope_freq_base,
64-
params.hasKey("rope_freq_base") ? (float) params.getDouble("rope_freq_base") : 10000.0f,
64+
params.hasKey("rope_freq_base") ? (float) params.getDouble("rope_freq_base") : 0.0f,
6565
// float rope_freq_scale
66-
params.hasKey("rope_freq_scale") ? (float) params.getDouble("rope_freq_scale") : 1.0f
66+
params.hasKey("rope_freq_scale") ? (float) params.getDouble("rope_freq_scale") : 0.0f
6767
);
6868
this.reactContext = reactContext;
6969
eventEmitter = reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class);

0 commit comments

Comments
 (0)