react-native-executorch 0.5.1-rc.0 → 0.5.2

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 (178) hide show
  1. package/README.md +132 -0
  2. package/common/rnexecutorch/models/speech_to_text/SpeechToText.cpp +4 -10
  3. package/common/rnexecutorch/models/speech_to_text/SpeechToText.h +1 -1
  4. package/common/rnexecutorch/models/speech_to_text/SpeechToTextStrategy.h +3 -2
  5. package/common/rnexecutorch/models/speech_to_text/WhisperStrategy.cpp +16 -4
  6. package/common/rnexecutorch/models/speech_to_text/WhisperStrategy.h +2 -2
  7. package/lib/Error.d.ts +30 -0
  8. package/lib/Error.js +50 -0
  9. package/lib/constants/directories.d.ts +1 -0
  10. package/lib/constants/directories.js +2 -0
  11. package/lib/constants/llmDefaults.d.ts +6 -0
  12. package/lib/constants/llmDefaults.js +16 -0
  13. package/lib/constants/modelUrls.d.ts +217 -83
  14. package/lib/constants/modelUrls.js +304 -98
  15. package/lib/constants/ocr/models.d.ts +882 -0
  16. package/lib/constants/ocr/models.js +182 -0
  17. package/lib/constants/ocr/symbols.d.ts +75 -0
  18. package/lib/constants/ocr/symbols.js +139 -0
  19. package/lib/{typescript/constants → constants}/sttDefaults.d.ts +0 -1
  20. package/lib/constants/sttDefaults.js +12 -10
  21. package/lib/controllers/LLMController.d.ts +47 -0
  22. package/lib/controllers/LLMController.js +14 -11
  23. package/lib/controllers/OCRController.d.ts +23 -0
  24. package/lib/controllers/OCRController.js +12 -5
  25. package/lib/controllers/SpeechToTextController.d.ts +8 -4
  26. package/lib/controllers/SpeechToTextController.js +15 -9
  27. package/lib/controllers/VerticalOCRController.d.ts +25 -0
  28. package/lib/controllers/VerticalOCRController.js +75 -0
  29. package/lib/hooks/computer_vision/useClassification.d.ts +15 -0
  30. package/lib/hooks/computer_vision/useClassification.js +7 -0
  31. package/lib/hooks/computer_vision/useImageEmbeddings.d.ts +15 -0
  32. package/lib/hooks/computer_vision/useImageEmbeddings.js +7 -0
  33. package/lib/hooks/computer_vision/useImageSegmentation.d.ts +38 -0
  34. package/lib/hooks/computer_vision/useImageSegmentation.js +7 -0
  35. package/lib/hooks/computer_vision/useOCR.d.ts +20 -0
  36. package/lib/hooks/computer_vision/useOCR.js +42 -0
  37. package/lib/hooks/computer_vision/useObjectDetection.d.ts +15 -0
  38. package/lib/hooks/computer_vision/useObjectDetection.js +7 -0
  39. package/lib/hooks/computer_vision/useStyleTransfer.d.ts +15 -0
  40. package/lib/hooks/computer_vision/useStyleTransfer.js +7 -0
  41. package/lib/hooks/computer_vision/useVerticalOCR.d.ts +21 -0
  42. package/lib/hooks/computer_vision/useVerticalOCR.js +45 -0
  43. package/lib/hooks/general/useExecutorchModule.d.ts +13 -0
  44. package/lib/hooks/general/useExecutorchModule.js +7 -0
  45. package/lib/hooks/natural_language_processing/useLLM.d.ts +10 -0
  46. package/lib/hooks/natural_language_processing/useLLM.js +78 -0
  47. package/lib/hooks/natural_language_processing/useSpeechToText.d.ts +27 -0
  48. package/lib/hooks/natural_language_processing/useSpeechToText.js +19 -14
  49. package/lib/hooks/natural_language_processing/useTextEmbeddings.d.ts +16 -0
  50. package/lib/hooks/natural_language_processing/useTextEmbeddings.js +7 -0
  51. package/lib/hooks/natural_language_processing/useTokenizer.d.ts +17 -0
  52. package/lib/hooks/natural_language_processing/useTokenizer.js +52 -0
  53. package/lib/hooks/useModule.d.ts +17 -0
  54. package/lib/hooks/useModule.js +45 -0
  55. package/lib/hooks/useNonStaticModule.d.ts +20 -0
  56. package/lib/hooks/useNonStaticModule.js +49 -0
  57. package/lib/index.d.ts +1 -1
  58. package/lib/index.js +3 -2
  59. package/lib/module/constants/modelUrls.js +61 -36
  60. package/lib/module/constants/modelUrls.js.map +1 -1
  61. package/lib/module/constants/ocr/models.js +1 -1
  62. package/lib/module/hooks/natural_language_processing/useSpeechToText.js +71 -34
  63. package/lib/module/hooks/natural_language_processing/useSpeechToText.js.map +1 -1
  64. package/lib/module/index.js +2 -3
  65. package/lib/module/index.js.map +1 -1
  66. package/lib/module/modules/natural_language_processing/SpeechToTextModule.js +72 -31
  67. package/lib/module/modules/natural_language_processing/SpeechToTextModule.js.map +1 -1
  68. package/lib/module/types/stt.js +1 -85
  69. package/lib/module/types/stt.js.map +1 -1
  70. package/lib/module/utils/ResourceFetcher.js +6 -8
  71. package/lib/module/utils/ResourceFetcher.js.map +1 -1
  72. package/lib/module/utils/ResourceFetcherUtils.js +20 -20
  73. package/lib/module/utils/ResourceFetcherUtils.js.map +1 -1
  74. package/lib/module/utils/SpeechToTextModule/ASR.js +191 -0
  75. package/lib/module/utils/SpeechToTextModule/ASR.js.map +1 -0
  76. package/lib/module/utils/SpeechToTextModule/OnlineProcessor.js +73 -0
  77. package/lib/module/utils/SpeechToTextModule/OnlineProcessor.js.map +1 -0
  78. package/lib/module/utils/SpeechToTextModule/hypothesisBuffer.js +56 -0
  79. package/lib/module/utils/SpeechToTextModule/hypothesisBuffer.js.map +1 -0
  80. package/lib/modules/BaseModule.d.ts +8 -0
  81. package/lib/modules/BaseModule.js +25 -0
  82. package/lib/modules/BaseNonStaticModule.d.ts +9 -0
  83. package/lib/modules/BaseNonStaticModule.js +14 -0
  84. package/lib/modules/computer_vision/ClassificationModule.d.ts +8 -0
  85. package/lib/modules/computer_vision/ClassificationModule.js +17 -0
  86. package/lib/modules/computer_vision/ImageEmbeddingsModule.d.ts +8 -0
  87. package/lib/modules/computer_vision/ImageEmbeddingsModule.js +17 -0
  88. package/lib/modules/computer_vision/ImageSegmentationModule.d.ts +11 -0
  89. package/lib/modules/computer_vision/ImageSegmentationModule.js +27 -0
  90. package/lib/modules/computer_vision/OCRModule.d.ts +15 -0
  91. package/lib/modules/computer_vision/OCRModule.js +20 -0
  92. package/lib/modules/computer_vision/ObjectDetectionModule.d.ts +9 -0
  93. package/lib/modules/computer_vision/ObjectDetectionModule.js +17 -0
  94. package/lib/modules/computer_vision/StyleTransferModule.d.ts +8 -0
  95. package/lib/modules/computer_vision/StyleTransferModule.js +17 -0
  96. package/lib/modules/computer_vision/VerticalOCRModule.d.ts +15 -0
  97. package/lib/modules/computer_vision/VerticalOCRModule.js +22 -0
  98. package/lib/modules/general/ExecutorchModule.d.ts +7 -0
  99. package/lib/modules/general/ExecutorchModule.js +14 -0
  100. package/lib/modules/natural_language_processing/LLMModule.d.ts +28 -0
  101. package/lib/modules/natural_language_processing/LLMModule.js +45 -0
  102. package/lib/modules/natural_language_processing/SpeechToTextModule.d.ts +18 -8
  103. package/lib/modules/natural_language_processing/SpeechToTextModule.js +21 -15
  104. package/lib/modules/natural_language_processing/TextEmbeddingsModule.d.ts +9 -0
  105. package/lib/modules/natural_language_processing/TextEmbeddingsModule.js +21 -0
  106. package/lib/modules/natural_language_processing/TokenizerModule.d.ts +12 -0
  107. package/lib/modules/natural_language_processing/TokenizerModule.js +5 -4
  108. package/lib/native/NativeETInstaller.d.ts +6 -0
  109. package/lib/native/NativeETInstaller.js +2 -0
  110. package/lib/native/NativeOCR.d.ts +8 -0
  111. package/lib/native/NativeOCR.js +2 -0
  112. package/lib/native/NativeVerticalOCR.d.ts +8 -0
  113. package/lib/native/NativeVerticalOCR.js +2 -0
  114. package/lib/types/common.d.ts +31 -0
  115. package/lib/types/common.js +25 -0
  116. package/lib/types/imageSegmentation.d.ts +24 -0
  117. package/lib/types/imageSegmentation.js +26 -0
  118. package/lib/types/llm.d.ts +46 -0
  119. package/lib/types/llm.js +9 -0
  120. package/lib/types/objectDetection.d.ts +104 -0
  121. package/lib/types/objectDetection.js +94 -0
  122. package/lib/types/ocr.d.ts +11 -0
  123. package/lib/types/ocr.js +1 -0
  124. package/lib/types/stt.d.ts +94 -0
  125. package/lib/types/stt.js +85 -0
  126. package/lib/typescript/constants/modelUrls.d.ts +24 -7
  127. package/lib/typescript/constants/modelUrls.d.ts.map +1 -1
  128. package/lib/typescript/constants/ocr/models.d.ts +126 -126
  129. package/lib/typescript/hooks/natural_language_processing/useSpeechToText.d.ts +15 -24
  130. package/lib/typescript/hooks/natural_language_processing/useSpeechToText.d.ts.map +1 -1
  131. package/lib/typescript/index.d.ts +2 -3
  132. package/lib/typescript/index.d.ts.map +1 -1
  133. package/lib/typescript/modules/natural_language_processing/SpeechToTextModule.d.ts +19 -22
  134. package/lib/typescript/modules/natural_language_processing/SpeechToTextModule.d.ts.map +1 -1
  135. package/lib/typescript/types/stt.d.ts +17 -91
  136. package/lib/typescript/types/stt.d.ts.map +1 -1
  137. package/lib/typescript/utils/ResourceFetcher.d.ts.map +1 -1
  138. package/lib/typescript/utils/ResourceFetcherUtils.d.ts.map +1 -1
  139. package/lib/typescript/utils/SpeechToTextModule/ASR.d.ts +27 -0
  140. package/lib/typescript/utils/SpeechToTextModule/ASR.d.ts.map +1 -0
  141. package/lib/typescript/utils/SpeechToTextModule/OnlineProcessor.d.ts +23 -0
  142. package/lib/typescript/utils/SpeechToTextModule/OnlineProcessor.d.ts.map +1 -0
  143. package/lib/typescript/utils/SpeechToTextModule/hypothesisBuffer.d.ts +13 -0
  144. package/lib/typescript/utils/SpeechToTextModule/hypothesisBuffer.d.ts.map +1 -0
  145. package/lib/utils/ResourceFetcher.d.ts +24 -0
  146. package/lib/utils/ResourceFetcher.js +305 -0
  147. package/lib/utils/ResourceFetcherUtils.d.ts +54 -0
  148. package/lib/utils/ResourceFetcherUtils.js +9 -0
  149. package/lib/utils/llm.d.ts +6 -0
  150. package/lib/utils/llm.js +1 -0
  151. package/lib/utils/stt.d.ts +1 -0
  152. package/lib/utils/stt.js +21 -0
  153. package/package.json +5 -3
  154. package/src/constants/modelUrls.ts +70 -37
  155. package/src/constants/ocr/models.ts +1 -1
  156. package/src/hooks/natural_language_processing/useSpeechToText.ts +87 -92
  157. package/src/index.ts +6 -8
  158. package/src/modules/natural_language_processing/SpeechToTextModule.ts +81 -69
  159. package/src/types/stt.ts +97 -92
  160. package/src/utils/ResourceFetcher.ts +9 -7
  161. package/src/utils/ResourceFetcherUtils.ts +15 -17
  162. package/src/utils/SpeechToTextModule/ASR.ts +303 -0
  163. package/src/utils/SpeechToTextModule/OnlineProcessor.ts +87 -0
  164. package/src/utils/SpeechToTextModule/hypothesisBuffer.ts +79 -0
  165. package/common/rnexecutorch/models/speech_to_text/MoonshineStrategy.cpp +0 -31
  166. package/common/rnexecutorch/models/speech_to_text/MoonshineStrategy.h +0 -21
  167. package/lib/module/constants/sttDefaults.js +0 -74
  168. package/lib/module/constants/sttDefaults.js.map +0 -1
  169. package/lib/module/controllers/SpeechToTextController.js +0 -320
  170. package/lib/module/controllers/SpeechToTextController.js.map +0 -1
  171. package/lib/typescript/constants/sttDefaults.d.ts.map +0 -1
  172. package/lib/typescript/controllers/SpeechToTextController.d.ts +0 -57
  173. package/lib/typescript/controllers/SpeechToTextController.d.ts.map +0 -1
  174. package/src/constants/sttDefaults.ts +0 -82
  175. package/src/controllers/SpeechToTextController.ts +0 -471
  176. package/third-party/ios/ExecutorchLib/ExecutorchLib.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  177. package/third-party/ios/ExecutorchLib/ExecutorchLib.xcodeproj/project.xcworkspace/xcuserdata/norbertklockiewicz.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  178. package/third-party/ios/ExecutorchLib/ExecutorchLib.xcodeproj/xcuserdata/norbertklockiewicz.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
