Skip to content

Commit

Permalink
fix(android): default rope_freq_base / rope_freq_scale to 0 during re…
Browse files Browse the repository at this point in the history
…cent breaking change

ref: ggerganov/llama.cpp#3401
  • Loading branch information
jhen0409 committed Oct 3, 2023
1 parent 8da7244 commit 43e036e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/rnllama/LlamaContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ public LlamaContext(int id, ReactApplicationContext reactContext, ReadableMap pa
// String lora_base,
params.hasKey("lora_base") ? params.getString("lora_base") : "",
// float rope_freq_base,
params.hasKey("rope_freq_base") ? (float) params.getDouble("rope_freq_base") : 10000.0f,
params.hasKey("rope_freq_base") ? (float) params.getDouble("rope_freq_base") : 0.0f,
// float rope_freq_scale
params.hasKey("rope_freq_scale") ? (float) params.getDouble("rope_freq_scale") : 1.0f
params.hasKey("rope_freq_scale") ? (float) params.getDouble("rope_freq_scale") : 0.0f
);
this.reactContext = reactContext;
eventEmitter = reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class);
Expand Down

0 comments on commit 43e036e

Please sign in to comment.