Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
17 changes: 9 additions & 8 deletions docs/docs/03-hooks/01-natural-language-processing/useLLM.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,12 @@ Depending on selected model and the user's device generation speed can be above

## Available models

| Model Family | Sizes | Quantized |
| ---------------------------------------------------------------------------------------- | :--------------: | :-------: |
| [Hammer 2.1](https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1) | 0.5B, 1.5B, 3B | ✅ |
| [Qwen 2.5](https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5) | 0.5B, 1.5B, 3B | ✅ |
| [Qwen 3](https://huggingface.co/software-mansion/react-native-executorch-qwen-3) | 0.6B, 1.7B, 4B | ✅ |
| [Phi 4 Mini](https://huggingface.co/software-mansion/react-native-executorch-phi-4-mini) | 4B | ✅ |
| [SmolLM 2](https://huggingface.co/software-mansion/react-native-executorch-smolLm-2) | 135M, 360M, 1.7B | ✅ |
| [LLaMA 3.2](https://huggingface.co/software-mansion/react-native-executorch-llama-3.2) | 1B, 3B | ✅ |
| Model Family | Sizes | Quantized |
| ------------------------------------------------------------------------------------------------------------ | :--------------: | :-------: |
| [Hammer 2.1](https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1) | 0.5B, 1.5B, 3B | ✅ |
| [Qwen 2.5](https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5) | 0.5B, 1.5B, 3B | ✅ |
| [Qwen 3](https://huggingface.co/software-mansion/react-native-executorch-qwen-3) | 0.6B, 1.7B, 4B | ✅ |
| [Phi 4 Mini](https://huggingface.co/software-mansion/react-native-executorch-phi-4-mini) | 4B | ✅ |
| [SmolLM 2](https://huggingface.co/software-mansion/react-native-executorch-smolLm-2) | 135M, 360M, 1.7B | ✅ |
| [LLaMA 3.2](https://huggingface.co/software-mansion/react-native-executorch-llama-3.2) | 1B, 3B | ✅ |
| [LFM2.5-1.2B-Instruct](https://huggingface.co/software-mansion/react-native-executorch-lfm2.5-1.2B-instruct) | 1.2B | ✅ |
2 changes: 2 additions & 0 deletions docs/docs/06-api-reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
- [HAMMER2_1_1_5B_QUANTIZED](variables/HAMMER2_1_1_5B_QUANTIZED.md)
- [HAMMER2_1_3B](variables/HAMMER2_1_3B.md)
- [HAMMER2_1_3B_QUANTIZED](variables/HAMMER2_1_3B_QUANTIZED.md)
- [LFM2_5_1_2B_INSTRUCT](variables/LFM2_5_1_2B_INSTRUCT.md)
- [LFM2_5_1_2B_INSTRUCT_QUANTIZED](variables/LFM2_5_1_2B_INSTRUCT_QUANTIZED.md)
- [LLAMA3_2_1B](variables/LLAMA3_2_1B.md)
- [LLAMA3_2_1B_QLORA](variables/LLAMA3_2_1B_QLORA.md)
- [LLAMA3_2_1B_SPINQUANT](variables/LLAMA3_2_1B_SPINQUANT.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/typedoc-sidebar.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/ALL_MINILM_L6_V2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **ALL_MINILM_L6_V2**: `object`

Defined in: [constants/modelUrls.ts:562](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L562)
Defined in: [constants/modelUrls.ts:586](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L586)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/ALL_MPNET_BASE_V2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **ALL_MPNET_BASE_V2**: `object`

Defined in: [constants/modelUrls.ts:570](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L570)
Defined in: [constants/modelUrls.ts:594](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L594)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **BK_SDM_TINY_VPRED_256**: `object`

Defined in: [constants/modelUrls.ts:615](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L615)
Defined in: [constants/modelUrls.ts:639](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L639)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **BK_SDM_TINY_VPRED_512**: `object`

Defined in: [constants/modelUrls.ts:604](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L604)
Defined in: [constants/modelUrls.ts:628](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L628)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **CLIP_VIT_BASE_PATCH32_IMAGE**: `object`

Defined in: [constants/modelUrls.ts:543](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L543)
Defined in: [constants/modelUrls.ts:567](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L567)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **CLIP_VIT_BASE_PATCH32_TEXT**: `object`

Defined in: [constants/modelUrls.ts:594](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L594)
Defined in: [constants/modelUrls.ts:618](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L618)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **DEEPLAB_V3_RESNET50**: `object`

Defined in: [constants/modelUrls.ts:523](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L523)
Defined in: [constants/modelUrls.ts:547](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L547)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/EFFICIENTNET_V2_S.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **EFFICIENTNET_V2_S**: `object`

Defined in: [constants/modelUrls.ts:359](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L359)
Defined in: [constants/modelUrls.ts:383](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L383)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/FSMN_VAD.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **FSMN_VAD**: `object`

Defined in: [constants/modelUrls.ts:629](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L629)
Defined in: [constants/modelUrls.ts:653](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L653)

## Type Declaration

Expand Down
19 changes: 19 additions & 0 deletions docs/docs/06-api-reference/variables/LFM2_5_1_2B_INSTRUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Variable: LFM2_5_1_2B_INSTRUCT

> `const` **LFM2_5_1_2B_INSTRUCT**: `object`

Defined in: [constants/modelUrls.ts:359](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L359)

## Type Declaration

### modelSource

> **modelSource**: `string` = `LFM2_5_1_2B_INSTRUCT_MODEL`

### tokenizerConfigSource

> **tokenizerConfigSource**: `string` = `LFM2_5_1_2B_TOKENIZER_CONFIG`

### tokenizerSource

> **tokenizerSource**: `string` = `LFM2_5_1_2B_TOKENIZER`
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Variable: LFM2_5_1_2B_INSTRUCT_QUANTIZED

> `const` **LFM2_5_1_2B_INSTRUCT_QUANTIZED**: `object`

Defined in: [constants/modelUrls.ts:368](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L368)

## Type Declaration

### modelSource

> **modelSource**: `string` = `LFM2_5_1_2B_INSTRUCT_QUANTIZED_MODEL`

### tokenizerConfigSource

> **tokenizerConfigSource**: `string` = `LFM2_5_1_2B_TOKENIZER_CONFIG`

### tokenizerSource

> **tokenizerSource**: `string` = `LFM2_5_1_2B_TOKENIZER`
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **MULTI_QA_MINILM_L6_COS_V1**: `object`

Defined in: [constants/modelUrls.ts:578](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L578)
Defined in: [constants/modelUrls.ts:602](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L602)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **MULTI_QA_MPNET_BASE_DOT_V1**: `object`

Defined in: [constants/modelUrls.ts:586](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L586)
Defined in: [constants/modelUrls.ts:610](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L610)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **SELFIE_SEGMENTATION**: `object`

Defined in: [constants/modelUrls.ts:532](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L532)
Defined in: [constants/modelUrls.ts:556](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L556)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **SSDLITE_320_MOBILENET_V3_LARGE**: `object`

Defined in: [constants/modelUrls.ts:369](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L369)
Defined in: [constants/modelUrls.ts:393](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L393)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **STYLE_TRANSFER_CANDY**: `object`

Defined in: [constants/modelUrls.ts:394](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L394)
Defined in: [constants/modelUrls.ts:418](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L418)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **STYLE_TRANSFER_MOSAIC**: `object`

Defined in: [constants/modelUrls.ts:401](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L401)
Defined in: [constants/modelUrls.ts:425](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L425)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **STYLE_TRANSFER_RAIN_PRINCESS**: `object`

Defined in: [constants/modelUrls.ts:408](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L408)
Defined in: [constants/modelUrls.ts:432](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L432)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **STYLE_TRANSFER_UDNIE**: `object`

Defined in: [constants/modelUrls.ts:415](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L415)
Defined in: [constants/modelUrls.ts:439](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L439)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/WHISPER_BASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **WHISPER_BASE**: `object`

Defined in: [constants/modelUrls.ts:500](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L500)
Defined in: [constants/modelUrls.ts:524](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L524)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/WHISPER_BASE_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **WHISPER_BASE_EN**: `object`

Defined in: [constants/modelUrls.ts:470](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L470)
Defined in: [constants/modelUrls.ts:494](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L494)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/WHISPER_SMALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **WHISPER_SMALL**: `object`

Defined in: [constants/modelUrls.ts:510](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L510)
Defined in: [constants/modelUrls.ts:534](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L534)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/WHISPER_SMALL_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **WHISPER_SMALL_EN**: `object`

Defined in: [constants/modelUrls.ts:480](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L480)
Defined in: [constants/modelUrls.ts:504](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L504)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/WHISPER_TINY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **WHISPER_TINY**: `object`

Defined in: [constants/modelUrls.ts:490](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L490)
Defined in: [constants/modelUrls.ts:514](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L514)

## Type Declaration

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/06-api-reference/variables/WHISPER_TINY_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **WHISPER_TINY_EN**: `object`

Defined in: [constants/modelUrls.ts:450](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L450)
Defined in: [constants/modelUrls.ts:474](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L474)

## Type Declaration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> `const` **WHISPER_TINY_EN_QUANTIZED**: `object`

Defined in: [constants/modelUrls.ts:460](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L460)
Defined in: [constants/modelUrls.ts:484](https://github.com/software-mansion/react-native-executorch/blob/main/packages/react-native-executorch/src/constants/modelUrls.ts#L484)

## Type Declaration

Expand Down
26 changes: 25 additions & 1 deletion packages/react-native-executorch/src/constants/modelUrls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Platform } from 'react-native';
import { URL_PREFIX, VERSION_TAG } from './versions';
import { URL_PREFIX, VERSION_TAG, NEXT_VERSION_TAG } from './versions';

// LLMs

Expand Down Expand Up @@ -347,6 +347,30 @@ export const PHI_4_MINI_4B_QUANTIZED = {
tokenizerConfigSource: PHI_4_MINI_TOKENIZER_CONFIG,
};

// LFM2.5-1.2B-Instruct
const LFM2_5_1_2B_INSTRUCT_MODEL = `${URL_PREFIX}-lfm2.5-1.2B-instruct/${NEXT_VERSION_TAG}/original/lfm2_5_1_2b_fp16.pte`;
const LFM2_5_1_2B_INSTRUCT_QUANTIZED_MODEL = `${URL_PREFIX}-lfm2.5-1.2B-instruct/${NEXT_VERSION_TAG}/quantized/lfm2_5_1_2b_8da4w.pte`;
const LFM2_5_1_2B_TOKENIZER = `${URL_PREFIX}-lfm2.5-1.2B-instruct/${NEXT_VERSION_TAG}/tokenizer.json`;
const LFM2_5_1_2B_TOKENIZER_CONFIG = `${URL_PREFIX}-lfm2.5-1.2B-instruct/${NEXT_VERSION_TAG}/tokenizer_config.json`;

/**
* @category Models - LMM
*/
export const LFM2_5_1_2B_INSTRUCT = {
modelSource: LFM2_5_1_2B_INSTRUCT_MODEL,
tokenizerSource: LFM2_5_1_2B_TOKENIZER,
tokenizerConfigSource: LFM2_5_1_2B_TOKENIZER_CONFIG,
};

/**
* @category Models - LMM
*/
export const LFM2_5_1_2B_INSTRUCT_QUANTIZED = {
modelSource: LFM2_5_1_2B_INSTRUCT_QUANTIZED_MODEL,
tokenizerSource: LFM2_5_1_2B_TOKENIZER,
tokenizerConfigSource: LFM2_5_1_2B_TOKENIZER_CONFIG,
};

// Classification
const EFFICIENTNET_V2_S_MODEL =
Platform.OS === `ios`
Expand Down
Loading