Commit eeaa8a2
authored
feat: add LFM2.5-VL-450M quantized model (#1066)
## Description
Adds the `LFM2_VL_450M_QUANTIZED` model constant for the new 450M
quantized LFM2.5-VL variant. Reuses the existing LFM2.5-VL tokenizer and
tokenizer config, and registers the model in `MODEL_REGISTRY`.
### Introduces a breaking change?
- [ ] Yes
- [x] No
### Type of change
- [ ] Bug fix (change which fixes an issue)
- [x] New feature (change which adds functionality)
- [ ] Documentation update (improves or adds clarity to existing
documentation)
- [ ] Other (chores, tests, code style improvements etc.)
### Tested on
- [ ] iOS
- [ ] Android
### Testing instructions
1. Import `LFM2_VL_450M_QUANTIZED` from `react-native-executorch`.
2. Pass it to `useLLM` and verify the model downloads and runs inference
with image input.
### Screenshots
### Related issues
### Checklist
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [x] My changes generate no new warnings
### Additional notes
Tokenizer and tokenizer config are shared with `LFM2_VL_1_6B_QUANTIZED`.1 parent dc5664f commit eeaa8a2
File tree
3 files changed
+23
-4
lines changed- docs
- docs/03-hooks/01-natural-language-processing
- versioned_docs/version-0.8.x/03-hooks/01-natural-language-processing
- packages/react-native-executorch/src/constants
3 files changed
+23
-4
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
567 | 568 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
567 | 568 | | |
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
437 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
438 | 443 | | |
439 | 444 | | |
440 | 445 | | |
| |||
443 | 448 | | |
444 | 449 | | |
445 | 450 | | |
446 | | - | |
447 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
448 | 464 | | |
449 | 465 | | |
450 | 466 | | |
| |||
1112 | 1128 | | |
1113 | 1129 | | |
1114 | 1130 | | |
| 1131 | + | |
1115 | 1132 | | |
1116 | 1133 | | |
1117 | 1134 | | |
| |||
0 commit comments