nexaai 1.0.19rc5__cp310-cp310-win_amd64.whl → 1.0.19rc6__cp310-cp310-win_amd64.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-rc5"
4
+ __version__ = "1.0.19-rc6"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -22,11 +22,6 @@ from .model_types import (
22
22
  MODEL_TYPE_TO_PIPELINE
23
23
  )
24
24
 
25
- MODEL_FILE_TYPE_TO_PLUGIN_ID_MAPPING = {
26
- 'npu': 'npu',
27
- 'mlx': 'mlx',
28
- 'gguf': 'llama_cpp'
29
- }
30
25
 
31
26
  def process_manifest_metadata(manifest: Dict[str, Any], repo_id: str) -> Dict[str, Any]:
32
27
  """Process manifest metadata to handle null/missing fields."""
@@ -99,20 +94,12 @@ def save_download_metadata(directory_path: str, metadata: Dict[str, Any]) -> Non
99
94
  pass
100
95
 
101
96
 
102
- def _get_plugin_id_from_model_file_type(model_file_type: Optional[str], default: str = "llama_cpp") -> str:
103
- """Map model file type to PluginId."""
104
- return MODEL_FILE_TYPE_TO_PLUGIN_ID_MAPPING.get(model_file_type, default)
105
-
106
-
107
- def create_gguf_manifest(repo_id: str, files: List[str], directory_path: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None, **kwargs) -> Dict[str, Any]:
97
+ def create_gguf_manifest(repo_id: str, files: List[str], directory_path: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None) -> Dict[str, Any]:
108
98
  """Create GGUF format manifest."""
109
99
 
110
100
  # Load existing manifest to merge GGUF files if it exists
111
101
  existing_manifest = load_nexa_manifest(directory_path)
112
102
 
113
- # Check if there's a downloaded nexa.manifest from the repo
114
- downloaded_manifest = old_metadata.get('downloaded_manifest', {})
115
-
116
103
  model_files = {}
117
104
  if existing_manifest and "ModelFile" in existing_manifest:
118
105
  model_files = existing_manifest["ModelFile"].copy()
@@ -164,41 +151,10 @@ def create_gguf_manifest(repo_id: str, files: List[str], directory_path: str, ol
164
151
  "Size": file_size
165
152
  }
166
153
 
