nexaai 0.0.0__cp310-cp310-macosx_14_0_universal2.whl → 1.0.4rc14__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.
- nexaai/_stub.cpython-310-darwin.so +0 -0
- nexaai/_version.py +1 -1
- nexaai/binds/libnexa_bridge.dylib +0 -0
- nexaai/binds/nexa_llama_cpp/libggml-base.dylib +0 -0
- nexaai/binds/nexa_llama_cpp/libggml-cpu.so +0 -0
- nexaai/binds/nexa_llama_cpp/libggml-metal.so +0 -0
- nexaai/binds/nexa_llama_cpp/libggml.dylib +0 -0
- nexaai/binds/nexa_llama_cpp/libllama.dylib +0 -0
- nexaai/binds/nexa_llama_cpp/libmtmd.dylib +0 -0
- nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib +0 -0
- nexaai/utils/progress_tracker.py +21 -12
- {nexaai-0.0.0.dist-info → nexaai-1.0.4rc14.dist-info}/METADATA +1 -1
- {nexaai-0.0.0.dist-info → nexaai-1.0.4rc14.dist-info}/RECORD +15 -15
- {nexaai-0.0.0.dist-info → nexaai-1.0.4rc14.dist-info}/WHEEL +0 -0
- {nexaai-0.0.0.dist-info → nexaai-1.0.4rc14.dist-info}/top_level.txt +0 -0
|
Binary file
|
nexaai/_version.py
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
nexaai/utils/progress_tracker.py
CHANGED
|
@@ -62,8 +62,8 @@ class DownloadProgressTracker:
|
|
|
62
62
|
self.last_display_length = 0
|
|
63
63
|
|
|
64
64
|
# Speed tracking
|
|
65
|
-
self.last_downloaded =
|
|
66
|
-
self.last_time = time
|
|
65
|
+
self.last_downloaded = None # Use None to indicate no previous measurement
|
|
66
|
+
self.last_time = None # Use None to indicate no previous time measurement
|
|
67
67
|
self.speed_history = []
|
|
68
68
|
self.max_speed_history = 10
|
|
69
69
|
|
|
@@ -101,18 +101,27 @@ class DownloadProgressTracker:
|
|
|
101
101
|
def calculate_speed(self, current_downloaded: int) -> float:
|
|
102
102
|
"""Calculate download speed in bytes per second."""
|
|
103
103
|
current_time = time.time()
|
|
104
|
-
time_diff = current_time - self.last_time
|
|
105
104
|
|
|
106
|
-
if
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
# Add to speed history for smoothing
|
|
111
|
-
self.speed_history.append(speed)
|
|
112
|
-
if len(self.speed_history) > self.max_speed_history:
|
|
113
|
-
self.speed_history.pop(0)
|
|
105
|
+
# Check if we have a previous measurement to compare against
|
|
106
|
+
if self.last_time is not None and self.last_downloaded is not None:
|
|
107
|
+
time_diff = current_time - self.last_time
|
|
114
108
|
|
|
115
|
-
#
|
|
109
|
+
# Only calculate if we have a meaningful time difference (avoid division by very small numbers)
|
|
110
|
+
if time_diff > 0.5: # At least 500ms between measurements
|
|
111
|
+
bytes_diff = current_downloaded - self.last_downloaded
|
|
112
|
+
|
|
113
|
+
# Only calculate speed if bytes actually changed
|
|
114
|
+
if bytes_diff >= 0: # Allow 0 for periods with no progress
|
|
115
|
+
speed = bytes_diff / time_diff
|
|
116
|
+
|
|
117
|
+
# Add to speed history for smoothing
|
|
118
|
+
self.speed_history.append(speed)
|
|
119
|
+
if len(self.speed_history) > self.max_speed_history:
|
|
120
|
+
self.speed_history.pop(0)
|
|
121
|
+
|
|
122
|
+
# Return the average of historical speeds if we have any
|
|
123
|
+
# This ensures we show the last known speed even when skipping updates
|
|
124
|
+
if self.speed_history:
|
|
116
125
|
return sum(self.speed_history) / len(self.speed_history)
|
|
117
126
|
|
|
118
127
|
return 0.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
nexaai/__init__.py,sha256=JTjJWdiBXHZyc_91Oe-GNOcODFp9gbUQM43bzNY7S8Q,1906
|
|
2
|
-
nexaai/_stub.cpython-310-darwin.so,sha256=
|
|
3
|
-
nexaai/_version.py,sha256=
|
|
2
|
+
nexaai/_stub.cpython-310-darwin.so,sha256=jLqSTNxJs9FVD19-Vwob9M8ciDqSHgKE3KgoF4FDlbI,66768
|
|
3
|
+
nexaai/_version.py,sha256=81zx9t__xAdjV8GwoDFsZWlADrXI5VeJD0AkYlQ8P9g,143
|
|
4
4
|
nexaai/asr.py,sha256=Yg8Yml_nklzJYl3C_lwvEApTdNjY2czAurDaoEjkiIU,1813
|
|
5
5
|
nexaai/base.py,sha256=N8PRgDFA-XPku2vWnQIofQ7ipz3pPlO6f8YZGnuhquE,982
|
|
6
6
|
nexaai/common.py,sha256=VPM7NaUNaLTT7quW-u4D2uOeNrQqPjvfcgJlYGS3Qy8,1525
|
|
@@ -18,15 +18,15 @@ nexaai/asr_impl/pybind_asr_impl.py,sha256=ybvthYgtVbH_JgpSsl0nxjZYvXyk8KGRSKdsJ-
|
|
|
18
18
|
nexaai/binds/__init__.py,sha256=T9Ua7SzHNglSeEqXlfH5ymYXRyXhNKkC9z_y_bWCNMo,80
|
|
19
19
|
nexaai/binds/common_bind.cpython-310-darwin.so,sha256=hVxY76tn7hN6uHDIgM7LWNvgoudHgNZVoaygM9X1RWE,217232
|
|
20
20
|
nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=FT8581RNciilskK89PhtnNSjw4Oh0-xk8QdbJVFmOd8,202064
|
|
21
|
-
nexaai/binds/libnexa_bridge.dylib,sha256=
|
|
21
|
+
nexaai/binds/libnexa_bridge.dylib,sha256=JfXpiJg-_MpB77NYNUZnvQdOZWYppGHgpUJ83n9cKVg,251256
|
|
22
22
|
nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=Bv08rn9OBAHy01eAQeANiJSrCxskn1xSx4Gl1Vcrhm0,166064
|
|
23
|
-
nexaai/binds/nexa_llama_cpp/libggml-base.dylib,sha256=
|
|
24
|
-
nexaai/binds/nexa_llama_cpp/libggml-cpu.so,sha256=
|
|
25
|
-
nexaai/binds/nexa_llama_cpp/libggml-metal.so,sha256=
|
|
26
|
-
nexaai/binds/nexa_llama_cpp/libggml.dylib,sha256=
|
|
27
|
-
nexaai/binds/nexa_llama_cpp/libllama.dylib,sha256=
|
|
28
|
-
nexaai/binds/nexa_llama_cpp/libmtmd.dylib,sha256=
|
|
29
|
-
nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib,sha256=
|
|
23
|
+
nexaai/binds/nexa_llama_cpp/libggml-base.dylib,sha256=D_mlY_PNMIFlm6mHERSLMoA7QfYHwEPVlb0UKMbl2N0,632048
|
|
24
|
+
nexaai/binds/nexa_llama_cpp/libggml-cpu.so,sha256=RiMhOv6IAWY1zkFTp0JCB7CYoPfOv54vBVQHvj1koBM,661120
|
|
25
|
+
nexaai/binds/nexa_llama_cpp/libggml-metal.so,sha256=L4RQvaD0w4qBjexi4O05RMCH8842fof5QgBEvyx0RcA,673104
|
|
26
|
+
nexaai/binds/nexa_llama_cpp/libggml.dylib,sha256=aOTj_6RrAMkfDO0ZI28_3nfcC-l4Y3dRCiS3C0d0_eI,58592
|
|
27
|
+
nexaai/binds/nexa_llama_cpp/libllama.dylib,sha256=fDPnTG6EQ1JN6aRmnIFQzag_kmtyImRxKjMOOtaTY5Q,1746928
|
|
28
|
+
nexaai/binds/nexa_llama_cpp/libmtmd.dylib,sha256=ccnBRsJNFGTCsjgW03N9PvX26wUirqpxljnxdVPINVc,587008
|
|
29
|
+
nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib,sha256=1kAoSq1w8pPiNmceOdmAZ7ehfENauFoGq8mpIwGl-kk,1806696
|
|
30
30
|
nexaai/binds/nexa_mlx/libnexa_plugin.dylib,sha256=aw8if8RwXjb02CehbqGPHOeEKRUcTpzeJZLOkjTBm8A,596328
|
|
31
31
|
nexaai/binds/nexa_mlx/py-lib/ml.py,sha256=LafDM_TeXmuQkld2tdQxUBGgooT0JPMXngLam2TADqU,23179
|
|
32
32
|
nexaai/binds/nexa_mlx/py-lib/profiling.py,sha256=Dc-mybFwBdCIKFWL7CbSHjkOJGAoYHG7r_e_XPhzwBU,9361
|
|
@@ -510,11 +510,11 @@ nexaai/tts_impl/pybind_tts_impl.py,sha256=Be5QiXzDz6h1LTIQzUBd0ZyBs7rUpNA-pULCXF
|
|
|
510
510
|
nexaai/utils/avatar_fetcher.py,sha256=bWy8ujgbOiTHFCjFxTwkn3uXbZ84PgEGUkXkR3MH4bI,3821
|
|
511
511
|
nexaai/utils/decode.py,sha256=61n4Zf6c5QLyqGoctEitlI9BX3tPlP2a5aaKNHbw3T4,404
|
|
512
512
|
nexaai/utils/model_manager.py,sha256=c07ocxxw1IHCQw6esbmYK0dX2R2OajfEIGsC_2teHXo,48572
|
|
513
|
-
nexaai/utils/progress_tracker.py,sha256=
|
|
513
|
+
nexaai/utils/progress_tracker.py,sha256=76HlPkyN41IMHSsH56-qdlN_aY_oBfJz50J16Cx67R0,15102
|
|
514
514
|
nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
515
515
|
nexaai/vlm_impl/mlx_vlm_impl.py,sha256=4lFZ8ZQnYZ-Uoh9j2Fh2UzpdpMAy_v1Jz-lrqX33XcI,8947
|
|
516
516
|
nexaai/vlm_impl/pybind_vlm_impl.py,sha256=C-3fa0AIypI33OAGuGfVxo1V7zN0wjQMgruKlDIlW4Q,8333
|
|
517
|
-
nexaai-
|
|
518
|
-
nexaai-
|
|
519
|
-
nexaai-
|
|
520
|
-
nexaai-
|
|
517
|
+
nexaai-1.0.4rc14.dist-info/METADATA,sha256=dsyrftSmP4lR0EolabKfzo8ZRG5CBMHYJKGDRoP0eIM,952
|
|
518
|
+
nexaai-1.0.4rc14.dist-info/WHEEL,sha256=T2p57lol9__xkoU6aJTyN1Pm43ZpRU3q6km7mIbrAMs,114
|
|
519
|
+
nexaai-1.0.4rc14.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
|
|
520
|
+
nexaai-1.0.4rc14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|