Skip to content

Commit 93b1e51

Browse files
minor fixes
1 parent 1556b59 commit 93b1e51

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/data/ModelList.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ object ModelList {
9090
downloadUrl = "https://huggingface.co/Void2377/Qwen/resolve/main/lora/chat_assistant-lora-Q8_0.gguf",
9191
filename = "chat_assistant-lora-Q8_0.gguf",
9292
compatibleModelIds = listOf("lfm2-350m-q4_k_m", "lfm2-350m-q8_0"),
93-
fileSize = 690_176,
93+
fileSize = 673_664,
9494
defaultScale = 1.0f,
9595
),
9696
LoraAdapterCatalogEntry(
@@ -100,7 +100,7 @@ object ModelList {
100100
downloadUrl = "https://huggingface.co/Void2377/Qwen/resolve/main/lora/summarizer-lora-Q8_0.gguf",
101101
filename = "summarizer-lora-Q8_0.gguf",
102102
compatibleModelIds = listOf("lfm2-350m-q4_k_m", "lfm2-350m-q8_0"),
103-
fileSize = 690_176,
103+
fileSize = 673_632,
104104
defaultScale = 1.0f,
105105
),
106106
LoraAdapterCatalogEntry(
@@ -110,7 +110,7 @@ object ModelList {
110110
downloadUrl = "https://huggingface.co/Void2377/Qwen/resolve/main/lora/translator-lora-Q8_0.gguf",
111111
filename = "translator-lora-Q8_0.gguf",
112112
compatibleModelIds = listOf("lfm2-350m-q4_k_m", "lfm2-350m-q8_0"),
113-
fileSize = 690_176,
113+
fileSize = 673_632,
114114
defaultScale = 1.0f,
115115
),
116116
LoraAdapterCatalogEntry(
@@ -120,7 +120,7 @@ object ModelList {
120120
downloadUrl = "https://huggingface.co/Void2377/Qwen/resolve/main/lora/sentiment-lora-Q8_0.gguf",
121121
filename = "sentiment-lora-Q8_0.gguf",
122122
compatibleModelIds = listOf("lfm2-350m-q4_k_m", "lfm2-350m-q8_0"),
123-
fileSize = 690_176,
123+
fileSize = 673_632,
124124
defaultScale = 1.0f,
125125
),
126126
)

examples/android/RunAnywhereAI/app/src/main/java/com/runanywhere/runanywhereai/presentation/lora/LoraViewModel.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,6 @@ class LoraViewModel(application: Application) : AndroidViewModel(application) {
253253
}
254254
}
255255
}
256-
// Validate downloaded file size if catalog provides one
257-
if (entry.fileSize > 0 && tmpFile.length() != entry.fileSize) {
258-
tmpFile.delete()
259-
throw Exception(
260-
"Downloaded file size (${tmpFile.length()}) does not match expected size (${entry.fileSize})"
261-
)
262-
}
263256
destFile.delete()
264257
if (!tmpFile.renameTo(destFile)) {
265258
tmpFile.delete()

0 commit comments

Comments
 (0)