nexaai 1.0.21rc5__cp313-cp313-win_arm64.whl → 1.0.21rc14__cp313-cp313-win_arm64.whl

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.

Potentially problematic release.


This version of nexaai might be problematic. Click here for more details.

Files changed (105) hide show
  1. nexaai/__init__.py +95 -95
  2. nexaai/_stub.cp313-win_arm64.pyd +0 -0
  3. nexaai/_version.py +4 -1
  4. nexaai/asr.py +68 -65
  5. nexaai/asr_impl/mlx_asr_impl.py +92 -92
  6. nexaai/asr_impl/pybind_asr_impl.py +127 -44
  7. nexaai/base.py +39 -39
  8. nexaai/binds/__init__.py +6 -5
  9. nexaai/binds/asr_bind.cp313-win_arm64.pyd +0 -0
  10. nexaai/binds/common_bind.cp313-win_arm64.pyd +0 -0
  11. nexaai/binds/cpu_gpu/ggml-base.dll +0 -0
  12. nexaai/binds/cpu_gpu/ggml-cpu.dll +0 -0
  13. nexaai/binds/cpu_gpu/ggml-opencl.dll +0 -0
  14. nexaai/binds/cpu_gpu/ggml.dll +0 -0
  15. nexaai/binds/cpu_gpu/mtmd.dll +0 -0
  16. nexaai/binds/cpu_gpu/nexa_cpu_gpu.dll +0 -0
  17. nexaai/binds/cpu_gpu/nexa_plugin.dll +0 -0
  18. nexaai/binds/embedder_bind.cp313-win_arm64.pyd +0 -0
  19. nexaai/binds/libcrypto-3-arm64.dll +0 -0
  20. nexaai/binds/libssl-3-arm64.dll +0 -0
  21. nexaai/binds/llm_bind.cp313-win_arm64.pyd +0 -0
  22. nexaai/binds/nexa_bridge.dll +0 -0
  23. nexaai/binds/npu/convnext-sdk.dll +0 -0
  24. nexaai/binds/npu/embed-gemma-sdk.dll +0 -0
  25. nexaai/binds/npu/ggml-base.dll +0 -0
  26. nexaai/binds/npu/ggml-cpu.dll +0 -0
  27. nexaai/binds/npu/ggml-opencl.dll +0 -0
  28. nexaai/binds/npu/ggml.dll +0 -0
  29. nexaai/binds/npu/granite-nano-sdk.dll +0 -0
  30. nexaai/binds/npu/granite4-sdk.dll +0 -0
  31. nexaai/binds/npu/jina-rerank-sdk.dll +0 -0
  32. nexaai/binds/npu/liquid-sdk.dll +0 -0
  33. nexaai/binds/npu/llama3-3b-sdk.dll +0 -0
  34. nexaai/binds/npu/nexa-mm-process.dll +0 -0
  35. nexaai/binds/npu/nexa-sampling.dll +0 -0
  36. nexaai/binds/npu/nexa_plugin.dll +0 -0
  37. nexaai/binds/npu/omni-neural-sdk.dll +0 -0
  38. nexaai/binds/npu/openblas.dll +0 -0
  39. nexaai/binds/npu/paddleocr-sdk.dll +0 -0
  40. nexaai/binds/npu/parakeet-sdk.dll +0 -0
  41. nexaai/binds/npu/phi3-5-sdk.dll +0 -0
  42. nexaai/binds/npu/phi4-sdk.dll +0 -0
  43. nexaai/binds/npu/pyannote-sdk.dll +0 -0
  44. nexaai/binds/npu/qwen3-4b-sdk.dll +0 -0
  45. nexaai/binds/npu/qwen3vl-sdk.dll +0 -0
  46. nexaai/binds/npu/qwen3vl-vision.dll +0 -0
  47. nexaai/binds/npu/yolov12-sdk.dll +0 -0
  48. nexaai/binds/npu/zlib1.dll +0 -0
  49. nexaai/binds/rerank_bind.cp313-win_arm64.pyd +0 -0
  50. nexaai/binds/vlm_bind.cp313-win_arm64.pyd +0 -0
  51. nexaai/common.py +105 -105
  52. nexaai/cv.py +93 -93
  53. nexaai/cv_impl/mlx_cv_impl.py +89 -89
  54. nexaai/cv_impl/pybind_cv_impl.py +32 -32
  55. nexaai/embedder.py +73 -73
  56. nexaai/embedder_impl/mlx_embedder_impl.py +118 -118
  57. nexaai/embedder_impl/pybind_embedder_impl.py +96 -96
  58. nexaai/image_gen.py +141 -141
  59. nexaai/image_gen_impl/mlx_image_gen_impl.py +292 -292
  60. nexaai/image_gen_impl/pybind_image_gen_impl.py +85 -85
  61. nexaai/llm.py +98 -98
  62. nexaai/llm_impl/mlx_llm_impl.py +271 -271
  63. nexaai/llm_impl/pybind_llm_impl.py +220 -220
  64. nexaai/log.py +92 -92
  65. nexaai/rerank.py +57 -57
  66. nexaai/rerank_impl/mlx_rerank_impl.py +94 -94
  67. nexaai/rerank_impl/pybind_rerank_impl.py +136 -136
  68. nexaai/runtime.py +68 -68
  69. nexaai/runtime_error.py +24 -24
  70. nexaai/tts.py +75 -75
  71. nexaai/tts_impl/mlx_tts_impl.py +94 -94
  72. nexaai/tts_impl/pybind_tts_impl.py +43 -43
  73. nexaai/utils/decode.py +17 -17
  74. nexaai/utils/manifest_utils.py +531 -531
  75. nexaai/utils/model_manager.py +1562 -1562
  76. nexaai/utils/model_types.py +49 -49
  77. nexaai/utils/progress_tracker.py +384 -384
  78. nexaai/utils/quantization_utils.py +245 -245
  79. nexaai/vlm.py +129 -129
  80. nexaai/vlm_impl/mlx_vlm_impl.py +258 -258
  81. nexaai/vlm_impl/pybind_vlm_impl.py +256 -256
  82. {nexaai-1.0.21rc5.dist-info → nexaai-1.0.21rc14.dist-info}/METADATA +1 -1
  83. nexaai-1.0.21rc14.dist-info/RECORD +154 -0
  84. nexaai/binds/nexaml/FLAC.dll +0 -0
  85. nexaai/binds/nexaml/fftw3.dll +0 -0
  86. nexaai/binds/nexaml/fftw3f.dll +0 -0
  87. nexaai/binds/nexaml/ggml-base.dll +0 -0
  88. nexaai/binds/nexaml/ggml-cpu.dll +0 -0
  89. nexaai/binds/nexaml/ggml-opencl.dll +0 -0
  90. nexaai/binds/nexaml/ggml.dll +0 -0
  91. nexaai/binds/nexaml/libmp3lame.DLL +0 -0
  92. nexaai/binds/nexaml/mpg123.dll +0 -0
  93. nexaai/binds/nexaml/nexa-mm-process.dll +0 -0
  94. nexaai/binds/nexaml/nexa-sampling.dll +0 -0
  95. nexaai/binds/nexaml/nexa_plugin.dll +0 -0
  96. nexaai/binds/nexaml/nexaproc.dll +0 -0
  97. nexaai/binds/nexaml/ogg.dll +0 -0
  98. nexaai/binds/nexaml/opus.dll +0 -0
  99. nexaai/binds/nexaml/qwen3-vl.dll +0 -0
  100. nexaai/binds/nexaml/qwen3vl-vision.dll +0 -0
  101. nexaai/binds/nexaml/vorbis.dll +0 -0
  102. nexaai/binds/nexaml/vorbisenc.dll +0 -0
  103. nexaai-1.0.21rc5.dist-info/RECORD +0 -162
  104. {nexaai-1.0.21rc5.dist-info → nexaai-1.0.21rc14.dist-info}/WHEEL +0 -0
  105. {nexaai-1.0.21rc5.dist-info → nexaai-1.0.21rc14.dist-info}/top_level.txt +0 -0