@@ -1,89 +1,223 @@
1
- export declare const LLAMA3_2_3B = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-3B/original/llama3_2_3B_bf16.pte";
2
- export declare const LLAMA3_2_3B_QLORA = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-3B/QLoRA/llama3_2-3B_qat_lora.pte";
3
- export declare const LLAMA3_2_3B_SPINQUANT = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-3B/spinquant/llama3_2_3B_spinquant.pte";
4
- export declare const LLAMA3_2_1B = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-1B/original/llama3_2_bf16.pte";
5
- export declare const LLAMA3_2_1B_QLORA = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-1B/QLoRA/llama3_2_qat_lora.pte";
6
- export declare const LLAMA3_2_1B_SPINQUANT = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-1B/spinquant/llama3_2_spinquant.pte";
7
- export declare const LLAMA3_2_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/tokenizer.json";
8
- export declare const LLAMA3_2_TOKENIZER_CONFIG = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/tokenizer_config.json";
9
- export declare const QWEN3_0_6B = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/qwen-3-0.6B/original/qwen3_0_6b_bf16.pte";
10
- export declare const QWEN3_0_6B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/qwen-3-0.6B/quantized/qwen3_0_6b_8da4w.pte";
11
- export declare const QWEN3_1_7B = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/qwen-3-1.7B/original/qwen3_1_7b_bf16.pte";
12
- export declare const QWEN3_1_7B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/qwen-3-1.7B/quantized/qwen3_1_7b_8da4w.pte";
13
- export declare const QWEN3_4B = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/qwen-3-4B/original/qwen3_4b_bf16.pte";
14
- export declare const QWEN3_4B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/qwen-3-4B/quantized/qwen3_4b_8da4w.pte";
15
- export declare const QWEN3_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/tokenizer.json";
16
- export declare const QWEN3_TOKENIZER_CONFIG = "https://huggingface.co/software-mansion/react-native-executorch-qwen-3/resolve/v0.4.0/tokenizer_config.json";
17
- export declare const HAMMER2_1_0_5B = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/hammer-2.1-0.5B/original/hammer2_1_0_5B_bf16.pte";
18
- export declare const HAMMER2_1_0_5B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/hammer-2.1-0.5B/quantized/hammer2_1_0_5B_8da4w.pte";
19
- export declare const HAMMER2_1_1_5B = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/hammer-2.1-1.5B/original/hammer2_1_1_5B_bf16.pte";
20
- export declare const HAMMER2_1_1_5B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/hammer-2.1-1.5B/quantized/hammer2_1_1_5B_8da4w.pte";
21
- export declare const HAMMER2_1_3B = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/hammer-2.1-3B/original/hammer2_1_3B_bf16.pte";
22
- export declare const HAMMER2_1_3B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/hammer-2.1-3B/quantized/hammer2_1_3B_8da4w.pte";
23
- export declare const HAMMER2_1_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/tokenizer.json";
24
- export declare const HAMMER2_1_TOKENIZER_CONFIG = "https://huggingface.co/software-mansion/react-native-executorch-hammer-2.1/resolve/v0.4.0/tokenizer_config.json";
25
- export declare const SMOLLM2_1_135M = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/smolLm-2-135M/original/smolLm2_135M_bf16.pte";
26
- export declare const SMOLLM2_1_135M_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/smolLm-2-135M/quantized/smolLm2_135M_8da4w.pte";
27
- export declare const SMOLLM2_1_360M = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/smolLm-2-360M/original/smolLm2_360M_bf16.pte";
28
- export declare const SMOLLM2_1_360M_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/smolLm-2-360M/quantized/smolLm2_360M_8da4w.pte";
29
- export declare const SMOLLM2_1_1_7B = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/smolLm-2-1.7B/original/smolLm2_1_7B_bf16.pte";
30
- export declare const SMOLLM2_1_1_7B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/smolLm-2-1.7B/quantized/smolLm2_1_7B_8da4w.pte";
31
- export declare const SMOLLM2_1_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/tokenizer.json";
32
- export declare const SMOLLM2_1_TOKENIZER_CONFIG = "https://huggingface.co/software-mansion/react-native-executorch-smolLm-2/resolve/v0.4.0/tokenizer_config.json";
33
- export declare const QWEN2_5_0_5B = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/qwen-2.5-0.5B/original/qwen2_5_0_5b_bf16.pte";
34
- export declare const QWEN2_5_0_5B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/qwen-2.5-0.5B/quantized/qwen2_5_0_5b_8da4w.pte";
35
- export declare const QWEN2_5_1_5B = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/qwen-2.5-1.5B/original/qwen2_5_1_5b_bf16.pte";
36
- export declare const QWEN2_5_1_5B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/qwen-2.5-1.5B/quantized/qwen2_5_1_5b_8da4w.pte";
37
- export declare const QWEN2_5_3B = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/qwen-2.5-3B/original/qwen2_5_3b_bf16.pte";
38
- export declare const QWEN2_5_3B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/qwen-2.5-3B/quantized/qwen2_5_3b_8da4w.pte";
39
- export declare const QWEN2_5_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/tokenizer.json";
40
- export declare const QWEN2_5_TOKENIZER_CONFIG = "https://huggingface.co/software-mansion/react-native-executorch-qwen-2.5/resolve/v0.4.0/tokenizer_config.json";
41
- export declare const PHI_4_MINI_4B = "https://huggingface.co/software-mansion/react-native-executorch-phi-4-mini/resolve/v0.4.0/original/phi-4-mini_bf16.pte";
42
- export declare const PHI_4_MINI_4B_QUANTIZED = "https://huggingface.co/software-mansion/react-native-executorch-phi-4-mini/resolve/v0.4.0/quantized/phi-4-mini_8da4w.pte";
43
- export declare const PHI_4_MINI_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-phi-4-mini/resolve/v0.4.0/tokenizer.json";
44
- export declare const PHI_4_MINI_TOKENIZER_CONFIG = "https://huggingface.co/software-mansion/react-native-executorch-phi-4-mini/resolve/v0.4.0/tokenizer_config.json";
45
- export declare const EFFICIENTNET_V2_S: string;
46
- export declare const SSDLITE_320_MOBILENET_V3_LARGE = "https://huggingface.co/software-mansion/react-native-executorch-ssdlite320-mobilenet-v3-large/resolve/v0.4.0/ssdlite320-mobilenetv3-large.pte";
47
- export declare const STYLE_TRANSFER_CANDY: string;
48
- export declare const STYLE_TRANSFER_MOSAIC: string;
49
- export declare const STYLE_TRANSFER_RAIN_PRINCESS: string;
50
- export declare const STYLE_TRANSFER_UDNIE: string;
51
- export declare const MOONSHINE_TINY_DECODER = "https://huggingface.co/software-mansion/react-native-executorch-moonshine-tiny/resolve/v0.4.0/xnnpack/moonshine_tiny_xnnpack_decoder.pte";
52
- export declare const MOONSHINE_TINY_ENCODER = "https://huggingface.co/software-mansion/react-native-executorch-moonshine-tiny/resolve/v0.4.0/xnnpack/moonshine_tiny_xnnpack_encoder.pte";
53
- export declare const MOONSHINE_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-moonshine-tiny/resolve/v0.4.0/moonshine_tiny_tokenizer.json";
54
- export declare const WHISPER_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-whisper-tiny.en/resolve/v0.4.0/whisper_tokenizer.json";
55
- export declare const WHISPER_TINY_DECODER = "https://huggingface.co/software-mansion/react-native-executorch-whisper-tiny.en/resolve/v0.4.0/xnnpack/whisper_tiny_en_xnnpack_decoder.pte";
56
- export declare const WHISPER_TINY_ENCODER = "https://huggingface.co/software-mansion/react-native-executorch-whisper-tiny.en/resolve/v0.4.0/xnnpack/whisper_tiny_en_xnnpack_encoder.pte";
57
- export declare const WHISPER_TINY_MULTILINGUAL_ENCODER = "https://huggingface.co/software-mansion/react-native-executorch-whisper-tiny/resolve/v0.4.0/xnnpack/xnnpack_whisper_encoder.pte";
58
- export declare const WHISPER_TINY_MULTILINGUAL_DECODER = "https://huggingface.co/software-mansion/react-native-executorch-whisper-tiny/resolve/v0.4.0/xnnpack/xnnpack_whisper_decoder.pte";
59
- export declare const WHISPER_TINY_MULTILINGUAL_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-whisper-tiny/resolve/v0.4.0/tokenizer.json";
60
- export declare const DETECTOR_CRAFT_1280 = "https://huggingface.co/software-mansion/react-native-executorch-detector-craft/resolve/v0.4.0/xnnpack/xnnpack_craft_1280.pte";
61
- export declare const DETECTOR_CRAFT_800 = "https://huggingface.co/software-mansion/react-native-executorch-detector-craft/resolve/v0.4.0/xnnpack/xnnpack_craft_800.pte";
62
- export declare const DETECTOR_CRAFT_320 = "https://huggingface.co/software-mansion/react-native-executorch-detector-craft/resolve/v0.4.0/xnnpack/xnnpack_craft_320.pte";
63
- export declare const DEEPLAB_V3_RESNET50 = "https://huggingface.co/software-mansion/react-native-executorch-deeplab-v3/resolve/v0.4.0/xnnpack/deeplabV3_xnnpack_fp32.pte";
64
- export declare const CLIP_VIT_BASE_PATCH32_IMAGE_MODEL = "https://huggingface.co/software-mansion/react-native-executorch-clip-vit-base-patch32/resolve/v0.5.0/clip-vit-base-patch32-vision_xnnpack.pte";
65
- export declare const ALL_MINILM_L6_V2 = "https://huggingface.co/software-mansion/react-native-executorch-all-MiniLM-L6-v2/resolve/v0.5.0/all-MiniLM-L6-v2_xnnpack.pte";
66
- export declare const ALL_MINILM_L6_V2_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-all-MiniLM-L6-v2/resolve/v0.5.0/tokenizer.json";
67
- export declare const ALL_MPNET_BASE_V2 = "https://huggingface.co/software-mansion/react-native-executorch-all-mpnet-base-v2/resolve/v0.5.0/all-mpnet-base-v2_xnnpack.pte";
68
- export declare const ALL_MPNET_BASE_V2_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-all-mpnet-base-v2/resolve/v0.5.0/tokenizer.json";
69
- export declare const MULTI_QA_MINILM_L6_COS_V1 = "https://huggingface.co/software-mansion/react-native-executorch-multi-qa-MiniLM-L6-cos-v1/resolve/v0.5.0/multi-qa-MiniLM-L6-cos-v1_xnnpack.pte";
70
- export declare const MULTI_QA_MINILM_L6_COS_V1_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-multi-qa-MiniLM-L6-cos-v1/resolve/v0.5.0/tokenizer.json";
71
- export declare const MULTI_QA_MPNET_BASE_DOT_V1 = "https://huggingface.co/software-mansion/react-native-executorch-multi-qa-mpnet-base-dot-v1/resolve/v0.5.0/multi-qa-mpnet-base-dot-v1_xnnpack.pte";
72
- export declare const MULTI_QA_MPNET_BASE_DOT_V1_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-multi-qa-mpnet-base-dot-v1/resolve/v0.5.0/tokenizer.json";
73
- export declare const CLIP_VIT_BASE_PATCH32_TEXT_MODEL = "https://huggingface.co/software-mansion/react-native-executorch-clip-vit-base-patch32/resolve/v0.5.0/clip-vit-base-patch32-text_xnnpack.pte";
74
- export declare const CLIP_VIT_BASE_PATCH32_TEXT_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-clip-vit-base-patch32/resolve/v0.5.0/tokenizer.json";
75
- export declare const CLIP_VIT_BASE_PATCH32_TEXT: {
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: {
76
138
  modelSource: string;
77
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;
78
200
  };
79
201
  export declare const CLIP_VIT_BASE_PATCH32_IMAGE: {
80
202
  modelSource: string;
81
203
  };
82
- export declare const LLAMA3_2_3B_URL = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-3B/original/llama3_2_3B_bf16.pte";
83
- export declare const LLAMA3_2_3B_QLORA_URL = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-3B/QLoRA/llama3_2-3B_qat_lora.pte";
84
- export declare const LLAMA3_2_3B_SPINQUANT_URL = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-3B/spinquant/llama3_2_3B_spinquant.pte";
85
- export declare const LLAMA3_2_1B_URL = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-1B/original/llama3_2_bf16.pte";
86
- export declare const LLAMA3_2_1B_QLORA_URL = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-1B/QLoRA/llama3_2_qat_lora.pte";
87
- export declare const LLAMA3_2_1B_SPINQUANT_URL = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/llama-3.2-1B/spinquant/llama3_2_spinquant.pte";
88
- export declare const LLAMA3_2_1B_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/tokenizer.json";
89
- export declare const LLAMA3_2_3B_TOKENIZER = "https://huggingface.co/software-mansion/react-native-executorch-llama-3.2/resolve/v0.4.0/tokenizer.json";
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
+ };