react-native-executorch 0.5.3 → 0.5.5

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.
Files changed (158) hide show
  1. package/android/src/main/cpp/CMakeLists.txt +2 -1
  2. package/common/rnexecutorch/data_processing/Numerical.cpp +27 -19
  3. package/common/rnexecutorch/data_processing/Numerical.h +53 -4
  4. package/common/rnexecutorch/data_processing/dsp.cpp +1 -1
  5. package/common/rnexecutorch/data_processing/dsp.h +1 -1
  6. package/common/rnexecutorch/data_processing/gzip.cpp +47 -0
  7. package/common/rnexecutorch/data_processing/gzip.h +7 -0
  8. package/common/rnexecutorch/host_objects/ModelHostObject.h +24 -0
  9. package/common/rnexecutorch/metaprogramming/TypeConcepts.h +21 -1
  10. package/common/rnexecutorch/models/BaseModel.cpp +3 -2
  11. package/common/rnexecutorch/models/BaseModel.h +3 -2
  12. package/common/rnexecutorch/models/speech_to_text/SpeechToText.cpp +103 -39
  13. package/common/rnexecutorch/models/speech_to_text/SpeechToText.h +39 -21
  14. package/common/rnexecutorch/models/speech_to_text/asr/ASR.cpp +310 -0
  15. package/common/rnexecutorch/models/speech_to_text/asr/ASR.h +62 -0
  16. package/common/rnexecutorch/models/speech_to_text/stream/HypothesisBuffer.cpp +82 -0
  17. package/common/rnexecutorch/models/speech_to_text/stream/HypothesisBuffer.h +25 -0
  18. package/common/rnexecutorch/models/speech_to_text/stream/OnlineASRProcessor.cpp +99 -0
  19. package/common/rnexecutorch/models/speech_to_text/stream/OnlineASRProcessor.h +33 -0
  20. package/common/rnexecutorch/models/speech_to_text/types/DecodingOptions.h +15 -0
  21. package/common/rnexecutorch/models/speech_to_text/types/GenerationResult.h +12 -0
  22. package/common/rnexecutorch/models/speech_to_text/types/ProcessResult.h +12 -0
  23. package/common/rnexecutorch/models/speech_to_text/types/Segment.h +14 -0
  24. package/common/rnexecutorch/models/speech_to_text/types/Word.h +13 -0
  25. package/lib/module/modules/natural_language_processing/SpeechToTextModule.js +75 -53
  26. package/lib/module/modules/natural_language_processing/SpeechToTextModule.js.map +1 -1
  27. package/lib/typescript/hooks/natural_language_processing/useSpeechToText.d.ts +5 -5
  28. package/lib/typescript/modules/natural_language_processing/SpeechToTextModule.d.ts +7 -12
  29. package/lib/typescript/modules/natural_language_processing/SpeechToTextModule.d.ts.map +1 -1
  30. package/lib/typescript/types/stt.d.ts +0 -9
  31. package/lib/typescript/types/stt.d.ts.map +1 -1
  32. package/package.json +1 -1
  33. package/react-native-executorch.podspec +2 -0
  34. package/src/modules/natural_language_processing/SpeechToTextModule.ts +118 -54
  35. package/src/types/stt.ts +0 -12
  36. package/common/rnexecutorch/models/EncoderDecoderBase.cpp +0 -21
  37. package/common/rnexecutorch/models/EncoderDecoderBase.h +0 -31
  38. package/common/rnexecutorch/models/speech_to_text/SpeechToTextStrategy.h +0 -27
  39. package/common/rnexecutorch/models/speech_to_text/WhisperStrategy.cpp +0 -50
  40. package/common/rnexecutorch/models/speech_to_text/WhisperStrategy.h +0 -25
  41. package/lib/Error.js +0 -53
  42. package/lib/ThreadPool.d.ts +0 -10
  43. package/lib/ThreadPool.js +0 -28
  44. package/lib/common/Logger.d.ts +0 -8
  45. package/lib/common/Logger.js +0 -19
  46. package/lib/constants/directories.js +0 -2
  47. package/lib/constants/llmDefaults.d.ts +0 -6
  48. package/lib/constants/llmDefaults.js +0 -16
  49. package/lib/constants/modelUrls.d.ts +0 -223
  50. package/lib/constants/modelUrls.js +0 -322
  51. package/lib/constants/ocr/models.d.ts +0 -882
  52. package/lib/constants/ocr/models.js +0 -182
  53. package/lib/constants/ocr/symbols.js +0 -139
  54. package/lib/constants/sttDefaults.d.ts +0 -28
  55. package/lib/constants/sttDefaults.js +0 -68
  56. package/lib/controllers/LLMController.d.ts +0 -47
  57. package/lib/controllers/LLMController.js +0 -213
  58. package/lib/controllers/OCRController.js +0 -67
  59. package/lib/controllers/SpeechToTextController.d.ts +0 -56
  60. package/lib/controllers/SpeechToTextController.js +0 -349
  61. package/lib/controllers/VerticalOCRController.js +0 -70
  62. package/lib/hooks/computer_vision/useClassification.d.ts +0 -15
  63. package/lib/hooks/computer_vision/useClassification.js +0 -7
  64. package/lib/hooks/computer_vision/useImageEmbeddings.d.ts +0 -15
  65. package/lib/hooks/computer_vision/useImageEmbeddings.js +0 -7
  66. package/lib/hooks/computer_vision/useImageSegmentation.d.ts +0 -38
  67. package/lib/hooks/computer_vision/useImageSegmentation.js +0 -7
  68. package/lib/hooks/computer_vision/useOCR.d.ts +0 -20
  69. package/lib/hooks/computer_vision/useOCR.js +0 -41
  70. package/lib/hooks/computer_vision/useObjectDetection.d.ts +0 -15
  71. package/lib/hooks/computer_vision/useObjectDetection.js +0 -7
  72. package/lib/hooks/computer_vision/useStyleTransfer.d.ts +0 -15
  73. package/lib/hooks/computer_vision/useStyleTransfer.js +0 -7
  74. package/lib/hooks/computer_vision/useVerticalOCR.d.ts +0 -21
  75. package/lib/hooks/computer_vision/useVerticalOCR.js +0 -43
  76. package/lib/hooks/general/useExecutorchModule.d.ts +0 -13
  77. package/lib/hooks/general/useExecutorchModule.js +0 -7
  78. package/lib/hooks/natural_language_processing/useLLM.d.ts +0 -10
  79. package/lib/hooks/natural_language_processing/useLLM.js +0 -78
  80. package/lib/hooks/natural_language_processing/useSpeechToText.d.ts +0 -27
  81. package/lib/hooks/natural_language_processing/useSpeechToText.js +0 -49
  82. package/lib/hooks/natural_language_processing/useTextEmbeddings.d.ts +0 -16
  83. package/lib/hooks/natural_language_processing/useTextEmbeddings.js +0 -7
  84. package/lib/hooks/natural_language_processing/useTokenizer.d.ts +0 -17
  85. package/lib/hooks/natural_language_processing/useTokenizer.js +0 -52
  86. package/lib/hooks/useModule.js +0 -45
  87. package/lib/hooks/useNonStaticModule.d.ts +0 -20
  88. package/lib/hooks/useNonStaticModule.js +0 -49
  89. package/lib/index.d.ts +0 -48
  90. package/lib/index.js +0 -58
  91. package/lib/module/utils/SpeechToTextModule/ASR.js +0 -191
  92. package/lib/module/utils/SpeechToTextModule/ASR.js.map +0 -1
  93. package/lib/module/utils/SpeechToTextModule/OnlineProcessor.js +0 -73
  94. package/lib/module/utils/SpeechToTextModule/OnlineProcessor.js.map +0 -1
  95. package/lib/module/utils/SpeechToTextModule/hypothesisBuffer.js +0 -56
  96. package/lib/module/utils/SpeechToTextModule/hypothesisBuffer.js.map +0 -1
  97. package/lib/module/utils/stt.js +0 -22
  98. package/lib/module/utils/stt.js.map +0 -1
  99. package/lib/modules/BaseModule.js +0 -25
  100. package/lib/modules/BaseNonStaticModule.js +0 -14
  101. package/lib/modules/computer_vision/ClassificationModule.d.ts +0 -8
  102. package/lib/modules/computer_vision/ClassificationModule.js +0 -17
  103. package/lib/modules/computer_vision/ImageEmbeddingsModule.d.ts +0 -8
  104. package/lib/modules/computer_vision/ImageEmbeddingsModule.js +0 -17
  105. package/lib/modules/computer_vision/ImageSegmentationModule.d.ts +0 -11
  106. package/lib/modules/computer_vision/ImageSegmentationModule.js +0 -27
  107. package/lib/modules/computer_vision/OCRModule.d.ts +0 -14
  108. package/lib/modules/computer_vision/OCRModule.js +0 -17
  109. package/lib/modules/computer_vision/ObjectDetectionModule.d.ts +0 -9
  110. package/lib/modules/computer_vision/ObjectDetectionModule.js +0 -17
  111. package/lib/modules/computer_vision/StyleTransferModule.d.ts +0 -8
  112. package/lib/modules/computer_vision/StyleTransferModule.js +0 -17
  113. package/lib/modules/computer_vision/VerticalOCRModule.d.ts +0 -14
  114. package/lib/modules/computer_vision/VerticalOCRModule.js +0 -19
  115. package/lib/modules/general/ExecutorchModule.d.ts +0 -7
  116. package/lib/modules/general/ExecutorchModule.js +0 -14
  117. package/lib/modules/natural_language_processing/LLMModule.d.ts +0 -28
  118. package/lib/modules/natural_language_processing/LLMModule.js +0 -45
  119. package/lib/modules/natural_language_processing/SpeechToTextModule.d.ts +0 -24
  120. package/lib/modules/natural_language_processing/SpeechToTextModule.js +0 -36
  121. package/lib/modules/natural_language_processing/TextEmbeddingsModule.d.ts +0 -9
  122. package/lib/modules/natural_language_processing/TextEmbeddingsModule.js +0 -21
  123. package/lib/modules/natural_language_processing/TokenizerModule.d.ts +0 -12
  124. package/lib/modules/natural_language_processing/TokenizerModule.js +0 -30
  125. package/lib/native/NativeETInstaller.js +0 -2
  126. package/lib/native/NativeOCR.js +0 -2
  127. package/lib/native/NativeVerticalOCR.js +0 -2
  128. package/lib/native/RnExecutorchModules.d.ts +0 -7
  129. package/lib/native/RnExecutorchModules.js +0 -18
  130. package/lib/tsconfig.tsbuildinfo +0 -1
  131. package/lib/types/common.d.ts +0 -32
  132. package/lib/types/common.js +0 -25
  133. package/lib/types/imageSegmentation.js +0 -26
  134. package/lib/types/llm.d.ts +0 -46
  135. package/lib/types/llm.js +0 -9
  136. package/lib/types/objectDetection.js +0 -94
  137. package/lib/types/ocr.js +0 -1
  138. package/lib/types/stt.d.ts +0 -94
  139. package/lib/types/stt.js +0 -85
  140. package/lib/typescript/utils/SpeechToTextModule/ASR.d.ts +0 -27
  141. package/lib/typescript/utils/SpeechToTextModule/ASR.d.ts.map +0 -1
  142. package/lib/typescript/utils/SpeechToTextModule/OnlineProcessor.d.ts +0 -23
  143. package/lib/typescript/utils/SpeechToTextModule/OnlineProcessor.d.ts.map +0 -1
  144. package/lib/typescript/utils/SpeechToTextModule/hypothesisBuffer.d.ts +0 -13
  145. package/lib/typescript/utils/SpeechToTextModule/hypothesisBuffer.d.ts.map +0 -1
  146. package/lib/typescript/utils/stt.d.ts +0 -2
  147. package/lib/typescript/utils/stt.d.ts.map +0 -1
  148. package/lib/utils/ResourceFetcher.d.ts +0 -24
  149. package/lib/utils/ResourceFetcher.js +0 -305
  150. package/lib/utils/ResourceFetcherUtils.d.ts +0 -54
  151. package/lib/utils/ResourceFetcherUtils.js +0 -127
  152. package/lib/utils/llm.d.ts +0 -6
  153. package/lib/utils/llm.js +0 -72
  154. package/lib/utils/stt.js +0 -21
  155. package/src/utils/SpeechToTextModule/ASR.ts +0 -303
  156. package/src/utils/SpeechToTextModule/OnlineProcessor.ts +0 -87
  157. package/src/utils/SpeechToTextModule/hypothesisBuffer.ts +0 -79
  158. package/src/utils/stt.ts +0 -28
