nexaai 1.0.15rc1__cp310-cp310-macosx_13_0_x86_64.whl → 1.0.16rc1__cp310-cp310-macosx_13_0_x86_64.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.

Binary file
nexaai/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is generated by CMake from _version.py.in
2
2
  # Do not modify this file manually - it will be overwritten
3
3
 
4
- __version__ = "1.0.15-rc1"
4
+ __version__ = "1.0.16-rc1"
Binary file
Binary file
Binary file
nexaai/vlm.py CHANGED
@@ -18,7 +18,8 @@ class VLM(BaseModel):
18
18
  @classmethod
19
19
  def _load_from(cls,
20
20
  local_path: str,
21
- mmproj_path: str,
21
+ mmproj_path: str = None,
22
+ model_name: Optional[str] = None,
22
23
  m_cfg: ModelConfig = ModelConfig(),
23
24
  plugin_id: Union[PluginID, str] = PluginID.LLAMA_CPP,
24
25
  device_id: Optional[str] = None
@@ -40,10 +41,10 @@ class VLM(BaseModel):
40
41
 
41
42
  if plugin_value == "mlx":
42
43
  from nexaai.vlm_impl.mlx_vlm_impl import MlxVlmImpl
43
- return MlxVlmImpl._load_from(local_path, mmproj_path, m_cfg, plugin_id, device_id)
44
+ return MlxVlmImpl._load_from(local_path, mmproj_path, model_name, m_cfg, plugin_id, device_id)
44
45
  else:
45
46
  from nexaai.vlm_impl.pybind_vlm_impl import PyBindVLMImpl
46
- return PyBindVLMImpl._load_from(local_path, mmproj_path, m_cfg, plugin_id, device_id)
47
+ return PyBindVLMImpl._load_from(local_path, mmproj_path, model_name, m_cfg, plugin_id, device_id)
47
48
 
48
49
  @abstractmethod
49
50
  def eject(self):
@@ -16,7 +16,8 @@ class MlxVlmImpl(VLM):
16
16
  @classmethod
17
17
  def _load_from(cls,
18
18
  local_path: str,
19
- mmproj_path: str,
19
+ mmproj_path: str = None,
20
+ model_name: Optional[str] = None,
20
21
  m_cfg: ModelConfig = ModelConfig(),
21
22
  plugin_id: Union[PluginID, str] = PluginID.MLX,
22
23
  device_id: Optional[str] = None
@@ -39,6 +40,7 @@ class MlxVlmImpl(VLM):
39
40
  # Create instance and load MLX VLM
40
41
  instance = cls(m_cfg)
41
42
  instance._mlx_vlm = MLXVLMInterface(
43
+ model_name=model_name,
42
44
  model_path=local_path,
43
45
  mmproj_path=mmproj_path, # MLX VLM may not use this, but pass it anyway
44
46
  context_length=m_cfg.n_ctx,
@@ -20,7 +20,8 @@ class PyBindVLMImpl(VLM):
20
20
  @classmethod
21
21
  def _load_from(cls,
22
22
  local_path: str,
23
- mmproj_path: str,
23
+ mmproj_path: str = None,
24
+ model_name: Optional[str] = None,
24
25
  m_cfg: ModelConfig = ModelConfig(),
25
26
  plugin_id: Union[PluginID, str] = PluginID.LLAMA_CPP,
26
27
  device_id: Optional[str] = None
@@ -67,6 +68,7 @@ class PyBindVLMImpl(VLM):
67
68
  handle = vlm_bind.create_vlm(
68
69
  model_path=local_path,
69
70
  mmproj_path=mmproj_path,
71
+ # model_name=model_name, # TODO: enable model_name in pybind later
70
72
  model_config=config,
71
73
  plugin_id=plugin_id_str,
72
74
  device_id=device_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nexaai
3
- Version: 1.0.15rc1
3
+ Version: 1.0.16rc1
4
4
  Summary: Python bindings for NexaSDK C-lib backend
5
5
  Author-email: "Nexa AI, Inc." <dev@nexa.ai>
6
6
  Project-URL: Homepage, https://github.com/NexaAI/nexasdk-bridge
@@ -1,6 +1,6 @@
1
1
  nexaai/__init__.py,sha256=jXdC4vv6DBK1fVewYTYSUhOOYfvf_Mk81UIeMGGIKUg,2029
2
- nexaai/_stub.cpython-310-darwin.so,sha256=c13vTseXEw29Vf6u9eZcvJbraUSe8U7ogrbhHz9Cp4o,49832
3
- nexaai/_version.py,sha256=RTizam7VTJj1wR7kjxR6TUmB52cRuaN0Knly10pM6Dg,143
2
+ nexaai/_stub.cpython-310-darwin.so,sha256=l750dB5yQDmg_OOn5m0o2NLD0O6mkzuXLnZ7mRSiCdI,49832
3
+ nexaai/_version.py,sha256=7EfBNDUf953ckawAAUx5uiTAEj9ZWiGcEaL6Sa48g-0,143
4
4
  nexaai/asr.py,sha256=NljMXDErwPNMOPaRkJZMEDka9Nk8xyur7L8i924TStY,2054
5
5
  nexaai/base.py,sha256=N8PRgDFA-XPku2vWnQIofQ7ipz3pPlO6f8YZGnuhquE,982
6
6
  nexaai/common.py,sha256=yBnIbqYaQYnfrl7IczOBh6MDibYZVxwaRJEglYcKgGs,3422
@@ -11,23 +11,23 @@ nexaai/llm.py,sha256=S1o_k2VQoF5w2wO25f142OO1R75TP89Ii69VZv8pIGo,3567
11
11
  nexaai/rerank.py,sha256=vWaBucoQ1wz-2iYnZqyFIcEjm-4Xcs1KDbFN5X8zzDQ,1872
12
12
  nexaai/runtime.py,sha256=mxxHYsb5iBUAm2K_u-XJWr_U-spJ9S4eApc8kf9myjw,1957
13
13
  nexaai/tts.py,sha256=ZnBpWUxIfHhh7KfEjddtH7hHOTa91zg7ogGLakMIALo,2167
14
- nexaai/vlm.py,sha256=3voXmAVnGlXnOiwA3wcX4p0Lvmp0X1VKkQVPObJdwBY,4649
14
+ nexaai/vlm.py,sha256=OCxwML-Z5uVGp3fjzJVtbCxfTLpgxkhQ8Wo6MVysoiw,4733
15
15
  nexaai/asr_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  nexaai/asr_impl/mlx_asr_impl.py,sha256=eosd8-TIWAOwV0HltmoFrLwzXHcU4jyxtncvuZE9pgA,3257
17
17
  nexaai/asr_impl/pybind_asr_impl.py,sha256=pE9Hb_hMi5yAc4MF83bLVOb8zDtreCkB3_u7XED9YpA,1516
18
18
  nexaai/binds/__init__.py,sha256=eYuay_8DDXeOUWz2_R9HFSabohxs6hvZn391t2L0Po0,104
19
- nexaai/binds/common_bind.cpython-310-darwin.so,sha256=7xH5yNkK6Ot-2f9vxmultr9NIeTemlmN5tHIYp8SZHs,233960
20
- nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=XTpR3_y0K2EJkDOYxzm1_UrpimQjVbbBHAaqpowdxmk,202032
21
- nexaai/binds/libnexa_bridge.dylib,sha256=hFKGXYP8kqlmA5g3wVLleD_C1eU_wnmrP9hdz4PRjGc,250376
22
- nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=08DuSv91LIVCS5BSfSx3Nuz088h62lm3MV2yDTSIKt4,183008
23
- nexaai/binds/vlm_bind.cpython-310-darwin.so,sha256=x1hxuCx09P69swsVj46FXHKUH5Ln39ISBjBscyJWESM,183000
19
+ nexaai/binds/common_bind.cpython-310-darwin.so,sha256=KX_nfaQQPzxGv0GS0efcO-ByWai7y7RskMZvSAAaJWI,233960
20
+ nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=b2NoXFAJvPLi_P1X7lXLKmAUU0v2HJI3Zwa10gfqHdw,202032
21
+ nexaai/binds/libnexa_bridge.dylib,sha256=llEdhz1y_whZtZGIrvfAnYOK1vzPSdrIesmMM2djUMc,250376
22
+ nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=aKcT2kW1PL1xPFX7vsT6Gs79ZydcVfg8bKtnEthRpI4,183008
23
+ nexaai/binds/vlm_bind.cpython-310-darwin.so,sha256=LGd-tykePnQFfGca25HnPIBfXsfrMzbwyx6d5Ld3xps,183000
24
24
  nexaai/binds/nexa_llama_cpp/libggml-base.dylib,sha256=GyOkHOM-5uHp7NUZ4Sr9BWak6BYpcc9aqI9A-zPnQp4,629528
25
25
  nexaai/binds/nexa_llama_cpp/libggml-cpu.so,sha256=cnLUQ7WdX-5iiDaH8v45u1kX1NUmK8DanpzSMGCpXPE,1039800
26
26
  nexaai/binds/nexa_llama_cpp/libggml-metal.so,sha256=Xhhl_tLg1xmCIQVrKjqPFaLHAlx_2wUFiwDyUk0wJ-E,713680
27
27
  nexaai/binds/nexa_llama_cpp/libggml.dylib,sha256=12Q1Z98oM81hxzT_GMQsW5rlhC8DOMsX6luWVCFQHcI,58336
28
28
  nexaai/binds/nexa_llama_cpp/libllama.dylib,sha256=ORoTILXdGGX6MLMh-IWLIp4P5UEPOjE4lvWOKM18pCk,1982280
29
29
  nexaai/binds/nexa_llama_cpp/libmtmd.dylib,sha256=1plWvthTQf8IXbXthMG0MZXzWhbzV6ghdVzVFIb1FnU,701504
30
- nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib,sha256=3Dpj5aDJUcJ0CGyl7hstBBsorDwM3U0vVsCjmDB34dg,2025496
30
+ nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib,sha256=1fhFzoJzs4lKjVLn7qPu_n2awlAFlw3iFEog8Lpaz2c,2025496
31
31
  nexaai/cv_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  nexaai/cv_impl/mlx_cv_impl.py,sha256=gKECQOv8iaWwG3bl7xeqVy2NN_9K7tYerIFzfn4eLo4,3228
33
33
  nexaai/cv_impl/pybind_cv_impl.py,sha256=uSmwBste4cT7c8DQmXzRLmzwDf773PAbXNYWW1UzVls,1064
@@ -373,9 +373,9 @@ nexaai/utils/model_types.py,sha256=-DER8L4lAUR_iLS99F0r57avwqWtuN21ug5pX2p24_E,1
373
373
  nexaai/utils/progress_tracker.py,sha256=jdUqtmPqyhwC9uSKvQcJEYETwSt-OhP4oitdJ94614o,15394
374
374
  nexaai/utils/quantization_utils.py,sha256=4gvp6UQfSO9G1FYBwnFtQspTzH9sDbi1PBXw2t1N69M,7650
375
375
  nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
376
- nexaai/vlm_impl/mlx_vlm_impl.py,sha256=od1R1mRoIgPG3NHC7JiDlcB_YJY8aklX8Em3ZkeHNpE,10734
377
- nexaai/vlm_impl/pybind_vlm_impl.py,sha256=n4lBTeDA9i07Fz1sq4694XkA2XQtnJnR9RaaKK0CrcM,8458
378
- nexaai-1.0.15rc1.dist-info/METADATA,sha256=gd9YybS0BkEkI9dj3EhbTkifnaQajoRZTrrAHPLu4k0,1201
379
- nexaai-1.0.15rc1.dist-info/WHEEL,sha256=0KYp5feZ1CMUhsfFXKpSQTbSmQbXy4mv6yPPVBXg2EM,110
380
- nexaai-1.0.15rc1.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
381
- nexaai-1.0.15rc1.dist-info/RECORD,,
376
+ nexaai/vlm_impl/mlx_vlm_impl.py,sha256=pLtWm_ckz8a0U-AtAOMVseFDO4OVPvHyYO2KlfBaGYk,10833
377
+ nexaai/vlm_impl/pybind_vlm_impl.py,sha256=FAbhpRJzHgI78r0mUvKybO97R1szvNhH0aTn_I52oT4,8597
378
+ nexaai-1.0.16rc1.dist-info/METADATA,sha256=r6AFZTmIlfHej4lRQm2zJ319SpJQvCoAe3Cq0oXlsE4,1201
379
+ nexaai-1.0.16rc1.dist-info/WHEEL,sha256=0KYp5feZ1CMUhsfFXKpSQTbSmQbXy4mv6yPPVBXg2EM,110
380
+ nexaai-1.0.16rc1.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
381
+ nexaai-1.0.16rc1.dist-info/RECORD,,