Skip to content

Commit 487958a

Browse files
mkopcinsNorbertKlockiewiczMateusz Kopciński
authored
chore: release 0.8.2 (#1068)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Introduces a breaking change? - [ ] Yes - [ ] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] 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 <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] 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 - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. --> --------- Co-authored-by: Norbert Klockiewicz <Nklockiewicz12@gmail.com> Co-authored-by: Mateusz Kopciński <mateusz.kopcinski@swmansnion.com>
1 parent e33dc74 commit 487958a

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

docs/docs/03-hooks/01-natural-language-processing/useLLM.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,4 +561,5 @@ const handleGenerate = async () => {
561561
| [SmolLM 2](https://huggingface.co/software-mansion/react-native-executorch-smolLm-2) | 135M, 360M, 1.7B || - |
562562
| [LLaMA 3.2](https://huggingface.co/software-mansion/react-native-executorch-llama-3.2) | 1B, 3B || - |
563563
| [LFM2.5](https://huggingface.co/software-mansion/react-native-executorch-lfm-2.5) | 350M, 1.2B, 1.6B-VL || - |
564+
| [LFM2.5-VL-450M](https://huggingface.co/software-mansion/react-native-executorch-lfm-2.5/tree/main/lfm2.5-VL-450M) | 450M || vision |
564565
| [LFM2.5-VL-1.6B](https://huggingface.co/software-mansion/react-native-executorch-lfm-2.5/tree/main/lfm2.5-VL-1.6B) | 1.6B || vision |

docs/versioned_docs/version-0.8.x/03-hooks/01-natural-language-processing/useLLM.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,4 +561,5 @@ const handleGenerate = async () => {
561561
| [SmolLM 2](https://huggingface.co/software-mansion/react-native-executorch-smolLm-2) | 135M, 360M, 1.7B || - |
562562
| [LLaMA 3.2](https://huggingface.co/software-mansion/react-native-executorch-llama-3.2) | 1B, 3B || - |
563563
| [LFM2.5](https://huggingface.co/software-mansion/react-native-executorch-lfm-2.5) | 350M, 1.2B, 1.6B-VL || - |
564+
| [LFM2.5-VL-450M](https://huggingface.co/software-mansion/react-native-executorch-lfm-2.5/tree/v0.8.0/lfm2.5-VL-450M) | 450M || vision |
564565
| [LFM2.5-VL-1.6B](https://huggingface.co/software-mansion/react-native-executorch-lfm-2.5/tree/v0.8.0/lfm2.5-VL-1.6B) | 1.6B || vision |

packages/react-native-executorch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-executorch",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "An easy way to run AI models in React Native with ExecuTorch",
55
"source": "./src/index.ts",
66
"main": "./lib/module/index.js",

packages/react-native-executorch/src/constants/modelUrls.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,13 @@ export const LFM2_5_350M_QUANTIZED = {
433433

434434
// LFM2.5-VL-1.6B
435435
const LFM2_VL_1_6B_QUANTIZED_MODEL = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-1.6B/quantized/lfm2_5_vl_1_6b_8da4w_xnnpack.pte`;
436-
const LFM2_VL_TOKENIZER = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-1.6B/tokenizer.json`;
437-
const LFM2_VL_TOKENIZER_CONFIG = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-1.6B/tokenizer_config.json`;
436+
const LFM2_VL_1_6B_TOKENIZER = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-1.6B/tokenizer.json`;
437+
const LFM2_VL_1_6B_TOKENIZER_CONFIG = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-1.6B/tokenizer_config.json`;
438+
439+
// LFM2.5-VL-450M
440+
const LFM2_VL_450M_QUANTIZED_MODEL = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-450M/lfm2_5_vl_450m_8da4w_xnnpack.pte`;
441+
const LFM2_VL_450M_TOKENIZER = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-450M/tokenizer.json`;
442+
const LFM2_VL_450M_TOKENIZER_CONFIG = `${URL_PREFIX}-lfm-2.5/${VERSION_TAG}/lfm2.5-VL-450M/tokenizer_config.json`;
438443

439444
/**
440445
* @category Models - VLM
@@ -443,8 +448,19 @@ export const LFM2_VL_1_6B_QUANTIZED = {
443448
modelName: 'lfm2.5-vl-1.6b-quantized',
444449
capabilities: ['vision'],
445450
modelSource: LFM2_VL_1_6B_QUANTIZED_MODEL,
446-
tokenizerSource: LFM2_VL_TOKENIZER,
447-
tokenizerConfigSource: LFM2_VL_TOKENIZER_CONFIG,
451+
tokenizerSource: LFM2_VL_1_6B_TOKENIZER,
452+
tokenizerConfigSource: LFM2_VL_1_6B_TOKENIZER_CONFIG,
453+
} as const;
454+
455+
/**
456+
* @category Models - VLM
457+
*/
458+
export const LFM2_VL_450M_QUANTIZED = {
459+
modelName: 'lfm2.5-vl-450m-quantized',
460+
capabilities: ['vision'],
461+
modelSource: LFM2_VL_450M_QUANTIZED_MODEL,
462+
tokenizerSource: LFM2_VL_450M_TOKENIZER,
463+
tokenizerConfigSource: LFM2_VL_450M_TOKENIZER_CONFIG,
448464
} as const;
449465

450466
// Classification
@@ -1106,6 +1122,7 @@ export const MODEL_REGISTRY = {
11061122
LFM2_5_1_2B_INSTRUCT,
11071123
LFM2_5_1_2B_INSTRUCT_QUANTIZED,
11081124
LFM2_VL_1_6B_QUANTIZED,
1125+
LFM2_VL_450M_QUANTIZED,
11091126
EFFICIENTNET_V2_S,
11101127
EFFICIENTNET_V2_S_QUANTIZED,
11111128
SSDLITE_320_MOBILENET_V3_LARGE,

packages/react-native-executorch/src/types/llm.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export type LLMModelName =
5555
| 'lfm2.5-350m-quantized'
5656
| 'lfm2.5-1.2b-instruct'
5757
| 'lfm2.5-1.2b-instruct-quantized'
58-
| 'lfm2.5-vl-1.6b-quantized';
58+
| 'lfm2.5-vl-1.6b-quantized'
59+
| 'lfm2.5-vl-450m-quantized';
5960

6061
/**
6162
* Properties for initializing and configuring a Large Language Model (LLM) instance.

0 commit comments

Comments
 (0)