nexaai 1.0.19rc17__cp310-cp310-macosx_13_0_x86_64.whl → 1.0.19rc18__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.
- nexaai/_stub.cpython-310-darwin.so +0 -0
- nexaai/_version.py +1 -1
- nexaai/binds/libnexa_bridge.dylib +0 -0
- nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/qwen3vl.py +15 -1
- nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/qwen3vl_moe.py +15 -1
- {nexaai-1.0.19rc17.dist-info → nexaai-1.0.19rc18.dist-info}/METADATA +1 -1
- {nexaai-1.0.19rc17.dist-info → nexaai-1.0.19rc18.dist-info}/RECORD +9 -9
- {nexaai-1.0.19rc17.dist-info → nexaai-1.0.19rc18.dist-info}/WHEEL +0 -0
- {nexaai-1.0.19rc17.dist-info → nexaai-1.0.19rc18.dist-info}/top_level.txt +0 -0
|
Binary file
|
nexaai/_version.py
CHANGED
|
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
|
-
|
|
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
|
-
|
|
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
|
nexaai/__init__.py,sha256=L8oB7GFZZMGnUpCg0PecDbI_ycKuQak-ZEJ4Y12_QIw,2184
|
|
2
|
-
nexaai/_stub.cpython-310-darwin.so,sha256=
|
|
3
|
-
nexaai/_version.py,sha256=
|
|
2
|
+
nexaai/_stub.cpython-310-darwin.so,sha256=g0h8R2nUd5pc53XYZpHNfnzAgI7DNUtWC1YiDwJ1Hxg,49832
|
|
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=BoXByRlNGDaNS1YyZyCF-s7h0vXP9NLPlJMQQ5pqusU,235488
|
|
21
21
|
nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=b2NoXFAJvPLi_P1X7lXLKmAUU0v2HJI3Zwa10gfqHdw,202032
|
|
22
|
-
nexaai/binds/libnexa_bridge.dylib,sha256=
|
|
22
|
+
nexaai/binds/libnexa_bridge.dylib,sha256=wchUb7erQFz4_87nOadGSBLHfvHhgSRDnNIwU9XKzoY,271952
|
|
23
23
|
nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=p1ZTGMolEkWywkmwzOUjTr3RpSEH21BHZAggVzo89Ks,183088
|
|
24
24
|
nexaai/binds/vlm_bind.cpython-310-darwin.so,sha256=LGd-tykePnQFfGca25HnPIBfXsfrMzbwyx6d5Ld3xps,183000
|
|
25
25
|
nexaai/binds/cpu_gpu/libggml-base.dylib,sha256=lbGx0eXRD16XEU_giwjhrQJ7SW_mrnVY8EWB7aoqIvs,629760
|
|
@@ -359,7 +359,7 @@ nexaai/mlx_backend/vlm/modeling/models/qwen2_vl/language.py,sha256=OeUoAfIg7dNB4
|
|
|
359
359
|
nexaai/mlx_backend/vlm/modeling/models/qwen2_vl/qwen2_vl.py,sha256=YysRg1PszpZdsH7hywqN2pIMZAbU1P636KZoSJCNri8,5740
|
|
360
360
|
nexaai/mlx_backend/vlm/modeling/models/qwen2_vl/vision.py,sha256=rcneYZYwP5fx3p8xxXEDGvnWAMIn8DXenqBPLBjmVcI,10555
|
|
361
361
|
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/processor.py,sha256=_WZK8uv0LAGHO8V5LwCojyS4UYk0tfICsZ9GM4_Pfxo,19156
|
|
362
|
-
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/qwen3vl.py,sha256=
|
|
362
|
+
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/qwen3vl.py,sha256=KXpmmNKGJn6-tmZ9xQY8UiecBThPc1xPosfI4Ns6lK4,50189
|
|
363
363
|
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
364
364
|
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/base.py,sha256=4RlZwgz8YX2ngmJNaymxFFpw9hJu-0EMw9xwXpngW9o,3496
|
|
365
365
|
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/cache.py,sha256=NMOB6x-RT6svF4H-Ymo5WqnP7ptAal3aaKjWZXWGMsM,17671
|
|
@@ -368,7 +368,7 @@ nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/rope_utils.py,sha256=
|
|
|
368
368
|
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/sample_utils.py,sha256=8SEeVwgjuvaYy-4ALAU0RHQMuRr2k7EkXba_csxk498,10673
|
|
369
369
|
nexaai/mlx_backend/vlm/modeling/models/qwen3_vl/llm_common/tokenizer_utils.py,sha256=Gqanx4hBDcon_k5ClhUsS4YpMbZNiee8jvImGS9h43s,13229
|
|
370
370
|
nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/processor.py,sha256=_WZK8uv0LAGHO8V5LwCojyS4UYk0tfICsZ9GM4_Pfxo,19156
|
|
371
|
-
nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/qwen3vl_moe.py,sha256=
|
|
371
|
+
nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/qwen3vl_moe.py,sha256=ALt0NRu1ia0Nm0AdlAy0l3rJUGBz06zrNC2UBtWD_Zs,54185
|
|
372
372
|
nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/switch_layers.py,sha256=6hjFCvIH8J1UBEPYaIg9HqSakyZgEEiQoJQ9E0WmZoM,5960
|
|
373
373
|
nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/llm_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
374
374
|
nexaai/mlx_backend/vlm/modeling/models/qwen3vl_moe/llm_common/base.py,sha256=4RlZwgz8YX2ngmJNaymxFFpw9hJu-0EMw9xwXpngW9o,3496
|
|
@@ -398,7 +398,7 @@ nexaai/utils/quantization_utils.py,sha256=FYcNSAKGlBqFDUTx3jSKOr2lnq4nyiyC0ZG8oS
|
|
|
398
398
|
nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
399
399
|
nexaai/vlm_impl/mlx_vlm_impl.py,sha256=pLtWm_ckz8a0U-AtAOMVseFDO4OVPvHyYO2KlfBaGYk,10833
|
|
400
400
|
nexaai/vlm_impl/pybind_vlm_impl.py,sha256=FAbhpRJzHgI78r0mUvKybO97R1szvNhH0aTn_I52oT4,8597
|
|
401
|
-
nexaai-1.0.
|
|
402
|
-
nexaai-1.0.
|
|
403
|
-
nexaai-1.0.
|
|
404
|
-
nexaai-1.0.
|
|
401
|
+
nexaai-1.0.19rc18.dist-info/METADATA,sha256=JzF3bfCp9U7_ZxC0eCoQIg67spCF5NoRqEeh_YDhgY4,1202
|
|
402
|
+
nexaai-1.0.19rc18.dist-info/WHEEL,sha256=0KYp5feZ1CMUhsfFXKpSQTbSmQbXy4mv6yPPVBXg2EM,110
|
|
403
|
+
nexaai-1.0.19rc18.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
|
|
404
|
+
nexaai-1.0.19rc18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|