nexaai 1.0.4rc13__cp310-cp310-macosx_13_0_x86_64.whl → 1.0.4rc14__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/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-1.0.4rc13.dist-info → nexaai-1.0.4rc14.dist-info}/METADATA +1 -1
- {nexaai-1.0.4rc13.dist-info → nexaai-1.0.4rc14.dist-info}/RECORD +15 -15
- {nexaai-1.0.4rc13.dist-info → nexaai-1.0.4rc14.dist-info}/WHEEL +0 -0
- {nexaai-1.0.4rc13.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=QcEdebYGQ_MMnyQcSzdtVvBpoazjD0U0QrbS6hZxB2k,49832
|
|
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=FF5WuJj0fNCim_HjseBQu38vL-1M5zI_7EVTD7Bs-Bc,233960
|
|
20
20
|
nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=mU6hP0SyH8vcmPpC2GIr7ioK7539dsg_YbmrBdmj7l0,202032
|
|
21
|
-
nexaai/binds/libnexa_bridge.dylib,sha256=
|
|
21
|
+
nexaai/binds/libnexa_bridge.dylib,sha256=NArB4EBEEv9hALP0VHGhu8LB0ejN5sPBC_glTUb5_cY,250488
|
|
22
22
|
nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=g4erKCUm2qdMZk1WUrr3IAXixRNp78ViUEkbE5jDOfE,182872
|
|
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=tL8IaPurFjiLfShbnpCA1HuYw2jBI_jhDm_xSBMuMMo,626992
|
|
24
|
+
nexaai/binds/nexa_llama_cpp/libggml-cpu.so,sha256=tZcQGr6aWSQmTN12ieC2nIJ0lID5-mTkqoGjxJh07b4,1039744
|
|
25
|
+
nexaai/binds/nexa_llama_cpp/libggml-metal.so,sha256=eDWuZ4ui8LsahlU05sNEMZ7lTtZfswKtcGcGvWTB0ro,713680
|
|
26
|
+
nexaai/binds/nexa_llama_cpp/libggml.dylib,sha256=Z2ZvkyEEpPtHhMYap-44p9Q0M6TXJbLcMy-smR2X5sk,58336
|
|
27
|
+
nexaai/binds/nexa_llama_cpp/libllama.dylib,sha256=9pJFMHFlKHiQgLzi8YXextf5dPCYylQkpDv0EvCEssM,1958384
|
|
28
|
+
nexaai/binds/nexa_llama_cpp/libmtmd.dylib,sha256=Etc0ZuYVNo9l1OTQRjZY4cTkgH2S2EL84DpxpWJeoJ4,682480
|
|
29
|
+
nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib,sha256=naintrxbd9gDg7xXWE3vb7C8gQi2LCU8D5lcXw2h_YU,1969016
|
|
30
30
|
nexaai/cv_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
nexaai/cv_impl/mlx_cv_impl.py,sha256=mdK4DEffPe96AgDGDXtQeHlG958hf8FO1fBZ1qjZMEE,3162
|
|
32
32
|
nexaai/cv_impl/pybind_cv_impl.py,sha256=yS4JKfRSaIjjVP7hJ-CizG76pIX85bpmGLk9B9cnL24,998
|
|
@@ -357,11 +357,11 @@ nexaai/tts_impl/pybind_tts_impl.py,sha256=Be5QiXzDz6h1LTIQzUBd0ZyBs7rUpNA-pULCXF
|
|
|
357
357
|
nexaai/utils/avatar_fetcher.py,sha256=bWy8ujgbOiTHFCjFxTwkn3uXbZ84PgEGUkXkR3MH4bI,3821
|
|
358
358
|
nexaai/utils/decode.py,sha256=61n4Zf6c5QLyqGoctEitlI9BX3tPlP2a5aaKNHbw3T4,404
|
|
359
359
|
nexaai/utils/model_manager.py,sha256=c07ocxxw1IHCQw6esbmYK0dX2R2OajfEIGsC_2teHXo,48572
|
|
360
|
-
nexaai/utils/progress_tracker.py,sha256=
|
|
360
|
+
nexaai/utils/progress_tracker.py,sha256=76HlPkyN41IMHSsH56-qdlN_aY_oBfJz50J16Cx67R0,15102
|
|
361
361
|
nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
362
362
|
nexaai/vlm_impl/mlx_vlm_impl.py,sha256=4lFZ8ZQnYZ-Uoh9j2Fh2UzpdpMAy_v1Jz-lrqX33XcI,8947
|
|
363
363
|
nexaai/vlm_impl/pybind_vlm_impl.py,sha256=C-3fa0AIypI33OAGuGfVxo1V7zN0wjQMgruKlDIlW4Q,8333
|
|
364
|
-
nexaai-1.0.
|
|
365
|
-
nexaai-1.0.
|
|
366
|
-
nexaai-1.0.
|
|
367
|
-
nexaai-1.0.
|
|
364
|
+
nexaai-1.0.4rc14.dist-info/METADATA,sha256=dsyrftSmP4lR0EolabKfzo8ZRG5CBMHYJKGDRoP0eIM,952
|
|
365
|
+
nexaai-1.0.4rc14.dist-info/WHEEL,sha256=0KYp5feZ1CMUhsfFXKpSQTbSmQbXy4mv6yPPVBXg2EM,110
|
|
366
|
+
nexaai-1.0.4rc14.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
|
|
367
|
+
nexaai-1.0.4rc14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|