@@ -1,49 +1,49 @@
1
- """
2
- Model type mappings for HuggingFace pipeline tags to our internal model types.
3
-
4
- This module provides centralized model type mapping functionality to avoid
5
- circular imports between other utility modules.
6
- """
7
-
8
- from enum import Enum
9
- from typing import Dict
10
-
11
-
12
- class ModelTypeMapping(Enum):
13
- """Enum for mapping HuggingFace pipeline_tag to our ModelType."""
14
- TEXT_GENERATION = ("text-generation", "llm")
15
- IMAGE_TEXT_TO_TEXT = ("image-text-to-text", "vlm")
16
- ANY_TO_ANY = ("any-to-any", "ata")
17
- AUTOMATIC_SPEECH_RECOGNITION = ("automatic-speech-recognition", "asr")
18
-
19
- def __init__(self, pipeline_tag: str, model_type: str):
20
- self.pipeline_tag = pipeline_tag
21
- self.model_type = model_type
22
-
23
-
24
- # Create mapping dictionaries from the enum
25
- PIPELINE_TO_MODEL_TYPE: Dict[str, str] = {
26
- mapping.pipeline_tag: mapping.model_type
27
- for mapping in ModelTypeMapping
28
- }
29
-
30
- MODEL_TYPE_TO_PIPELINE: Dict[str, str] = {
31
- mapping.model_type: mapping.pipeline_tag
32
- for mapping in ModelTypeMapping
33
- }
34
-
35
-
36
- def map_pipeline_tag_to_model_type(pipeline_tag: str) -> str:
37
- """Map HuggingFace pipeline_tag to our ModelType."""
38
- if not pipeline_tag:
39
- return "other"
40
-
41
- return PIPELINE_TO_MODEL_TYPE.get(pipeline_tag, "other")
42
-
43
-
44
- def map_model_type_to_pipeline_tag(model_type: str) -> str:
45
- """Reverse map ModelType back to HuggingFace pipeline_tag."""
46
- if not model_type:
47
- return None
48
-
49
- return MODEL_TYPE_TO_PIPELINE.get(model_type)
1
+ """
2
+ Model type mappings for HuggingFace pipeline tags to our internal model types.
3
+
4
+ This module provides centralized model type mapping functionality to avoid
5
+ circular imports between other utility modules.
6
+ """
7
+
8
+ from enum import Enum
9
+ from typing import Dict
10
+
11
+
12
+ class ModelTypeMapping(Enum):
13
+ """Enum for mapping HuggingFace pipeline_tag to our ModelType."""
14
+ TEXT_GENERATION = ("text-generation", "llm")
15
+ IMAGE_TEXT_TO_TEXT = ("image-text-to-text", "vlm")
16
+ ANY_TO_ANY = ("any-to-any", "ata")
17
+ AUTOMATIC_SPEECH_RECOGNITION = ("automatic-speech-recognition", "asr")
18
+
19
+ def __init__(self, pipeline_tag: str, model_type: str):
20
+ self.pipeline_tag = pipeline_tag
21
+ self.model_type = model_type
22
+
23
+
24
+ # Create mapping dictionaries from the enum
25
+ PIPELINE_TO_MODEL_TYPE: Dict[str, str] = {
26
+ mapping.pipeline_tag: mapping.model_type
27
+ for mapping in ModelTypeMapping
28
+ }
29
+
30
+ MODEL_TYPE_TO_PIPELINE: Dict[str, str] = {
31
+ mapping.model_type: mapping.pipeline_tag
32
+ for mapping in ModelTypeMapping
33
+ }
34
+
35
+
36
+ def map_pipeline_tag_to_model_type(pipeline_tag: str) -> str:
37
+ """Map HuggingFace pipeline_tag to our ModelType."""
38
+ if not pipeline_tag:
39
+ return "other"
40
+
41
+ return PIPELINE_TO_MODEL_TYPE.get(pipeline_tag, "other")
42
+
43
+
44
+ def map_model_type_to_pipeline_tag(model_type: str) -> str:
45
+ """Reverse map ModelType back to HuggingFace pipeline_tag."""
46
+ if not model_type:
47
+ return None
48
+
49
+ return MODEL_TYPE_TO_PIPELINE.get(model_type)