nexaai 1.0.19rc17__cp310-cp310-macosx_14_0_universal2.whl → 1.0.19rc18__cp310-cp310-macosx_14_0_universal2.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.19-rc17"
4
+ __version__ = "1.0.19-rc18"
Binary file
@@ -578,7 +578,21 @@ class TextAttention(nn.Module):
578
578
  keys, values = cache.update_and_fetch(keys, values)
579
579
  else:
580
580
  if cache is not None:
581
- offset_delta = rope_deltas.item() if rope_deltas is not None and rope_deltas.size == 1 else (rope_deltas.reshape(-1)[0].item() if rope_deltas is not None else 0)
581
+ # Handle different types of rope_deltas: scalar, array, or None
582
+ if rope_deltas is None:
583
+ offset_delta = 0
584
+ elif isinstance(rope_deltas, (int, float)):
585
+ # rope_deltas is a scalar
586
+ offset_delta = rope_deltas
587
+ elif hasattr(rope_deltas, 'size') and rope_deltas.size == 1:
588
+ # rope_deltas is an array with single element
589
+ offset_delta = rope_deltas.item()
590
+ elif hasattr(rope_deltas, 'shape') and rope_deltas.shape:
591
+ # rope_deltas is an array with multiple elements, take first
592
+ offset_delta = rope_deltas.reshape(-1)[0].item()
593
+ else:
594
+ offset_delta = 0
595
+
582
596
  queries = self.rope(queries, offset=cache.offset + offset_delta)
583
597
  keys = self.rope(keys, offset=cache.offset + offset_delta)
584
598
  keys, values = cache.update_and_fetch(keys, values)
@@ -594,7 +594,21 @@ class TextAttention(nn.Module):
594
594
  keys, values = cache.update_and_fetch(keys, values)
595
595
  else:
596
596
  if cache is not None:
597
- offset_delta = rope_deltas.item() if rope_deltas is not None and rope_deltas.size == 1 else (rope_deltas.reshape(-1)[0].item() if rope_deltas is not None else 0)
597
+ # Handle different types of rope_deltas: scalar, array, or None
598
+ if rope_deltas is None:
599
+ offset_delta = 0
600
+ elif isinstance(rope_deltas, (int, float)):
601
+ # rope_deltas is a scalar
602
+ offset_delta = rope_deltas
603
+ elif hasattr(rope_deltas, 'size') and rope_deltas.size == 1:
604
+ # rope_deltas is an array with single element
605
+ offset_delta = rope_deltas.item()
606
+ elif hasattr(rope_deltas, 'shape') and rope_deltas.shape:
607
+ # rope_deltas is an array with multiple elements, take first
608
+ offset_delta = rope_deltas.reshape(-1)[0].item()
609
+ else:
610
+ offset_delta = 0
611
+
598
612
  queries = self.rope(queries, offset=cache.offset+offset_delta)
599
613
  keys = self.rope(keys, offset=cache.offset+offset_delta)
600
614
  keys, values = cache.update_and_fetch(keys, values)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nexaai
3
- Version: 1.0.19rc17
3
+ Version: 1.0.19rc18
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=L8oB7GFZZMGnUpCg0PecDbI_ycKuQak-ZEJ4Y12_QIw,2184
2
- nexaai/_stub.cpython-310-darwin.so,sha256=q6-e24PuQ8TAkgvbtS_-ncWTIlAndjgFj8BPMJHn_J4,66768
3
- nexaai/_version.py,sha256=iugpe3Pu7ae6x63sq8ZjqN_m8dwW94j77wgKazXegB8,144
2
+ nexaai/_stub.cpython-310-darwin.so,sha256=XWcTFrOy17LhQuAxSKHMBlvF5HH2DY-dt_QL96zcIro,66768
3
+ nexaai/_version.py,sha256=8RkYrsu-D-6BxddlPgjgItoVZoYggrUbQt7emu0HgcI,144
4
4
  nexaai/asr.py,sha256=NljMXDErwPNMOPaRkJZMEDka9Nk8xyur7L8i924TStY,2054
5
5
  nexaai/base.py,sha256=N8PRgDFA-XPku2vWnQIofQ7ipz3pPlO6f8YZGnuhquE,982
6
6
  nexaai/common.py,sha256=Y0NJNLTi4Nq4x1WL6PQsSvGUto0eGmWhjpsC6jcekfA,3444
@@ -19,7 +19,7 @@ nexaai/asr_impl/pybind_asr_impl.py,sha256=pE9Hb_hMi5yAc4MF83bLVOb8zDtreCkB3_u7XE
19
19
  nexaai/binds/__init__.py,sha256=eYuay_8DDXeOUWz2_R9HFSabohxs6hvZn391t2L0Po0,104
20
20
  nexaai/binds/common_bind.cpython-310-darwin.so,sha256=zxJuD0nSV--VZKxBfWZUavU7_bHj_JTi0FhkjvG4VJw,235264
21
21
  nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=tPa0c0Dv_GiW66fgmAGWGCHXRGNApznqoQS0eQx9GFM,202064
