Skip to content

Commit 3aaad7d

Browse files
committed
[DOC] Clarify MODEL_TYPE_MULTIMODAL is an alias for MODEL_TYPE_TEXT_VISION
Both constants share the same value (2) in LlmModuleConfig.java, so listing them as separate model types implied behavior that does not exist. Reword the available-model-types sentence to drop the misleading third entry and note the alias explicitly. Flagged on the original PR (#19611).
1 parent 9898bc5 commit 3aaad7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/llm/run-on-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ LlmModuleConfig config = LlmModuleConfig.create()
5252
LlmModule module = new LlmModule(config);
5353
```
5454

55-
Available load modes are `LOAD_MODE_FILE`, `LOAD_MODE_MMAP` (default), `LOAD_MODE_MMAP_USE_MLOCK`, and `LOAD_MODE_MMAP_USE_MLOCK_IGNORE_ERRORS`. Available model types are `MODEL_TYPE_TEXT`, `MODEL_TYPE_TEXT_VISION`, and `MODEL_TYPE_MULTIMODAL`.
55+
Available load modes are `LOAD_MODE_FILE`, `LOAD_MODE_MMAP` (default), `LOAD_MODE_MMAP_USE_MLOCK`, and `LOAD_MODE_MMAP_USE_MLOCK_IGNORE_ERRORS`. Available model types are `MODEL_TYPE_TEXT` and `MODEL_TYPE_TEXT_VISION` (the `MODEL_TYPE_MULTIMODAL` constant is currently an alias for `MODEL_TYPE_TEXT_VISION` and selects the same runtime path).
5656

5757
Construction itself is lightweight and does not load the program data immediately.
5858

0 commit comments

Comments
 (0)