react-native-executorch 0.5.8 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -8
- package/lib/module/hooks/general/useExecutorchModule.js +1 -3
- package/lib/module/hooks/general/useExecutorchModule.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/general/useExecutorchModule.ts +1 -1
- package/lib/Error.js +0 -53
- package/lib/ThreadPool.d.ts +0 -10
- package/lib/ThreadPool.js +0 -28
- package/lib/common/Logger.d.ts +0 -8
- package/lib/common/Logger.js +0 -19
- package/lib/constants/directories.js +0 -2
- package/lib/constants/llmDefaults.d.ts +0 -6
- package/lib/constants/llmDefaults.js +0 -16
- package/lib/constants/modelUrls.d.ts +0 -223
- package/lib/constants/modelUrls.js +0 -322
- package/lib/constants/ocr/models.d.ts +0 -882
- package/lib/constants/ocr/models.js +0 -182
- package/lib/constants/ocr/symbols.js +0 -139
- package/lib/constants/sttDefaults.d.ts +0 -28
- package/lib/constants/sttDefaults.js +0 -68
- package/lib/controllers/LLMController.d.ts +0 -47
- package/lib/controllers/LLMController.js +0 -213
- package/lib/controllers/OCRController.js +0 -67
- package/lib/controllers/SpeechToTextController.d.ts +0 -56
- package/lib/controllers/SpeechToTextController.js +0 -349
- package/lib/controllers/VerticalOCRController.js +0 -70
- package/lib/hooks/computer_vision/useClassification.d.ts +0 -15
- package/lib/hooks/computer_vision/useClassification.js +0 -7
- package/lib/hooks/computer_vision/useImageEmbeddings.d.ts +0 -15
- package/lib/hooks/computer_vision/useImageEmbeddings.js +0 -7
- package/lib/hooks/computer_vision/useImageSegmentation.d.ts +0 -38
- package/lib/hooks/computer_vision/useImageSegmentation.js +0 -7
- package/lib/hooks/computer_vision/useOCR.d.ts +0 -20
- package/lib/hooks/computer_vision/useOCR.js +0 -41
- package/lib/hooks/computer_vision/useObjectDetection.d.ts +0 -15
- package/lib/hooks/computer_vision/useObjectDetection.js +0 -7
- package/lib/hooks/computer_vision/useStyleTransfer.d.ts +0 -15
- package/lib/hooks/computer_vision/useStyleTransfer.js +0 -7
- package/lib/hooks/computer_vision/useVerticalOCR.d.ts +0 -21
- package/lib/hooks/computer_vision/useVerticalOCR.js +0 -43
- package/lib/hooks/general/useExecutorchModule.d.ts +0 -13
- package/lib/hooks/general/useExecutorchModule.js +0 -7
- package/lib/hooks/natural_language_processing/useLLM.d.ts +0 -10
- package/lib/hooks/natural_language_processing/useLLM.js +0 -78
- package/lib/hooks/natural_language_processing/useSpeechToText.d.ts +0 -27
- package/lib/hooks/natural_language_processing/useSpeechToText.js +0 -49
- package/lib/hooks/natural_language_processing/useTextEmbeddings.d.ts +0 -16
- package/lib/hooks/natural_language_processing/useTextEmbeddings.js +0 -7
- package/lib/hooks/natural_language_processing/useTokenizer.d.ts +0 -17
- package/lib/hooks/natural_language_processing/useTokenizer.js +0 -52
- package/lib/hooks/useModule.js +0 -45
- package/lib/hooks/useNonStaticModule.d.ts +0 -20
- package/lib/hooks/useNonStaticModule.js +0 -49
- package/lib/index.d.ts +0 -48
- package/lib/index.js +0 -58
- package/lib/modules/BaseModule.js +0 -25
- package/lib/modules/BaseNonStaticModule.js +0 -14
- package/lib/modules/computer_vision/ClassificationModule.d.ts +0 -8
- package/lib/modules/computer_vision/ClassificationModule.js +0 -17
- package/lib/modules/computer_vision/ImageEmbeddingsModule.d.ts +0 -8
- package/lib/modules/computer_vision/ImageEmbeddingsModule.js +0 -17
- package/lib/modules/computer_vision/ImageSegmentationModule.d.ts +0 -11
- package/lib/modules/computer_vision/ImageSegmentationModule.js +0 -27
- package/lib/modules/computer_vision/OCRModule.d.ts +0 -14
- package/lib/modules/computer_vision/OCRModule.js +0 -17
- package/lib/modules/computer_vision/ObjectDetectionModule.d.ts +0 -9
- package/lib/modules/computer_vision/ObjectDetectionModule.js +0 -17
- package/lib/modules/computer_vision/StyleTransferModule.d.ts +0 -8
- package/lib/modules/computer_vision/StyleTransferModule.js +0 -17
- package/lib/modules/computer_vision/VerticalOCRModule.d.ts +0 -14
- package/lib/modules/computer_vision/VerticalOCRModule.js +0 -19
- package/lib/modules/general/ExecutorchModule.d.ts +0 -7
- package/lib/modules/general/ExecutorchModule.js +0 -14
- package/lib/modules/natural_language_processing/LLMModule.d.ts +0 -28
- package/lib/modules/natural_language_processing/LLMModule.js +0 -45
- package/lib/modules/natural_language_processing/SpeechToTextModule.d.ts +0 -24
- package/lib/modules/natural_language_processing/SpeechToTextModule.js +0 -36
- package/lib/modules/natural_language_processing/TextEmbeddingsModule.d.ts +0 -9
- package/lib/modules/natural_language_processing/TextEmbeddingsModule.js +0 -21
- package/lib/modules/natural_language_processing/TokenizerModule.d.ts +0 -12
- package/lib/modules/natural_language_processing/TokenizerModule.js +0 -30
- package/lib/native/NativeETInstaller.js +0 -2
- package/lib/native/NativeOCR.js +0 -2
- package/lib/native/NativeVerticalOCR.js +0 -2
- package/lib/native/RnExecutorchModules.d.ts +0 -7
- package/lib/native/RnExecutorchModules.js +0 -18
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/common.d.ts +0 -32
- package/lib/types/common.js +0 -25
- package/lib/types/imageSegmentation.js +0 -26
- package/lib/types/llm.d.ts +0 -46
- package/lib/types/llm.js +0 -9
- package/lib/types/objectDetection.js +0 -94
- package/lib/types/ocr.js +0 -1
- package/lib/types/stt.d.ts +0 -94
- package/lib/types/stt.js +0 -85
- package/lib/utils/ResourceFetcher.d.ts +0 -24
- package/lib/utils/ResourceFetcher.js +0 -305
- package/lib/utils/ResourceFetcherUtils.d.ts +0 -54
- package/lib/utils/ResourceFetcherUtils.js +0 -127
- package/lib/utils/llm.d.ts +0 -6
- package/lib/utils/llm.js +0 -72
- package/lib/utils/stt.js +0 -21
package/README.md
CHANGED
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://github.com/software-mansion/react-native-executorch/blob/release/0.5/README.md">English</a>
|
|
14
|
+
<a href="https://github.com/software-mansion/react-native-executorch/blob/release/0.5/readmes/README_es.md">Español</a>
|
|
15
|
+
<a href="https://github.com/software-mansion/react-native-executorch/blob/release/0.5/readmes/README_fr.md">Français</a>
|
|
16
|
+
<a href="https://github.com/software-mansion/react-native-executorch/blob/release/0.5/readmes/README_cn.md">简体中文</a>
|
|
17
|
+
<a href="https://github.com/software-mansion/react-native-executorch/blob/release/0.5/readmes/README_pt.md">Português</a>
|
|
18
|
+
<a href="https://github.com/software-mansion/react-native-executorch/blob/release/0.5/readmes/README_in.md">हिंदी</a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
12
21
|
**React Native ExecuTorch** provides a declarative way to run AI models on-device using React Native, powered by **ExecuTorch** :rocket:. It offers out-of-the-box support for a wide range of LLMs, computer vision models, and more. Visit our [HuggingFace](https://huggingface.co/software-mansion) page to explore these models.
|
|
13
22
|
|
|
14
23
|
**ExecuTorch**, developed by Meta, is a novel framework allowing AI model execution on devices like mobile phones or microcontrollers.
|
|
@@ -21,10 +30,11 @@ React Native ExecuTorch bridges the gap between React Native and native platform
|
|
|
21
30
|
**Table of contents:**
|
|
22
31
|
|
|
23
32
|
- [:yin_yang: Supported versions](#yin_yang-supported-versions)
|
|
24
|
-
- [:robot: Ready-made models](#robot-ready-made-models)
|
|
25
33
|
- [:books: Documentation](#books-documentation)
|
|
34
|
+
- [:earth_africa: Real-World Example](#earth_africa-real-world-example)
|
|
26
35
|
- [:llama: Quickstart - Running Llama](#llama-quickstart---running-llama)
|
|
27
|
-
- [:calling:
|
|
36
|
+
- [:calling: Demo apps](#calling-demo-apps)
|
|
37
|
+
- [:robot: Ready-made models](#robot-ready-made-models)
|
|
28
38
|
- [:balance_scale: License](#balance_scale-license)
|
|
29
39
|
- [:soon: What's next?](#soon-whats-next)
|
|
30
40
|
|
|
@@ -38,15 +48,17 @@ The minimal supported version are:
|
|
|
38
48
|
> [!IMPORTANT]
|
|
39
49
|
> React Native Executorch supports only the [New React Native architecture](https://reactnative.dev/architecture/landing-page).
|
|
40
50
|
|
|
41
|
-
## :robot: Ready-made models
|
|
42
|
-
|
|
43
|
-
Our library has a number of ready-to-use AI models; a complete list is available in the documentation. If you're interested in running your own AI model, you need to first export it to the `.pte` format. Instructions on how to do this are available in the [Python API](https://pypi.org/project/executorch/).
|
|
44
|
-
|
|
45
51
|
## :books: Documentation
|
|
46
52
|
|
|
47
53
|
Check out how our library can help you build your React Native AI features by visiting our docs:
|
|
48
54
|
https://docs.swmansion.com/react-native-executorch
|
|
49
55
|
|
|
56
|
+
## :earth_africa: Real-World Example
|
|
57
|
+
|
|
58
|
+
React Native ExecuTorch is powering [Private Mind](https://github.com/software-mansion-labs/private-mind), a privacy-first mobile AI app available on [App Store](https://apps.apple.com/gb/app/private-mind/id6746713439) and [Google Play](https://play.google.com/store/apps/details?id=com.swmansion.privatemind).
|
|
59
|
+
|
|
60
|
+
<img width="2720" height="1085" alt="Private Mind promo" src="https://github.com/user-attachments/assets/b12296fe-19ac-48fc-9726-da9242700346" />
|
|
61
|
+
|
|
50
62
|
## :llama: **Quickstart - Running Llama**
|
|
51
63
|
|
|
52
64
|
**Get started with AI-powered text generation in 3 easy steps!**
|
|
@@ -93,12 +105,12 @@ const handleGenerate = async () => {
|
|
|
93
105
|
};
|
|
94
106
|
```
|
|
95
107
|
|
|
96
|
-
## :calling:
|
|
108
|
+
## :calling: Demo apps
|
|
97
109
|
|
|
98
110
|
We currently host a few example [apps](https://github.com/software-mansion/react-native-executorch/tree/main/apps) demonstrating use cases of our library:
|
|
99
111
|
|
|
100
112
|
- `llm` - Chat application showcasing use of LLMs
|
|
101
|
-
- `speech-to-text` - Whisper
|
|
113
|
+
- `speech-to-text` - Whisper model ready for transcription tasks
|
|
102
114
|
- `computer-vision` - Computer vision related tasks
|
|
103
115
|
- `text-embeddings` - Computing text representations for semantic search
|
|
104
116
|
|
|
@@ -117,6 +129,10 @@ yarn expo run:< ios | android >
|
|
|
117
129
|
> [!WARNING]
|
|
118
130
|
> Running LLMs requires a significant amount of RAM. If you are encountering unexpected app crashes, try to increase the amount of RAM allocated to the emulator.
|
|
119
131
|
|
|
132
|
+
## :robot: Ready-made models
|
|
133
|
+
|
|
134
|
+
Our library has a number of ready-to-use AI models; a complete list is available in the documentation. If you're interested in running your own AI model, you need to first export it to the `.pte` format. Instructions on how to do this are available in the [Python API](https://docs.pytorch.org/executorch/stable/using-executorch-export.html) and [optimum-executorch README](https://github.com/huggingface/optimum-executorch?tab=readme-ov-file#option-2-export-and-load-separately).
|
|
135
|
+
|
|
120
136
|
## :balance_scale: License
|
|
121
137
|
|
|
122
138
|
This library is licensed under [The MIT License](./LICENSE).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ExecutorchModule","useModule","useExecutorchModule","modelSource","preventLoad","module","model"],"sourceRoot":"../../../../src","sources":["hooks/general/useExecutorchModule.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,wCAAwC;AAEzE,SAASC,SAAS,QAAQ,cAAc;AAOxC,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,WAAW,GAAG;AACT,CAAC,KACNH,SAAS,CAAC;EACRI,MAAM,EAAEL,gBAAgB;EACxBM,KAAK,
|
|
1
|
+
{"version":3,"names":["ExecutorchModule","useModule","useExecutorchModule","modelSource","preventLoad","module","model"],"sourceRoot":"../../../../src","sources":["hooks/general/useExecutorchModule.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,wCAAwC;AAEzE,SAASC,SAAS,QAAQ,cAAc;AAOxC,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,WAAW,GAAG;AACT,CAAC,KACNH,SAAS,CAAC;EACRI,MAAM,EAAEL,gBAAgB;EACxBM,KAAK,EAAEH,WAAW;EAClBC;AACF,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
package/lib/Error.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export var ETError;
|
|
2
|
-
(function (ETError) {
|
|
3
|
-
// React-native-ExecuTorch errors
|
|
4
|
-
ETError[ETError["UndefinedError"] = 101] = "UndefinedError";
|
|
5
|
-
ETError[ETError["ModuleNotLoaded"] = 102] = "ModuleNotLoaded";
|
|
6
|
-
ETError[ETError["FileWriteFailed"] = 103] = "FileWriteFailed";
|
|
7
|
-
ETError[ETError["ModelGenerating"] = 104] = "ModelGenerating";
|
|
8
|
-
ETError[ETError["LanguageNotSupported"] = 105] = "LanguageNotSupported";
|
|
9
|
-
ETError[ETError["InvalidModelSource"] = 255] = "InvalidModelSource";
|
|
10
|
-
//SpeechToText errors
|
|
11
|
-
ETError[ETError["MultilingualConfiguration"] = 160] = "MultilingualConfiguration";
|
|
12
|
-
ETError[ETError["MissingDataChunk"] = 161] = "MissingDataChunk";
|
|
13
|
-
ETError[ETError["StreamingNotStarted"] = 162] = "StreamingNotStarted";
|
|
14
|
-
// ExecuTorch mapped errors
|
|
15
|
-
// Based on: https://github.com/pytorch/executorch/blob/main/runtime/core/error.h
|
|
16
|
-
// System errors
|
|
17
|
-
ETError[ETError["Ok"] = 0] = "Ok";
|
|
18
|
-
ETError[ETError["Internal"] = 1] = "Internal";
|
|
19
|
-
ETError[ETError["InvalidState"] = 2] = "InvalidState";
|
|
20
|
-
ETError[ETError["EndOfMethod"] = 3] = "EndOfMethod";
|
|
21
|
-
// Logical errors
|
|
22
|
-
ETError[ETError["NotSupported"] = 16] = "NotSupported";
|
|
23
|
-
ETError[ETError["NotImplemented"] = 17] = "NotImplemented";
|
|
24
|
-
ETError[ETError["InvalidArgument"] = 18] = "InvalidArgument";
|
|
25
|
-
ETError[ETError["InvalidType"] = 19] = "InvalidType";
|
|
26
|
-
ETError[ETError["OperatorMissing"] = 20] = "OperatorMissing";
|
|
27
|
-
// Resource errors
|
|
28
|
-
ETError[ETError["NotFound"] = 32] = "NotFound";
|
|
29
|
-
ETError[ETError["MemoryAllocationFailed"] = 33] = "MemoryAllocationFailed";
|
|
30
|
-
ETError[ETError["AccessFailed"] = 34] = "AccessFailed";
|
|
31
|
-
ETError[ETError["InvalidProgram"] = 35] = "InvalidProgram";
|
|
32
|
-
ETError[ETError["InvalidExternalData"] = 36] = "InvalidExternalData";
|
|
33
|
-
ETError[ETError["OutOfResources"] = 37] = "OutOfResources";
|
|
34
|
-
// Delegate errors
|
|
35
|
-
ETError[ETError["DelegateInvalidCompatibility"] = 48] = "DelegateInvalidCompatibility";
|
|
36
|
-
ETError[ETError["DelegateMemoryAllocationFailed"] = 49] = "DelegateMemoryAllocationFailed";
|
|
37
|
-
ETError[ETError["DelegateInvalidHandle"] = 50] = "DelegateInvalidHandle";
|
|
38
|
-
})(ETError || (ETError = {}));
|
|
39
|
-
export const getError = (e) => {
|
|
40
|
-
if (typeof e === 'number') {
|
|
41
|
-
if (e in ETError)
|
|
42
|
-
return ETError[e];
|
|
43
|
-
return ETError[ETError.UndefinedError];
|
|
44
|
-
}
|
|
45
|
-
// try to extract number from message (can contain false positives)
|
|
46
|
-
const error = e;
|
|
47
|
-
const errorCode = parseInt(error.message, 10);
|
|
48
|
-
const message = Number.isNaN(errorCode)
|
|
49
|
-
? error.message
|
|
50
|
-
: ' ' + error.message.slice(`${errorCode}`.length).trimStart();
|
|
51
|
-
const ETErrorMessage = (errorCode in ETError ? ETError[errorCode] : ETError[ETError.UndefinedError]);
|
|
52
|
-
return ETErrorMessage + message;
|
|
53
|
-
};
|
package/lib/ThreadPool.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare class NativeThreadPool {
|
|
2
|
-
constructor();
|
|
3
|
-
executeNative(functionName: any, args: any): Promise<any>;
|
|
4
|
-
runInference(prompt: any, options?: {}): Promise<any>;
|
|
5
|
-
processImage(imagePath: any, options?: {}): Promise<any>;
|
|
6
|
-
heavyComputation(data: any): Promise<any>;
|
|
7
|
-
getStats(): any;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: NativeThreadPool;
|
|
10
|
-
export default _default;
|
package/lib/ThreadPool.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// ThreadPool.js
|
|
2
|
-
class NativeThreadPool {
|
|
3
|
-
constructor() {
|
|
4
|
-
if (!global.NativeThreadPool) {
|
|
5
|
-
throw new Error('NativeThreadPool not installed');
|
|
6
|
-
}
|
|
7
|
-
this.pool = global.NativeThreadPool;
|
|
8
|
-
}
|
|
9
|
-
// Execute any native function
|
|
10
|
-
async executeNative(functionName, args) {
|
|
11
|
-
return await this.pool.executeNative(functionName, JSON.stringify(args));
|
|
12
|
-
}
|
|
13
|
-
// Specific methods for common tasks
|
|
14
|
-
async runInference(prompt, options = {}) {
|
|
15
|
-
return await this.executeNative('runInference', { prompt, ...options });
|
|
16
|
-
}
|
|
17
|
-
async processImage(imagePath, options = {}) {
|
|
18
|
-
return await this.executeNative('processImage', { imagePath, ...options });
|
|
19
|
-
}
|
|
20
|
-
async heavyComputation(data) {
|
|
21
|
-
return await this.executeNative('heavyComputation', data);
|
|
22
|
-
}
|
|
23
|
-
// Get thread pool statistics
|
|
24
|
-
getStats() {
|
|
25
|
-
return this.pool.getStats();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export default new NativeThreadPool();
|
package/lib/common/Logger.d.ts
DELETED
package/lib/common/Logger.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
export class Logger {
|
|
3
|
-
static PREFIX = '[React Native ExecuTorch]';
|
|
4
|
-
static log(...data) {
|
|
5
|
-
console.log(Logger.PREFIX, ...data);
|
|
6
|
-
}
|
|
7
|
-
static debug(...data) {
|
|
8
|
-
console.debug(Logger.PREFIX, ...data);
|
|
9
|
-
}
|
|
10
|
-
static info(...data) {
|
|
11
|
-
console.info(Logger.PREFIX, ...data);
|
|
12
|
-
}
|
|
13
|
-
static warn(...data) {
|
|
14
|
-
console.warn(Logger.PREFIX, ...data);
|
|
15
|
-
}
|
|
16
|
-
static error(...data) {
|
|
17
|
-
console.error(Logger.PREFIX, ...data);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ChatConfig, Message } from '../types/llm';
|
|
2
|
-
export declare const DEFAULT_SYSTEM_PROMPT = "You are a knowledgeable, efficient, and direct AI assistant. Provide concise answers, focusing on the key information needed. Offer suggestions tactfully when appropriate to improve outcomes. Engage in productive collaboration with the user. Don't return too much text.";
|
|
3
|
-
export declare const DEFAULT_STRUCTURED_OUTPUT_PROMPT: (structuredOutputSchema: string) => string;
|
|
4
|
-
export declare const DEFAULT_MESSAGE_HISTORY: Message[];
|
|
5
|
-
export declare const DEFAULT_CONTEXT_WINDOW_LENGTH = 5;
|
|
6
|
-
export declare const DEFAULT_CHAT_CONFIG: ChatConfig;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_SYSTEM_PROMPT = "You are a knowledgeable, efficient, and direct AI assistant. Provide concise answers, focusing on the key information needed. Offer suggestions tactfully when appropriate to improve outcomes. Engage in productive collaboration with the user. Don't return too much text.";
|
|
2
|
-
export const DEFAULT_STRUCTURED_OUTPUT_PROMPT = (structuredOutputSchema) => `The output should be formatted as a JSON instance that conforms to the JSON schema below.
|
|
3
|
-
|
|
4
|
-
As an example, for the schema {"properties": {"foo": {"title": "Foo", "description": "a list of strings", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]}
|
|
5
|
-
the object {"foo": ["bar", "baz"]} is a well-formatted instance of the schema. The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted.
|
|
6
|
-
|
|
7
|
-
Here is the output schema:
|
|
8
|
-
${structuredOutputSchema}
|
|
9
|
-
`;
|
|
10
|
-
export const DEFAULT_MESSAGE_HISTORY = [];
|
|
11
|
-
export const DEFAULT_CONTEXT_WINDOW_LENGTH = 5;
|
|
12
|
-
export const DEFAULT_CHAT_CONFIG = {
|
|
13
|
-
systemPrompt: DEFAULT_SYSTEM_PROMPT,
|
|
14
|
-
initialMessageHistory: DEFAULT_MESSAGE_HISTORY,
|
|
15
|
-
contextWindowLength: DEFAULT_CONTEXT_WINDOW_LENGTH,
|
|
16
|
-
};
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { AvailableModels } from '../types/stt';
|
|
2
|
-
export declare const LLAMA3_2_3B: {
|
|
3
|
-
modelSource: string;
|
|
4
|
-
tokenizerSource: string;
|
|
5
|
-
tokenizerConfigSource: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const LLAMA3_2_3B_QLORA: {
|
|
8
|
-
modelSource: string;
|
|
9
|
-
tokenizerSource: string;
|
|
10
|
-
tokenizerConfigSource: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const LLAMA3_2_3B_SPINQUANT: {
|
|
13
|
-
modelSource: string;
|
|
14
|
-
tokenizerSource: string;
|
|
15
|
-
tokenizerConfigSource: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const LLAMA3_2_1B: {
|
|
18
|
-
modelSource: string;
|
|
19
|
-
tokenizerSource: string;
|
|
20
|
-
tokenizerConfigSource: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const LLAMA3_2_1B_QLORA: {
|
|
23
|
-
modelSource: string;
|
|
24
|
-
tokenizerSource: string;
|
|
25
|
-
tokenizerConfigSource: string;
|
|
26
|
-
};
|
|
27
|
-
export declare const LLAMA3_2_1B_SPINQUANT: {
|
|
28
|
-
modelSource: string;
|
|
29
|
-
tokenizerSource: string;
|
|
30
|
-
tokenizerConfigSource: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const QWEN3_0_6B: {
|
|
33
|
-
modelSource: string;
|
|
34
|
-
tokenizerSource: string;
|
|
35
|
-
tokenizerConfigSource: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const QWEN3_0_6B_QUANTIZED: {
|
|
38
|
-
modelSource: string;
|
|
39
|
-
tokenizerSource: string;
|
|
40
|
-
tokenizerConfigSource: string;
|
|
41
|
-
};
|
|
42
|
-
export declare const QWEN3_1_7B: {
|
|
43
|
-
modelSource: string;
|
|
44
|
-
tokenizerSource: string;
|
|
45
|
-
tokenizerConfigSource: string;
|
|
46
|
-
};
|
|
47
|
-
export declare const QWEN3_1_7B_QUANTIZED: {
|
|
48
|
-
modelSource: string;
|
|
49
|
-
tokenizerSource: string;
|
|
50
|
-
tokenizerConfigSource: string;
|
|
51
|
-
};
|
|
52
|
-
export declare const QWEN3_4B: {
|
|
53
|
-
modelSource: string;
|
|
54
|
-
tokenizerSource: string;
|
|
55
|
-
tokenizerConfigSource: string;
|
|
56
|
-
};
|
|
57
|
-
export declare const QWEN3_4B_QUANTIZED: {
|
|
58
|
-
modelSource: string;
|
|
59
|
-
tokenizerSource: string;
|
|
60
|
-
tokenizerConfigSource: string;
|
|
61
|
-
};
|
|
62
|
-
export declare const HAMMER2_1_0_5B: {
|
|
63
|
-
modelSource: string;
|
|
64
|
-
tokenizerSource: string;
|
|
65
|
-
tokenizerConfigSource: string;
|
|
66
|
-
};
|
|
67
|
-
export declare const HAMMER2_1_0_5B_QUANTIZED: {
|
|
68
|
-
modelSource: string;
|
|
69
|
-
tokenizerSource: string;
|
|
70
|
-
tokenizerConfigSource: string;
|
|
71
|
-
};
|
|
72
|
-
export declare const HAMMER2_1_1_5B: {
|
|
73
|
-
modelSource: string;
|
|
74
|
-
tokenizerSource: string;
|
|
75
|
-
tokenizerConfigSource: string;
|
|
76
|
-
};
|
|
77
|
-
export declare const HAMMER2_1_1_5B_QUANTIZED: {
|
|
78
|
-
modelSource: string;
|
|
79
|
-
tokenizerSource: string;
|
|
80
|
-
tokenizerConfigSource: string;
|
|
81
|
-
};
|
|
82
|
-
export declare const HAMMER2_1_3B: {
|
|
83
|
-
modelSource: string;
|
|
84
|
-
tokenizerSource: string;
|
|
85
|
-
tokenizerConfigSource: string;
|
|
86
|
-
};
|
|
87
|
-
export declare const HAMMER2_1_3B_QUANTIZED: {
|
|
88
|
-
modelSource: string;
|
|
89
|
-
tokenizerSource: string;
|
|
90
|
-
tokenizerConfigSource: string;
|
|
91
|
-
};
|
|
92
|
-
export declare const SMOLLM2_1_135M: {
|
|
93
|
-
modelSource: string;
|
|
94
|
-
tokenizerSource: string;
|
|
95
|
-
tokenizerConfigSource: string;
|
|
96
|
-
};
|
|
97
|
-
export declare const SMOLLM2_1_135M_QUANTIZED: {
|
|
98
|
-
modelSource: string;
|
|
99
|
-
tokenizerSource: string;
|
|
100
|
-
tokenizerConfigSource: string;
|
|
101
|
-
};
|
|
102
|
-
export declare const SMOLLM2_1_360M: {
|
|
103
|
-
modelSource: string;
|
|
104
|
-
tokenizerSource: string;
|
|
105
|
-
tokenizerConfigSource: string;
|
|
106
|
-
};
|
|
107
|
-
export declare const SMOLLM2_1_360M_QUANTIZED: {
|
|
108
|
-
modelSource: string;
|
|
109
|
-
tokenizerSource: string;
|
|
110
|
-
tokenizerConfigSource: string;
|
|
111
|
-
};
|
|
112
|
-
export declare const SMOLLM2_1_1_7B: {
|
|
113
|
-
modelSource: string;
|
|
114
|
-
tokenizerSource: string;
|
|
115
|
-
tokenizerConfigSource: string;
|
|
116
|
-
};
|
|
117
|
-
export declare const SMOLLM2_1_1_7B_QUANTIZED: {
|
|
118
|
-
modelSource: string;
|
|
119
|
-
tokenizerSource: string;
|
|
120
|
-
tokenizerConfigSource: string;
|
|
121
|
-
};
|
|
122
|
-
export declare const QWEN2_5_0_5B: {
|
|
123
|
-
modelSource: string;
|
|
124
|
-
tokenizerSource: string;
|
|
125
|
-
tokenizerConfigSource: string;
|
|
126
|
-
};
|
|
127
|
-
export declare const QWEN2_5_0_5B_QUANTIZED: {
|
|
128
|
-
modelSource: string;
|
|
129
|
-
tokenizerSource: string;
|
|
130
|
-
tokenizerConfigSource: string;
|
|
131
|
-
};
|
|
132
|
-
export declare const QWEN2_5_1_5B: {
|
|
133
|
-
modelSource: string;
|
|
134
|
-
tokenizerSource: string;
|
|
135
|
-
tokenizerConfigSource: string;
|
|
136
|
-
};
|
|
137
|
-
export declare const QWEN2_5_1_5B_QUANTIZED: {
|
|
138
|
-
modelSource: string;
|
|
139
|
-
tokenizerSource: string;
|
|
140
|
-
tokenizerConfigSource: string;
|
|
141
|
-
};
|
|
142
|
-
export declare const QWEN2_5_3B: {
|
|
143
|
-
modelSource: string;
|
|
144
|
-
tokenizerSource: string;
|
|
145
|
-
tokenizerConfigSource: string;
|
|
146
|
-
};
|
|
147
|
-
export declare const QWEN2_5_3B_QUANTIZED: {
|
|
148
|
-
modelSource: string;
|
|
149
|
-
tokenizerSource: string;
|
|
150
|
-
tokenizerConfigSource: string;
|
|
151
|
-
};
|
|
152
|
-
export declare const PHI_4_MINI_4B: {
|
|
153
|
-
modelSource: string;
|
|
154
|
-
tokenizerSource: string;
|
|
155
|
-
tokenizerConfigSource: string;
|
|
156
|
-
};
|
|
157
|
-
export declare const PHI_4_MINI_4B_QUANTIZED: {
|
|
158
|
-
modelSource: string;
|
|
159
|
-
tokenizerSource: string;
|
|
160
|
-
tokenizerConfigSource: string;
|
|
161
|
-
};
|
|
162
|
-
export declare const EFFICIENTNET_V2_S: {
|
|
163
|
-
modelSource: string;
|
|
164
|
-
};
|
|
165
|
-
export declare const SSDLITE_320_MOBILENET_V3_LARGE: {
|
|
166
|
-
modelSource: string;
|
|
167
|
-
};
|
|
168
|
-
export declare const STYLE_TRANSFER_CANDY: {
|
|
169
|
-
modelSource: string;
|
|
170
|
-
};
|
|
171
|
-
export declare const STYLE_TRANSFER_MOSAIC: {
|
|
172
|
-
modelSource: string;
|
|
173
|
-
};
|
|
174
|
-
export declare const STYLE_TRANSFER_RAIN_PRINCESS: {
|
|
175
|
-
modelSource: string;
|
|
176
|
-
};
|
|
177
|
-
export declare const STYLE_TRANSFER_UDNIE: {
|
|
178
|
-
modelSource: string;
|
|
179
|
-
};
|
|
180
|
-
export declare const MOONSHINE_TINY: {
|
|
181
|
-
modelName: AvailableModels;
|
|
182
|
-
decoderSource: string;
|
|
183
|
-
encoderSource: string;
|
|
184
|
-
tokenizerSource: string;
|
|
185
|
-
};
|
|
186
|
-
export declare const WHISPER_TINY: {
|
|
187
|
-
modelName: AvailableModels;
|
|
188
|
-
decoderSource: string;
|
|
189
|
-
encoderSource: string;
|
|
190
|
-
tokenizerSource: string;
|
|
191
|
-
};
|
|
192
|
-
export declare const WHISPER_TINY_MULTILINGUAL: {
|
|
193
|
-
modelName: AvailableModels;
|
|
194
|
-
decoderSource: string;
|
|
195
|
-
encoderSource: string;
|
|
196
|
-
tokenizerSource: string;
|
|
197
|
-
};
|
|
198
|
-
export declare const DEEPLAB_V3_RESNET50: {
|
|
199
|
-
modelSource: string;
|
|
200
|
-
};
|
|
201
|
-
export declare const CLIP_VIT_BASE_PATCH32_IMAGE: {
|
|
202
|
-
modelSource: string;
|
|
203
|
-
};
|
|
204
|
-
export declare const ALL_MINILM_L6_V2: {
|
|
205
|
-
modelSource: string;
|
|
206
|
-
tokenizerSource: string;
|
|
207
|
-
};
|
|
208
|
-
export declare const ALL_MPNET_BASE_V2: {
|
|
209
|
-
modelSource: string;
|
|
210
|
-
tokenizerSource: string;
|
|
211
|
-
};
|
|
212
|
-
export declare const MULTI_QA_MINILM_L6_COS_V1: {
|
|
213
|
-
modelSource: string;
|
|
214
|
-
tokenizerSource: string;
|
|
215
|
-
};
|
|
216
|
-
export declare const MULTI_QA_MPNET_BASE_DOT_V1: {
|
|
217
|
-
modelSource: string;
|
|
218
|
-
tokenizerSource: string;
|
|
219
|
-
};
|
|
220
|
-
export declare const CLIP_VIT_BASE_PATCH32_TEXT: {
|
|
221
|
-
modelSource: string;
|
|
222
|
-
tokenizerSource: string;
|
|
223
|
-
};
|