matrice-compute 0.1.29__py3-none-any.whl → 0.1.30__py3-none-any.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.
@@ -1266,6 +1266,38 @@ class Scaling:
1266
1266
  if "jetson" in model or "tegra" in model:
1267
1267
  is_jetson = True
1268
1268
  gpu_provider = "NVIDIA"
1269
+
1270
+ # Detect specific Jetson model for GPU architecture
1271
+ if "orin" in model:
1272
+ if "agx" in model:
1273
+ gpu_arch_family = "Jetson Orin AGX"
1274
+ elif "nx" in model:
1275
+ gpu_arch_family = "Jetson Orin NX"
1276
+ elif "nano" in model:
1277
+ gpu_arch_family = "Jetson Orin Nano"
1278
+ else:
1279
+ gpu_arch_family = "Jetson Orin"
1280
+ elif "thor" in model:
1281
+ gpu_arch_family = "Jetson Thor"
1282
+ elif "xavier" in model:
1283
+ if "agx" in model:
1284
+ gpu_arch_family = "Jetson Xavier AGX"
1285
+ elif "nx" in model:
1286
+ gpu_arch_family = "Jetson Xavier NX"
1287
+ else:
1288
+ gpu_arch_family = "Jetson Xavier"
1289
+ elif "nano" in model and "orin" not in model:
1290
+ gpu_arch_family = "Jetson Nano"
1291
+ elif "tx2" in model:
1292
+ gpu_arch_family = "Jetson TX2"
1293
+ elif "tx1" in model:
1294
+ gpu_arch_family = "Jetson TX1"
1295
+ else:
1296
+ gpu_arch_family = "Jetson (Unknown Model)"
1297
+
1298
+ # Set gpu_arch to the full model string for detailed info
1299
+ gpu_arch = model.strip()
1300
+
1269
1301
  try:
1270
1302
  cuda_result = subprocess.run(["nvcc", "--version"], capture_output=True, text=True)
1271
1303
  if cuda_result.returncode == 0:
@@ -1275,6 +1307,15 @@ class Scaling:
1275
1307
  break
1276
1308
  except Exception:
1277
1309
  pass
1310
+ # Fallback to nvidia-smi for CUDA version if nvcc failed
1311
+ if not cuda_version:
1312
+ try:
1313
+ nvidia_smi_result = subprocess.run(["nvidia-smi", "--query-gpu=driver_version", "--format=csv,noheader"], capture_output=True, text=True)
1314
+ if nvidia_smi_result.returncode == 0:
1315
+ # nvidia-smi doesn't directly give CUDA version, but we can infer it's available
1316
+ cuda_version = "Available (via nvidia-smi)"
1317
+ except Exception:
1318
+ pass
1278
1319
  except Exception:
1279
1320
  pass
1280
1321
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_compute
3
- Version: 0.1.29
3
+ Version: 0.1.30
4
4
  Summary: Common server utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -8,11 +8,11 @@ matrice_compute/instance_utils.py,sha256=N4yPDvNukFEEBngR0lEt4x_XT5hur1q0P-spM2x
8
8
  matrice_compute/prechecks.py,sha256=W9YmNF3RcLhOf4U8WBlExvFqDw1aGWSNTlJtA73lbDQ,17196
9
9
  matrice_compute/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  matrice_compute/resources_tracker.py,sha256=1jSLrIFlOh-vgyNzFrUrE2Ak2JAGCIfV7wcyEPJ0f2c,32246
11
- matrice_compute/scaling.py,sha256=oeCgQb6g9W7p8-VaDXT4jDH3aMz-fCO5MZmj-1Gbz1c,52931
11
+ matrice_compute/scaling.py,sha256=cdEJqdVsPGDeOjkVAG85lubOn-qwDRV5qqmrNl_XpCM,55146
12
12
  matrice_compute/shutdown_manager.py,sha256=0MYV_AqygqR9NEntYf7atUC-PbWXyNkm1f-8c2aizgA,13234
13
13
  matrice_compute/task_utils.py,sha256=3qIutiQdYPyGRxH9ZwLbqdg8sZcnp6jp08pszWCRFl0,2820
14
- matrice_compute-0.1.29.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
15
- matrice_compute-0.1.29.dist-info/METADATA,sha256=5NCF_K1dBcVouNXdfnUL7cFm7fg7PojuURK2m1if9-Y,1038
16
- matrice_compute-0.1.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- matrice_compute-0.1.29.dist-info/top_level.txt,sha256=63Plr3L1GzBUWZO5JZaFkiv8IcB10xUPU-9w3i6ptvE,16
18
- matrice_compute-0.1.29.dist-info/RECORD,,
14
+ matrice_compute-0.1.30.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
15
+ matrice_compute-0.1.30.dist-info/METADATA,sha256=kTDi915lwYwQJWMEyAT1F5GT5GfUW2SQfon5ki_X9tM,1038
16
+ matrice_compute-0.1.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ matrice_compute-0.1.30.dist-info/top_level.txt,sha256=63Plr3L1GzBUWZO5JZaFkiv8IcB10xUPU-9w3i6ptvE,16
18
+ matrice_compute-0.1.30.dist-info/RECORD,,