167
- # Determine PluginId with priority: kwargs > downloaded_manifest > model_file_type > default
168
- plugin_id = kwargs.get('plugin_id')
169
- if not plugin_id:
170
- model_file_type = old_metadata.get('model_file_type')
171
- if downloaded_manifest.get('PluginId'):
172
- plugin_id = downloaded_manifest.get('PluginId')
173
- elif model_file_type:
174
- plugin_id = _get_plugin_id_from_model_file_type(model_file_type)
175
- else:
176
- plugin_id = "llama_cpp"
177
-
178
- # Determine ModelType with priority: kwargs > downloaded_manifest > pipeline_tag mapping
179
- model_type = kwargs.get('model_type')
180
- if not model_type:
181
- if downloaded_manifest.get('ModelType'):
182
- model_type = downloaded_manifest.get('ModelType')
183
- else:
184
- model_type = PIPELINE_TO_MODEL_TYPE.get(old_metadata.get('pipeline_tag'), "other")
185
-
186
- # Determine ModelName with priority: kwargs > downloaded_manifest > empty string
187
- model_name = kwargs.get('model_name')
188
- if not model_name:
189
- model_name = downloaded_manifest.get('ModelName', '')
190
-
191
- # Get DeviceId and MinSDKVersion from kwargs or default to empty string
192
- device_id = kwargs.get('device_id', '')
193
- min_sdk_version = kwargs.get('min_sdk_version', '')
194
-
195
154
  manifest = {
196
155
  "Name": repo_id,
197
- "ModelName": model_name,
198
- "ModelType": model_type,
199
- "PluginId": plugin_id,
200
- "DeviceId": device_id,
201
- "MinSDKVersion": min_sdk_version,
156
+ "ModelType": PIPELINE_TO_MODEL_TYPE.get(old_metadata.get('pipeline_tag'), "other"),
157
+ "PluginId": "llama_cpp",
202
158
  "ModelFile": model_files,
203
159
  "MMProjFile": mmproj_file,
204
160
  "TokenizerFile": {
@@ -216,15 +172,12 @@ def create_gguf_manifest(repo_id: str, files: List[str], directory_path: str, ol
216
172
  return manifest
217
173
 
218
174
 
219
- def create_mlx_manifest(repo_id: str, files: List[str], directory_path: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None, **kwargs) -> Dict[str, Any]:
175
+ def create_mlx_manifest(repo_id: str, files: List[str], directory_path: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None) -> Dict[str, Any]:
220
176
  """Create MLX format manifest."""
221
177
 
222
178
  # Load existing manifest to merge MLX files if it exists
223
179
  existing_manifest = load_nexa_manifest(directory_path)
224
180
 
225
- # Check if there's a downloaded nexa.manifest from the repo
226
- downloaded_manifest = old_metadata.get('downloaded_manifest', {})
227
-
228
181
  model_files = {}
229
182
  extra_files = []
230
183
 
@@ -280,153 +233,10 @@ def create_mlx_manifest(repo_id: str, files: List[str], directory_path: str, old
280
233
  "Size": file_size
281
234
  })
282
235
 
283
- # Determine PluginId with priority: kwargs > downloaded_manifest > model_file_type > default
284
- plugin_id = kwargs.get('plugin_id')
285
- if not plugin_id:
286
- model_file_type = old_metadata.get('model_file_type')
287
- if downloaded_manifest.get('PluginId'):
288
- plugin_id = downloaded_manifest.get('PluginId')
289
- elif model_file_type:
290
- plugin_id = _get_plugin_id_from_model_file_type(model_file_type)
291
- else:
292
- plugin_id = "mlx"
293
-
294
- # Determine ModelType with priority: kwargs > downloaded_manifest > pipeline_tag mapping
295
- model_type = kwargs.get('model_type')
296
- if not model_type:
297
- if downloaded_manifest.get('ModelType'):
298
- model_type = downloaded_manifest.get('ModelType')
299
- else:
300
- model_type = PIPELINE_TO_MODEL_TYPE.get(old_metadata.get('pipeline_tag'), "other")
301
-
302
- # Determine ModelName with priority: kwargs > downloaded_manifest > empty string
303
- model_name = kwargs.get('model_name')
304
- if not model_name:
305
- model_name = downloaded_manifest.get('ModelName', '')
306
-
307
- # Get DeviceId and MinSDKVersion from kwargs or default to empty string
308
- device_id = kwargs.get('device_id', '')
309
- min_sdk_version = kwargs.get('min_sdk_version', '')
310
-
311
- manifest = {
312
- "Name": repo_id,
313
- "ModelName": model_name,
314
- "ModelType": model_type,
315
- "PluginId": plugin_id,
316
- "DeviceId": device_id,
317
- "MinSDKVersion": min_sdk_version,
318
- "ModelFile": model_files,
319
- "MMProjFile": mmproj_file,
320
- "TokenizerFile": {
321
- "Name": "",
322
- "Downloaded": False,
323
- "Size": 0
324
- },
325
- "ExtraFiles": extra_files if extra_files else None,
326
- # Preserve old metadata fields
327
- "pipeline_tag": old_metadata.get('pipeline_tag') if old_metadata.get('pipeline_tag') else existing_manifest.get('pipeline_tag'),
328
- "download_time": old_metadata.get('download_time') if old_metadata.get('download_time') else existing_manifest.get('download_time'),
329
- "avatar_url": old_metadata.get('avatar_url') if old_metadata.get('avatar_url') else existing_manifest.get('avatar_url')
330
- }
331
-
332
- return manifest
333
-
334
-
335
- def create_npu_manifest(repo_id: str, files: List[str], directory_path: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None, **kwargs) -> Dict[str, Any]:
336
- """Create NPU format manifest."""
337
-
338
- # Load existing manifest to merge NPU files if it exists
339
- existing_manifest = load_nexa_manifest(directory_path)
340
-
341
- # Check if there's a downloaded nexa.manifest from the repo
342
- downloaded_manifest = old_metadata.get('downloaded_manifest', {})
343
-
344
- model_files = {}
345
- extra_files = []
346
-
347
- # Initialize MMProjFile
348
- mmproj_file = {
349
- "Name": "",
350
- "Downloaded": False,
351
- "Size": 0
352
- }
353
-
354
- for current_file_name in files:
355
- file_path = os.path.join(directory_path, current_file_name)
356
- file_size = 0
357
- if os.path.exists(file_path):
358
- try:
359
- file_size = os.path.getsize(file_path)
360
- except (OSError, IOError):
361
- pass
362
-
363
- # Check if this file is an mmproj file
364
- is_current_mmproj = 'mmproj' in current_file_name.lower()
365
-
366
- # If we're downloading specific files and this is marked as mmproj, respect that
367
- if is_mmproj and file_name is not None:
368
- filenames_to_check = file_name if isinstance(file_name, list) else [file_name]
369
- is_current_mmproj = current_file_name in filenames_to_check
370
-
371
- if is_current_mmproj:
372
- # This is an mmproj file, put it in MMProjFile
373
- mmproj_file = {
374
- "Name": current_file_name,
375
- "Downloaded": True,
376
- "Size": file_size
377
- }
378
- else:
379
- # For NPU, all non-mmproj files go to extra_files
380
- extra_files.append({
381
- "Name": current_file_name,
382
- "Downloaded": True,
383
- "Size": file_size
384
- })
385
-
386
- # Pick the first file from extra_files and add it to ModelFile with key "N/A"
387
- if extra_files:
388
- first_file = extra_files[0]
389
- model_files["N/A"] = {
390
- "Name": first_file["Name"],
391
- "Downloaded": first_file["Downloaded"],
392
- "Size": first_file["Size"]
393
- }
394
-
395
- # Determine PluginId with priority: kwargs > downloaded_manifest > model_file_type > default
396
- plugin_id = kwargs.get('plugin_id')
397
- if not plugin_id:
398
- model_file_type = old_metadata.get('model_file_type')
399
- if downloaded_manifest.get('PluginId'):
400
- plugin_id = downloaded_manifest.get('PluginId')
401
- elif model_file_type:
402
- plugin_id = _get_plugin_id_from_model_file_type(model_file_type)
403
- else:
404
- plugin_id = "npu"
405
-
406
- # Determine ModelType with priority: kwargs > downloaded_manifest > pipeline_tag mapping
407
- model_type = kwargs.get('model_type')
408
- if not model_type:
409
- if downloaded_manifest.get('ModelType'):
410
- model_type = downloaded_manifest.get('ModelType')
411
- else:
412
- model_type = PIPELINE_TO_MODEL_TYPE.get(old_metadata.get('pipeline_tag'), "other")
413
-
414
- # Determine ModelName with priority: kwargs > downloaded_manifest > empty string
415
- model_name = kwargs.get('model_name')
416
- if not model_name:
417
- model_name = downloaded_manifest.get('ModelName', '')
418
-
419
- # Get DeviceId and MinSDKVersion from kwargs or default to empty string
420
- device_id = kwargs.get('device_id', '')
421
- min_sdk_version = kwargs.get('min_sdk_version', '')
422
-
423
236
  manifest = {
424
237
  "Name": repo_id,
425
- "ModelName": model_name,
426
- "ModelType": model_type,
427
- "PluginId": plugin_id,
428
- "DeviceId": device_id,
429
- "MinSDKVersion": min_sdk_version,
238
+ "ModelType": PIPELINE_TO_MODEL_TYPE.get(old_metadata.get('pipeline_tag'), "other"),
239
+ "PluginId": "mlx",
430
240
  "ModelFile": model_files,
431
241
  "MMProjFile": mmproj_file,
432
242
  "TokenizerFile": {
@@ -444,21 +254,8 @@ def create_npu_manifest(repo_id: str, files: List[str], directory_path: str, old
444
254
  return manifest
445
255
 
446
256
 
447
- def detect_model_type(files: List[str], old_metadata: Dict[str, Any] = None) -> str:
448
- """Detect if this is a GGUF, MLX, or NPU model based on file extensions and metadata.
449
-
450
- Args:
451
- files: List of files in the model directory
452
- old_metadata: Metadata dict that may contain 'model_file_type'
453
-
454
- Returns:
455
- Model type string: 'gguf', 'mlx', or 'npu'
456
- """
457
- # Check if model_file_type is explicitly set to NPU
458
- if old_metadata and old_metadata.get('model_file_type') == 'npu':
459
- return "npu"
460
-
461
- # Otherwise, detect based on file extensions
257
+ def detect_model_type(files: List[str]) -> str:
258
+ """Detect if this is a GGUF or MLX model based on file extensions."""
462
259
  has_gguf = any(f.endswith('.gguf') for f in files)
463
260
  has_safetensors = any(f.endswith('.safetensors') or 'safetensors' in f for f in files)
464
261
 
@@ -471,7 +268,7 @@ def detect_model_type(files: List[str], old_metadata: Dict[str, Any] = None) ->
471
268
  return "mlx"
472
269
 
473
270
 
474
- def create_manifest_from_files(repo_id: str, files: List[str], directory_path: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None, **kwargs) -> Dict[str, Any]:
271
+ def create_manifest_from_files(repo_id: str, files: List[str], directory_path: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None) -> Dict[str, Any]:
475
272
  """
476
273
  Create appropriate manifest format based on detected model type.
477
274
 
@@ -479,25 +276,22 @@ def create_manifest_from_files(repo_id: str, files: List[str], directory_path: s
479
276
  repo_id: Repository ID
480
277
  files: List of files in the model directory
481
278
  directory_path: Path to the model directory
482
- old_metadata: Existing metadata (pipeline_tag, download_time, avatar_url, model_file_type)
279
+ old_metadata: Existing metadata (pipeline_tag, download_time, avatar_url)
483
280
  is_mmproj: Whether the downloaded file is an mmproj file
484
281
  file_name: The specific file(s) that were downloaded (None if entire repo was downloaded)
485
- **kwargs: Additional metadata including plugin_id, model_name, model_type, device_id, min_sdk_version
486
282
 
487
283
  Returns:
488
284
  Dict containing the appropriate manifest format
489
285
  """
490
- model_type = detect_model_type(files, old_metadata)
286
+ model_type = detect_model_type(files)
491
287
 
492
288
  if model_type == "gguf":
493
- return create_gguf_manifest(repo_id, files, directory_path, old_metadata, is_mmproj, file_name, **kwargs)
494
- elif model_type == "npu":
495
- return create_npu_manifest(repo_id, files, directory_path, old_metadata, is_mmproj, file_name, **kwargs)
289
+ return create_gguf_manifest(repo_id, files, directory_path, old_metadata, is_mmproj, file_name)
496
290
  else: # mlx or other
497
- return create_mlx_manifest(repo_id, files, directory_path, old_metadata, is_mmproj, file_name, **kwargs)
291
+ return create_mlx_manifest(repo_id, files, directory_path, old_metadata, is_mmproj, file_name)
498
292
 
499
293
 
500
- def save_manifest_with_files_metadata(repo_id: str, local_dir: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None, **kwargs) -> None:
294
+ def save_manifest_with_files_metadata(repo_id: str, local_dir: str, old_metadata: Dict[str, Any], is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None) -> None:
501
295
  """
502
296
  Create and save manifest based on files found in the directory.
503
297
 
@@ -507,7 +301,6 @@ def save_manifest_with_files_metadata(repo_id: str, local_dir: str, old_metadata
507
301
  old_metadata: Existing metadata to preserve
508
302
  is_mmproj: Whether the downloaded file is an mmproj file
509
303
  file_name: The specific file(s) that were downloaded (None if entire repo was downloaded)
510
- **kwargs: Additional metadata including plugin_id, model_name, model_type, device_id, min_sdk_version
511
304
  """
512
305
  # Get list of files in the directory
513
306
  files = []
@@ -521,7 +314,7 @@ def save_manifest_with_files_metadata(repo_id: str, local_dir: str, old_metadata
521
314
  pass
522
315
 
523
316
  # Create appropriate manifest
524
- manifest = create_manifest_from_files(repo_id, files, local_dir, old_metadata, is_mmproj, file_name, **kwargs)
317
+ manifest = create_manifest_from_files(repo_id, files, local_dir, old_metadata, is_mmproj, file_name)
525
318
 
526
319
  # Save manifest
527
320
  save_download_metadata(local_dir, manifest)
@@ -595,7 +595,6 @@ class HuggingFaceDownloader:
595
595
  self.enable_transfer = enable_transfer
596
596
  self.original_hf_transfer = None
597
597
  self.endpoint = endpoint # Store endpoint for avatar fetching
598
- self._model_info_cache: Dict[str, Any] = {} # Cache for model_info results
599
598
 
600
599
  def _create_repo_directory(self, local_dir: str, repo_id: str) -> str:
601
600
  """Create a directory structure for the repository following HF convention."""
@@ -619,32 +618,6 @@ class HuggingFaceDownloader:
619
618
  os.makedirs(local_dir, exist_ok=True)
620
619
  return local_dir
621
620
 
622
- def _get_model_info_cached(self, repo_id: str, files_metadata: bool = False):
623
- """Get model info with caching to avoid rate limiting.
624
-
625
- Args:
626
- repo_id: Repository ID
627
- files_metadata: Whether to include files metadata
628
-
629
- Returns:
630
- Model info object from HuggingFace API
631
- """
632
- # Create cache key based on repo_id and files_metadata flag
633
- cache_key = f"{repo_id}:files={files_metadata}"
634
-
635
- # Return cached result if available
636
- if cache_key in self._model_info_cache:
637
- return self._model_info_cache[cache_key]
638
-
639
- # Fetch from API and cache the result
640
- try:
641
- info = self.api.model_info(repo_id, files_metadata=files_metadata, token=self.token)
642
- self._model_info_cache[cache_key] = info
643
- return info
644
- except Exception:
645
- # Don't cache errors, re-raise
646
- raise
647
-
648
621
  def _get_repo_info_for_progress(
649
622
  self,
650
623
  repo_id: str,
@@ -652,7 +625,7 @@ class HuggingFaceDownloader:
652
625
  ) -> tuple[int, int]:
653
626
  """Get total repository size and file count for progress tracking."""
654
627
  try:
655
- info = self._get_model_info_cached(repo_id, files_metadata=True)
628
+ info = self.api.model_info(repo_id, files_metadata=True, token=self.token)
656
629
 
657
630
  total_size = 0
658
631
  file_count = 0
@@ -747,7 +720,7 @@ class HuggingFaceDownloader:
747
720
  ):
748
721
  """Validate repository exists and get info."""
749
722
  try:
750
- info = self._get_model_info_cached(repo_id, files_metadata=False)
723
+ info = self.api.model_info(repo_id, token=self.token)
751
724
  return info
752
725
  except RepositoryNotFoundError:
753
726
  error_msg = f"Repository '{repo_id}' not found. Please check the repository ID."
@@ -816,36 +789,6 @@ class HuggingFaceDownloader:
816
789
  # If no expected size, just check that file is not empty
817
790
  return os.path.getsize(file_path) > 0
818
791
 
819
- def _extract_model_file_type_from_tags(self, repo_id: str) -> Optional[str]:
820
- """Extract model file type from repo tags with priority: NPU > MLX > GGUF."""
821
- try:
822
- info = self._get_model_info_cached(repo_id, files_metadata=False)
823
- if hasattr(info, 'tags') and info.tags:
824
- # Convert tags to lowercase for case-insensitive matching
825
- tags_lower = [tag.lower() for tag in info.tags]
826
-
827
- # Check with priority: NPU > MLX > GGUF
828
- if 'npu' in tags_lower:
829
- return 'npu'
830
- elif 'mlx' in tags_lower:
831
- return 'mlx'
832
- elif 'gguf' in tags_lower:
833
- return 'gguf'
834
- except Exception:
835
- pass
836
- return None
837
-
838
- def _load_downloaded_manifest(self, local_dir: str) -> Dict[str, Any]:
839
- """Load nexa.manifest from the downloaded repository if it exists."""
840
- manifest_path = os.path.join(local_dir, 'nexa.manifest')
841
- if os.path.exists(manifest_path):
842
- try:
843
- with open(manifest_path, 'r', encoding='utf-8') as f:
844
- return json.load(f)
845
- except (json.JSONDecodeError, IOError):
846
- pass
847
- return {}
848
-
849
792
  def _fetch_and_save_metadata(self, repo_id: str, local_dir: str, is_mmproj: bool = False, file_name: Optional[Union[str, List[str]]] = None, **kwargs) -> None:
850
793
  """Fetch model info and save metadata after successful download."""
851
794
  # Initialize metadata with defaults to ensure manifest is always created
@@ -857,8 +800,8 @@ class HuggingFaceDownloader:
857
800
 
858
801
  # Try to fetch additional metadata, but don't let failures prevent manifest creation
859
802
  try:
860
- # Fetch model info to get pipeline_tag (using cache)
861
- info = self._get_model_info_cached(repo_id, files_metadata=False)
803
+ # Fetch model info to get pipeline_tag
804
+ info = self.api.model_info(repo_id, token=self.token)
862
805
  if hasattr(info, 'pipeline_tag') and info.pipeline_tag:
863
806
  old_metadata['pipeline_tag'] = info.pipeline_tag
864
807
  except Exception as e:
@@ -867,21 +810,11 @@ class HuggingFaceDownloader:
867
810
 
868
811
  # Use input avater url if provided
869
812
  old_metadata['avatar_url'] = kwargs.get('avatar_url')
870
-
871
- # Extract model file type from tags
872
- model_file_type = self._extract_model_file_type_from_tags(repo_id)
873
- if model_file_type:
874
- old_metadata['model_file_type'] = model_file_type
875
-
876
- # Load existing nexa.manifest from downloaded repo (if exists)
877
- downloaded_manifest = self._load_downloaded_manifest(local_dir)
878
- if downloaded_manifest:
879
- old_metadata['downloaded_manifest'] = downloaded_manifest
880
813
 
881
814
 
882
815
  # CRITICAL: Always create the manifest file, regardless of metadata fetch failures
883
816
  try:
884
- save_manifest_with_files_metadata(repo_id, local_dir, old_metadata, is_mmproj, file_name, **kwargs)
817
+ save_manifest_with_files_metadata(repo_id, local_dir, old_metadata, is_mmproj, file_name)
885
818
  print(f"[OK] Successfully created nexa.manifest for {repo_id}")
886
819
  except Exception as e:
887
820
  # This is critical - if manifest creation fails, we should know about it
@@ -890,11 +823,8 @@ class HuggingFaceDownloader:
890
823
  try:
891
824
  minimal_manifest = {
892
825
  "Name": repo_id,
893
- "ModelName": kwargs.get('model_name', ''),
894
- "ModelType": kwargs.get('model_type', 'other'),
895
- "PluginId": kwargs.get('plugin_id', 'unknown'),
896
- "DeviceId": kwargs.get('device_id', ''),
897
- "MinSDKVersion": kwargs.get('min_sdk_version', ''),
826
+ "ModelType": "other",
827
+ "PluginId": "unknown",
898
828
  "ModelFile": {},
899
829
  "MMProjFile": {"Name": "", "Downloaded": False, "Size": 0},
900
830
  "TokenizerFile": {"Name": "", "Downloaded": False, "Size": 0},
@@ -1206,12 +1136,6 @@ def download_from_huggingface(
1206
1136
  is_mmproj (bool, optional): Whether the file being downloaded is an mmproj file. Only used when
1207
1137
  file_name is not None. If None, defaults to True if 'mmproj' is in
1208
1138
  the filename, False otherwise.
1209
- **kwargs: Additional parameters including:
1210
- - plugin_id (str): Override PluginId in nexa.manifest (highest priority)
1211
- - model_name (str): Override ModelName in nexa.manifest (highest priority)
1212
- - model_type (str): Override ModelType in nexa.manifest (highest priority)
1213
- - device_id (str): Set DeviceId in nexa.manifest (highest priority)
1214
- - min_sdk_version (str): Set MinSDKVersion in nexa.manifest (highest priority)
1215
1139
 
1216
1140
  Returns:
1217
1141
  str: Path to the downloaded file or directory
@@ -13,8 +13,6 @@ class ModelTypeMapping(Enum):
13
13
  """Enum for mapping HuggingFace pipeline_tag to our ModelType."""
14
14
  TEXT_GENERATION = ("text-generation", "llm")
15
15
  IMAGE_TEXT_TO_TEXT = ("image-text-to-text", "vlm")
16
- ANY_TO_ANY = ("any-to-any", "ata")
17
- AUTOMATIC_SPEECH_RECOGNITION = ("automatic-speech-recognition", "asr")
18
16
 
19
17
  def __init__(self, pipeline_tag: str, model_type: str):
20
18
  self.pipeline_tag = pipeline_tag
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nexaai
3
- Version: 1.0.19rc5
3
+ Version: 1.0.19rc6
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=mbzzeXrEHHI_E3BQ0_OukD9wNajKJJVk0ykxT0rz8uM,2267
2
- nexaai/_stub.cp310-win_amd64.pyd,sha256=g8IrnQpwLXtfvCaMSkK7w1nTXgacCO9Ukru1bVSfMxw,10752
3
- nexaai/_version.py,sha256=WDIjg1ejoWwgXkkREVBfk6G6o2KIvnfke_TJsYv8bLU,147
2
+ nexaai/_stub.cp310-win_amd64.pyd,sha256=_RuK-0FKQluNQVcxnmdFZPnNcNMZGHXJfMGVqp1Z2F8,10752
3
+ nexaai/_version.py,sha256=7sVko30_aN2HLKw5tx3KFBi-c82jAVCzwt9vXFdYApY,147
4
4
  nexaai/asr.py,sha256=_fsGaxpiU137bUtO5ujtFSYCI1RLsyeEm3Gf4GhHVRk,2118
5
5
  nexaai/base.py,sha256=qQBCiQVNzgpkQjZX9aiFDEdbAAe56TROKC3WnWra2Zg,1021
6
6
  nexaai/common.py,sha256=muQqFY-WllwL5IO83tImexbuUcoEQsKg73u4gWL2lNs,3548
@@ -17,29 +17,29 @@ nexaai/asr_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  nexaai/asr_impl/mlx_asr_impl.py,sha256=XwMX3LYMeulp8cDS0TCCYcjvttFHAyDWQ_oMvABwQmI,3349
18
18
  nexaai/asr_impl/pybind_asr_impl.py,sha256=20o5SOPzhF9x41ra8L_qIM7YxCkYeLb5csSrNde-dds,1560
19
19
  nexaai/binds/__init__.py,sha256=ENl-uoIF9-3XGIXitVgZ2QmJ6p7Yet4h1-X7nUDZ0Hk,108
20
- nexaai/binds/common_bind.cp310-win_amd64.pyd,sha256=CvKV-HBp_smzCgo1P2nzb5d2-D5C4sSHDe5M6LRvjWE,205824
21
- nexaai/binds/embedder_bind.cp310-win_amd64.pyd,sha256=XpNILL6lI5Q0IpqvudmShLwWvf4ffJb1ysthAMSGrFE,182784
22
- nexaai/binds/libcrypto-3-x64.dll,sha256=TAWcTdJrWviUingNyWaraOfz0ILUy7ybpI4VaiVHURg,7315968
23
- nexaai/binds/libssl-3-x64.dll,sha256=ZxawOWlONNM0Neg47w4JbU8kZJldj046H1zV3LiETa0,1313792
24
- nexaai/binds/llm_bind.cp310-win_amd64.pyd,sha256=SJBT4gkBuFTAgRzH0h_vbOxaLFU_EMupx7_mgJGM-cU,162816
25
- nexaai/binds/nexa_bridge.dll,sha256=RFCnOI0Ih9Rikl6l4HKZ0vcgxd91pz1LzuYOJeEq7X4,171520
26
- nexaai/binds/vlm_bind.cp310-win_amd64.pyd,sha256=bYGrwBUe4Z30NHpYN_tdS-FpNIxqoCgR_mUsDr3E8_g,168960
27
- nexaai/binds/nexa_llama_cpp/ggml-base.dll,sha256=677Ft5_Ds0ngZETxDyc4X8CCnqxLuGGJad60_Vl1yGU,532480
28
- nexaai/binds/nexa_llama_cpp/ggml-cpu.dll,sha256=lKv6PkpYvPfZ4oV3VAg1195Kv_uw9SXT6ikXEVQpIts,672768
29
- nexaai/binds/nexa_llama_cpp/ggml-cuda.dll,sha256=hJDbuNOUFuVUwKUu4_sm400OdZjwtAQvj_oimnBPo4U,313528832
30
- nexaai/binds/nexa_llama_cpp/ggml-vulkan.dll,sha256=v8PEoxhgdZlCFlKuNBhaoryjJJkEduzAou_0KrMVMx4,36627456
31
- nexaai/binds/nexa_llama_cpp/ggml.dll,sha256=1529huIN8Yy6sdf3-oBa_9wh3HpZ4g80NyH6Hbu5j2U,66560
32
- nexaai/binds/nexa_llama_cpp/llama.dll,sha256=SUHvBhIisRvdwD1SIGlnyPbTvlZPcp6ZBD7NbgAthbo,1611776
33
- nexaai/binds/nexa_llama_cpp/mtmd.dll,sha256=MsQtyiIjVgd9l4QQwKiWiftx14Ts3heqwCxIk2gbRNg,561152
34
- nexaai/binds/nexa_llama_cpp/nexa_plugin.dll,sha256=LAR81WMBhwdLktBBVDioGJqPEu2ZiBlgkldadgqJbTY,1410560
35
- nexaai/binds/nexa_nexaml/ggml-base.dll,sha256=677Ft5_Ds0ngZETxDyc4X8CCnqxLuGGJad60_Vl1yGU,532480
36
- nexaai/binds/nexa_nexaml/ggml-cpu.dll,sha256=lKv6PkpYvPfZ4oV3VAg1195Kv_uw9SXT6ikXEVQpIts,672768
37
- nexaai/binds/nexa_nexaml/ggml-cuda.dll,sha256=hJDbuNOUFuVUwKUu4_sm400OdZjwtAQvj_oimnBPo4U,313528832
38
- nexaai/binds/nexa_nexaml/ggml-vulkan.dll,sha256=v8PEoxhgdZlCFlKuNBhaoryjJJkEduzAou_0KrMVMx4,36627456
39
- nexaai/binds/nexa_nexaml/ggml.dll,sha256=1529huIN8Yy6sdf3-oBa_9wh3HpZ4g80NyH6Hbu5j2U,66560
20
+ nexaai/binds/common_bind.cp310-win_amd64.pyd,sha256=EzCE8snTGdxORtKQFNLVCZyFMe5a8QAvA-Y2Ujc0sXg,205824
21
+ nexaai/binds/embedder_bind.cp310-win_amd64.pyd,sha256=v2oSW4SpDG1kL_E0j1U2h0LNPMoWQFAkRBSJf5dPxHg,182784
22
+ nexaai/binds/libcrypto-3-x64.dll,sha256=X7hDuQPMn6eRe58dTGJxTmRPKFWgd5i6Gjoy9QPLmPg,7315968
23
+ nexaai/binds/libssl-3-x64.dll,sha256=GRw0cOaGUaR2QHRvBFuU_9S9iNgkyVgm0NIpZMnReAw,1313792
24
+ nexaai/binds/llm_bind.cp310-win_amd64.pyd,sha256=4S9Xcfe7N-DTvCv-Tnt1Kg67KaAH0oEHhcE1Vcc_dWk,162816
25
+ nexaai/binds/nexa_bridge.dll,sha256=a_qJYLYxrzZTX0httiS0qgwyGm6NkQVjf95D3IbQWWM,171520
26
+ nexaai/binds/vlm_bind.cp310-win_amd64.pyd,sha256=EctegvO60LJ-fsoWa0tuJXL-HfzrSU-W5g3tIjUKcmI,168960
27
+ nexaai/binds/nexa_llama_cpp/ggml-base.dll,sha256=zKHaRYT-gmNQUuSyiG7FsE8_zvV9sZvF5JBhMRF1uNs,532480
28
+ nexaai/binds/nexa_llama_cpp/ggml-cpu.dll,sha256=fOnT3TfmyuUXvR_pa8xT29nzLB71e-Y8LBch7x6QG70,672768
29
+ nexaai/binds/nexa_llama_cpp/ggml-cuda.dll,sha256=jvCBdeRuQE3oA-7QRVs34G5lO99QQU2BhEKfNVg-aiY,313528832
30
+ nexaai/binds/nexa_llama_cpp/ggml-vulkan.dll,sha256=WJkN7gz1DdSyyR6uk1NYnwC4JN56Q3zPmpOR7mHp6Kg,36627456
31
+ nexaai/binds/nexa_llama_cpp/ggml.dll,sha256=yNoR3aIVSqJG4FNNoSUHDeGJDAgkekmejWUG1knokKE,66560
32
+ nexaai/binds/nexa_llama_cpp/llama.dll,sha256=2NR3VessCawUMCfRc2vB50NpWNldnyd-_pIqrVXY5h4,1611776
33
+ nexaai/binds/nexa_llama_cpp/mtmd.dll,sha256=qxZBSstPs9djuz0ROy7EHq5oPYe9kltsAqhq18OfzwU,561152
34
+ nexaai/binds/nexa_llama_cpp/nexa_plugin.dll,sha256=k8hJM8AoDsDccJZQ-JrkAxdju52AeohsC6KH8R_R8mE,1410560
35
+ nexaai/binds/nexa_nexaml/ggml-base.dll,sha256=zKHaRYT-gmNQUuSyiG7FsE8_zvV9sZvF5JBhMRF1uNs,532480
36
+ nexaai/binds/nexa_nexaml/ggml-cpu.dll,sha256=fOnT3TfmyuUXvR_pa8xT29nzLB71e-Y8LBch7x6QG70,672768
37
+ nexaai/binds/nexa_nexaml/ggml-cuda.dll,sha256=jvCBdeRuQE3oA-7QRVs34G5lO99QQU2BhEKfNVg-aiY,313528832
38
+ nexaai/binds/nexa_nexaml/ggml-vulkan.dll,sha256=WJkN7gz1DdSyyR6uk1NYnwC4JN56Q3zPmpOR7mHp6Kg,36627456
39
+ nexaai/binds/nexa_nexaml/ggml.dll,sha256=yNoR3aIVSqJG4FNNoSUHDeGJDAgkekmejWUG1knokKE,66560
40
40
  nexaai/binds/nexa_nexaml/nexa-mm-process.dll,sha256=oDnqTaAUeZrWJePQEDuIYKEOMP-ndu221mMFHht4bSY,4642816
41
41
  nexaai/binds/nexa_nexaml/nexa-sampling.dll,sha256=PNtidsRbGO8dTfbf7-VMdhQRbF328yvLnmDjMy2Tb7Y,4265984
42
- nexaai/binds/nexa_nexaml/nexa_plugin.dll,sha256=PCDWGdMfKbJcglDRk8gr4vZqDLBlQabcAytQUuSwDfM,602112
42
+ nexaai/binds/nexa_nexaml/nexa_plugin.dll,sha256=njD6zVJ8ftHCCDHdYb9atxyTLbxdCUzPI372boQEiM4,602112
43
43
  nexaai/binds/nexa_nexaml/nexaproc.dll,sha256=9X4TF6p7wOiIXi_SA7uHLoEmrvcTlH2WpfijK7HxZgY,2668544
44
44
  nexaai/binds/nexa_nexaml/qwen3-vl.dll,sha256=Es-etUDiMmK_BwOki8V79Nja-NY4kBbrkhtnesXfMMU,5870592
45
45
  nexaai/binds/nexa_nexaml/qwen3vl-vision.dll,sha256=HFAk0FxWlf_lko3AQL6uBXTIhm6AzDFi5PjxI0lxONI,1184256
@@ -62,15 +62,15 @@ nexaai/tts_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  nexaai/tts_impl/mlx_tts_impl.py,sha256=LcH9bVdIl3Q6lOzSUB_X2s-_nWFmlCl1yL7XSUK0fYI,3195
63
63
  nexaai/tts_impl/pybind_tts_impl.py,sha256=n3z4zmPQayQJgAwcvETw0IBUCp8IYROuYFSg0tAy_8Y,1487
64
64
  nexaai/utils/decode.py,sha256=0Z9jDH4ICzw4YXj8nD4L-sMouDaev-TISGRQ4KzidWE,421
65
- nexaai/utils/manifest_utils.py,sha256=E07t_bNq-EDrqVYZW7uyX8zsKsFklvqqwSvic0in0tQ,21800
66
- nexaai/utils/model_manager.py,sha256=qzlGP4sZLYsO72vg-EUCVA0RUknVKtLYMmDDfPmG45g,60999
67
- nexaai/utils/model_types.py,sha256=q2m7diYLOpLvRl1ixL2eMq5_kdTj8KqPBGWX4p6Ob08,1532
65
+ nexaai/utils/manifest_utils.py,sha256=OyLi9e4JrOBunswf4FG2KoVvkbv2FulkOf5LqRDVf50,12979
66
+ nexaai/utils/model_manager.py,sha256=bWMVvcBu5dC3YmWtsJK4C3IaXfaDSByAYcH7GVLtoEg,57334
67
+ nexaai/utils/model_types.py,sha256=arIyb9q-1uG0nyUGdWZaxxDJAxv0cfnJEpjCzyELL5Q,1416
68
68
  nexaai/utils/progress_tracker.py,sha256=BztrFqtjwNUmeREwZ5m7H6ZcrVzQEbpZfsxndWh4z0A,15778
69
69
  nexaai/utils/quantization_utils.py,sha256=FxnZ6-uAE_bl_vQ5jsRXlpU0NBn-U4Y8iN9_O6aCdPA,8070
70
70
  nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
71
  nexaai/vlm_impl/mlx_vlm_impl.py,sha256=MgqJO7OzuPd79gOZZKhSXXMNSP2eBuhhrdCX8XHn6aQ,11090
72
72
  nexaai/vlm_impl/pybind_vlm_impl.py,sha256=NuQ_Ep1TnjmGAkjJuUS0Lb6z7iPu3wroLVOx7kiAwlE,8827
73
- nexaai-1.0.19rc5.dist-info/METADATA,sha256=oYOS0eZu_QQLgmfgjtRHH8xWGY4LaxWMghnuCIqJBTY,1233
74
- nexaai-1.0.19rc5.dist-info/WHEEL,sha256=KUuBC6lxAbHCKilKua8R9W_TM71_-9Sg5uEP3uDWcoU,101
75
- nexaai-1.0.19rc5.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
76
- nexaai-1.0.19rc5.dist-info/RECORD,,
73
+ nexaai-1.0.19rc6.dist-info/METADATA,sha256=WJr9LkgAfU5yl2QlHsGA2x3M6mELNclau1DHAWRviMQ,1233
74
+ nexaai-1.0.19rc6.dist-info/WHEEL,sha256=KUuBC6lxAbHCKilKua8R9W_TM71_-9Sg5uEP3uDWcoU,101
75
+ nexaai-1.0.19rc6.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
76
+ nexaai-1.0.19rc6.dist-info/RECORD,,