22
- nexaai/binds/libnexa_bridge.dylib,sha256=aQ1csyulUSuq4AH5MtGeOcOLRTfnNv4yUhu_tAp11pk,272648
22
+ nexaai/binds/libnexa_bridge.dylib,sha256=7ICz8Ph4iqdI8WRkicbAoQ9TWWC7Wy87wc1EwKfdWHw,272648
23
23
  nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=TAWfa1Hzq00TjtC1xVsiAeLp6hv2LrL5afDz4omUghc,182784
24
24
  nexaai/binds/vlm_bind.cpython-310-darwin.so,sha256=nd6eG_m2EiPthzkSZ97hlXWUOZQir4cQfFJZ4p6eR2U,182704
25
25
  nexaai/binds/cpu_gpu/libggml-base.dylib,sha256=wEaUErvxT6kloxm_siEPxaf0ti2XgaiGCXdAwdcpYPs,650944
@@ -527,7 +527,7 @@ nexaai/mlx_backend/vlm/modeling/models/qwen2_vl/language.py,sha256=OeUoAfIg7dNB4
527
527
  nexaai/mlx_backend/vlm/modeling/models/qwen2_vl/qwen2_vl.py,sha256=YysRg1PszpZdsH7hywqN2pIMZAbU1P636KZoSJCNri8,5740
528
528
  nexaai/mlx_backend/vlm/modeling/models/qwen2_vl/vision.py,sha256=rcneYZYwP5fx3p8xxXEDGvnWAMIn8DXenqBPLBjmVcI,10555
529
529
  nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/processor.py,sha256=_WZK8uv0LAGHO8V5LwCojyS4UYk0tfICsZ9GM4_Pfxo,19156
530
- nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/qwen3vl.py,sha256=NnBwq-OKhF0oHnh4ZQJofLIr7zJlHwNLytbR41Rbl0M,49560
530
+ nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/qwen3vl.py,sha256=KXpmmNKGJn6-tmZ9xQY8UiecBThPc1xPosfI4Ns6lK4,50189
531
531
  nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
532
532
  nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/base.py,sha256=4RlZwgz8YX2ngmJNaymxFFpw9hJu-0EMw9xwXpngW9o,3496
533
533
  nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/cache.py,sha256=NMOB6x-RT6svF4H-Ymo5WqnP7ptAal3aaKjWZXWGMsM,17671
@@ -536,7 +536,7 @@ nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/rope_utils.py,sha256=
536
536
  nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/sample_utils.py,sha256=8SEeVwgjuvaYy-4ALAU0RHQMuRr2k7EkXba_csxk498,10673
537
537
  nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/tokenizer_utils.py,sha256=Gqanx4hBDcon_k5ClhUsS4YpMbZNiee8jvImGS9h43s,13229
538
538
  nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/processor.py,sha256=_WZK8uv0LAGHO8V5LwCojyS4UYk0tfICsZ9GM4_Pfxo,19156
539
- nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/qwen3vl_moe.py,sha256=dTv1JB8m6WEEhEw2StDmVS9f4aN1U2hAoryd4iuop-w,53572
539
+ nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/qwen3vl_moe.py,sha256=ALt0NRu1ia0Nm0AdlAy0l3rJUGBz06zrNC2UBtWD_Zs,54185
540
540
  nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/switch_layers.py,sha256=6hjFCvIH8J1UBEPYaIg9HqSakyZgEEiQoJQ9E0WmZoM,5960
541
541
  nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/llm_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
542
542
  nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/llm_common/base.py,sha256=4RlZwgz8YX2ngmJNaymxFFpw9hJu-0EMw9xwXpngW9o,3496
@@ -566,7 +566,7 @@ nexaai/utils/quantization_utils.py,sha256=FYcNSAKGlBqFDUTx3jSKOr2lnq4nyiyC0ZG8oS
566
566
  nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
567
567
  nexaai/vlm_impl/mlx_vlm_impl.py,sha256=pLtWm_ckz8a0U-AtAOMVseFDO4OVPvHyYO2KlfBaGYk,10833
568
568
  nexaai/vlm_impl/pybind_vlm_impl.py,sha256=FAbhpRJzHgI78r0mUvKybO97R1szvNhH0aTn_I52oT4,8597
569
- nexaai-1.0.19rc17.dist-info/METADATA,sha256=3HZLNKJVfSxlE0d-gkXQ633fzLT_S-2WdEWUPsQMEfA,1202
570
- nexaai-1.0.19rc17.dist-info/WHEEL,sha256=T2p57lol9__xkoU6aJTyN1Pm43ZpRU3q6km7mIbrAMs,114
571
- nexaai-1.0.19rc17.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
572
- nexaai-1.0.19rc17.dist-info/RECORD,,
569
+ nexaai-1.0.19rc18.dist-info/METADATA,sha256=JzF3bfCp9U7_ZxC0eCoQIg67spCF5NoRqEeh_YDhgY4,1202
570
+ nexaai-1.0.19rc18.dist-info/WHEEL,sha256=T2p57lol9__xkoU6aJTyN1Pm43ZpRU3q6km7mIbrAMs,114
571
+ nexaai-1.0.19rc18.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
572
+ nexaai-1.0.19rc18.dist-info/RECORD,,