Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,12 @@ class BenchmarkForegroundService : Service() {
put("rag_only", ragOnly)
put("query_filter", queryFilter ?: JSONObject.NULL)
put("retrieval_top_k_override", retrieveKOverride ?: JSONObject.NULL)
put("model", "gemma-4-E4B-it.litertlm")
// Read model name from the same app_config.json asset the RagPipeline uses,
// so the JSON metadata reflects whatever model is actually loaded rather than
// a hardcoded string that goes stale when we switch model artifacts.
put("model", JSONObject(
application.assets.open("app_config.json").bufferedReader().use { it.readText() }
).getString("llm_model"))
// Read backend from BuildConfig at compile time. Older builds
// hard-coded "CPU" here even when GPU was active — fixed so the
// JSON metadata matches reality.
Expand Down
2 changes: 1 addition & 1 deletion config/app_config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"llm_model": "gemma-4-E4B-it.litertlm",
"llm_model": "gemma-4-E2B-it.litertlm",
"embedding_model": "Gecko_1024_quant.tflite",
Comment on lines 1 to 3
"tokenizer": "sentencepiece.model",
"embedding_dim": 768,
Expand Down
Loading
Loading