metis-optimizer 0.0.2__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.
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.5
2
+ Name: metis-optimizer
3
+ Version: 0.0.2
4
+ Summary: MetisPrism setup helper: shows how to install MetisPrism tools from your account and checks your local Python and GPU setup.
5
+ Project-URL: Homepage, https://metisprism.ai
6
+ Author: MetisAI Labs
7
+ License-Expression: Apache-2.0
8
+ Keywords: gpu,metisprism,ml-infrastructure
9
+ Classifier: Development Status :: 2 - Pre-Alpha
10
+ Classifier: Environment :: Console
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+
16
+ # metis-optimizer
17
+
18
+ MetisPrism setup helper for ML teams running training, fine-tuning and serving on MetisPrism.
19
+
20
+ ```
21
+ pip install metis-optimizer
22
+ python -m metis_optimizer_setup
23
+ ```
24
+
25
+ It prints how to install the MetisPrism CLI and SDKs from your MetisPrism account, and checks your local setup: Python
26
+ version, platform, NVIDIA or AMD GPU tools on PATH, and an installed PyTorch. It reads only your local environment and
27
+ sends nothing over the network.
28
+
29
+ The full MetisPrism SDK will be published at public launch.
@@ -0,0 +1,5 @@
1
+ metis_optimizer_setup/__init__.py,sha256=u1hrt13xvmSD25Zx5-t6XseJEvzmjme9LLYIc0NkVZM,1626
2
+ metis_optimizer_setup/__main__.py,sha256=XnpTzfJc0T-j9tHtdkA8ovTr1c139ffTewcJGhxYDaM,49
3
+ metis_optimizer-0.0.2.dist-info/METADATA,sha256=Z7yqhHtUJSiXVvDZqBNnOCA0PNp3eARVjAI9Fdl6Swk,1105
4
+ metis_optimizer-0.0.2.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
5
+ metis_optimizer-0.0.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,47 @@
1
+ """MetisPrism setup helper: install guidance and a local environment check. Sends nothing over the network."""
2
+
3
+ import importlib.util
4
+ import platform
5
+ import shutil
6
+ import sys
7
+
8
+ __all__ = ["doctor", "main"]
9
+ __version__ = "0.0.2"
10
+
11
+ INSTALL = (
12
+ "The MetisPrism CLI and SDKs are installed from your MetisPrism account:\n"
13
+ " Studio -> Install the CLI (signed download), or ask your MetisPrism contact for access.\n"
14
+ "Docs: https://metisprism.ai"
15
+ )
16
+
17
+
18
+ def doctor() -> dict:
19
+ """Return a summary of the local environment relevant to running ML workloads with MetisPrism."""
20
+ report = {
21
+ "python": platform.python_version(),
22
+ "platform": f"{platform.system()} {platform.machine()}",
23
+ "nvidia_smi": shutil.which("nvidia-smi") is not None,
24
+ "rocm_smi": shutil.which("rocm-smi") is not None or shutil.which("amd-smi") is not None,
25
+ "torch": None,
26
+ "accelerators": 0,
27
+ }
28
+ if importlib.util.find_spec("torch") is not None:
29
+ try:
30
+ import torch # noqa: PLC0415
31
+
32
+ report["torch"] = torch.__version__
33
+ if torch.cuda.is_available():
34
+ report["accelerators"] = torch.cuda.device_count()
35
+ except Exception as exc: # a broken torch install is reported, not raised
36
+ report["torch"] = f"present but failed to import: {exc.__class__.__name__}"
37
+ return report
38
+
39
+
40
+ def main() -> int:
41
+ print(INSTALL)
42
+ print()
43
+ for key, value in doctor().items():
44
+ print(f" {key:13} {value}")
45
+ if sys.version_info < (3, 9):
46
+ print("\nPython 3.9 or newer is required by the MetisPrism SDK.")
47
+ return 0
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from . import main
4
+
5
+ sys.exit(main())