metis-optimizer 0.0.2__tar.gz
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,14 @@
|
|
|
1
|
+
# metis-optimizer
|
|
2
|
+
|
|
3
|
+
MetisPrism setup helper for ML teams running training, fine-tuning and serving on MetisPrism.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
pip install metis-optimizer
|
|
7
|
+
python -m metis_optimizer_setup
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
It prints how to install the MetisPrism CLI and SDKs from your MetisPrism account, and checks your local setup: Python
|
|
11
|
+
version, platform, NVIDIA or AMD GPU tools on PATH, and an installed PyTorch. It reads only your local environment and
|
|
12
|
+
sends nothing over the network.
|
|
13
|
+
|
|
14
|
+
The full MetisPrism SDK will be published at public launch.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.25"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "metis-optimizer"
|
|
7
|
+
version = "0.0.2"
|
|
8
|
+
description = "MetisPrism setup helper: shows how to install MetisPrism tools from your account and checks your local Python and GPU setup."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
authors = [{ name = "MetisAI Labs" }]
|
|
13
|
+
keywords = ["metisprism", "gpu", "ml-infrastructure"]
|
|
14
|
+
classifiers = ["Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Environment :: Console"]
|
|
15
|
+
|
|
16
|
+
[project.urls]
|
|
17
|
+
Homepage = "https://metisprism.ai"
|
|
18
|
+
|
|
19
|
+
[tool.hatch.build.targets.wheel]
|
|
20
|
+
packages = ["src/metis_optimizer_setup"]
|
|
@@ -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
|