@@ -1,25 +0,0 @@
1
- #pragma once
2
-
3
- #include "SpeechToTextStrategy.h"
4
- #include <span>
5
- #include <vector>
6
-
7
- namespace rnexecutorch::models::speech_to_text {
8
-
9
- class WhisperStrategy final : public SpeechToTextStrategy {
10
- public:
11
- TensorPtr prepareAudioInput(std::span<float> waveform) override;
12
-
13
- TensorPtr prepareTokenInput(const std::vector<int64_t> &prevTokens) override;
14
-
15
- std::string getDecoderMethod() const override { return "forward"; }
16
-
17
- std::shared_ptr<OwningArrayBuffer> extractOutputToken(
18
- const executorch::aten::Tensor &decoderOutputTensor) const override;
19
-
20
- private:
21
- std::vector<float> preprocessedData;
22
- std::vector<int32_t> tokens32;
23
- };
24
-
25
- } // namespace rnexecutorch::models::speech_to_text
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
- };
@@ -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();
@@ -1,8 +0,0 @@
1
- export declare class Logger {
2
- private static readonly PREFIX;
3
- static log(...data: any[]): void;
4
- static debug(...data: any[]): void;
5
- static info(...data: any[]): void;
6
- static warn(...data: any[]): void;
7
- static error(...data: any[]): void;
8
- }
@@ -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,2 +0,0 @@
1
- import { documentDirectory } from 'expo-file-system';
2
- export const RNEDirectory = `${documentDirectory}react-native-executorch/`;
@@ -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
- };