pluto-ml-nightly 0.0.3.dev20260119105635__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.
- pluto_ml_nightly-0.0.3.dev20260119105635/LICENSE +188 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/PKG-INFO +90 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/README.md +65 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/mlop/__init__.py +17 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/mlop/__main__.py +14 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/mlop/compat/__init__.py +14 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/mlop/compat/lightning.py +15 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/mlop/compat/neptune.py +15 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/mlop/compat/torch.py +15 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/mlop/compat/transformers.py +15 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/__init__.py +73 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/__main__.py +53 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/api.py +263 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/auth.py +102 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/compat/__init__.py +0 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/compat/lightning.py +180 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/compat/neptune.py +863 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/compat/torch.py +574 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/compat/transformers.py +180 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/data.py +196 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/file.py +434 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/iface.py +576 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/init.py +133 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/log.py +152 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/op.py +646 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/sets.py +269 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/store.py +171 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/sys.py +346 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pluto/util.py +276 -0
- pluto_ml_nightly-0.0.3.dev20260119105635/pyproject.toml +85 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
179
|
+
you may not use this file except in compliance with the License.
|
|
180
|
+
You may obtain a copy of the License at
|
|
181
|
+
|
|
182
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
183
|
+
|
|
184
|
+
Unless required by applicable law or agreed to in writing, software
|
|
185
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
187
|
+
See the License for the specific language governing permissions and
|
|
188
|
+
limitations under the License.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pluto-ml-nightly
|
|
3
|
+
Version: 0.0.3.dev20260119105635
|
|
4
|
+
Summary: Pluto ML - Machine Learning Operations Framework
|
|
5
|
+
Author: jqssun
|
|
6
|
+
Requires-Python: >=3.10,<4.0
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Provides-Extra: full
|
|
13
|
+
Requires-Dist: GitPython (>=3.1)
|
|
14
|
+
Requires-Dist: httpx[http2] (>=0.24)
|
|
15
|
+
Requires-Dist: keyring (>=24.0)
|
|
16
|
+
Requires-Dist: keyrings-alt (>=5.0)
|
|
17
|
+
Requires-Dist: numpy (>=2.0,<3.0)
|
|
18
|
+
Requires-Dist: nvidia-ml-py (>=11.515.0) ; extra == "full"
|
|
19
|
+
Requires-Dist: pillow (>=10.0)
|
|
20
|
+
Requires-Dist: psutil (>=5.9)
|
|
21
|
+
Requires-Dist: rich (>=13.0)
|
|
22
|
+
Requires-Dist: soundfile (>=0.12)
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
[](https://pypi.org/project/pluto-ml/)
|
|
26
|
+
|
|
27
|
+
## THIS README/REPO IS CURRENTLY UNDER CONSTRUCTION WHILE WE UPDATE THE REFERENCES IN OUR FORK
|
|
28
|
+
|
|
29
|
+
**Pluto** is a Machine Learning Operations (MLOps) framework. It provides [self-hostable superior experimental tracking capabilities and lifecycle management for training ML models](https://docs.trainy.ai/pluto). To get started, [try out our introductory notebook](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/intro.ipynb) or [get an account with us today](https://pluto.trainy.ai/auth/sign-up)!
|
|
30
|
+
|
|
31
|
+
## 🎥 Demo
|
|
32
|
+
|
|
33
|
+
**Pluto** adopts a KISS philosophy that allows it to outperform all other tools in this category. Supporting high and stable data throughput should be *THE* top priority for efficient MLOps.
|
|
34
|
+
<video loop src='https://github.com/user-attachments/assets/efd9720e-6128-4278-85ec-ee6139a851af' alt="demo" width="1200" style="display: block; margin: auto;"></video>
|
|
35
|
+
|
|
36
|
+
<p align="center">
|
|
37
|
+
<strong>Pluto</strong> logger (bottom left) v. a conventional logger (bottom right)
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
## 🚀 Getting Started
|
|
41
|
+
|
|
42
|
+
- Try **Pluto** on our platform in [a notebook](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/intro.ipynb) & start integrating in just 5 lines of Python code:
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
%pip install -Uq "pluto-ml[full]"
|
|
46
|
+
import pluto
|
|
47
|
+
|
|
48
|
+
pluto.init(project="hello-world")
|
|
49
|
+
pluto.log({"e": 2.718})
|
|
50
|
+
pluto.finish()
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
- Self-host your very own **Pluto** instance & get started in just 3 commands with **docker-compose**
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
git clone --recurse-submodules https://github.com/mlop-ai/server.git; cd server
|
|
57
|
+
cp .env.example .env
|
|
58
|
+
sudo docker-compose --env-file .env up --build
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
You may also learn more about **Pluto** by checking out our [documentation](https://docs.trainy.ai/pluto).
|
|
62
|
+
|
|
63
|
+
<!-- You can try everything out in our [introductory tutorial](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/intro.ipynb) and [torch tutorial](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/torch.ipynb). -->
|
|
64
|
+
|
|
65
|
+
## 🛠️ Development Setup
|
|
66
|
+
|
|
67
|
+
Want to contribute? Here's the quickest way to get the local toolchain (including the linters used in CI) running:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git clone https://github.com/Trainy-ai/pluto.git
|
|
71
|
+
cd pluto
|
|
72
|
+
python -m venv .venv && source .venv/bin/activate # or use your preferred environment manager
|
|
73
|
+
python -m pip install --upgrade pip
|
|
74
|
+
pip install -e ".[full]"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Linting commands (mirrors `.github/workflows/lint.yml`):
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
bash format.sh
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Run these locally before sending a PR to match the automation that checks on every push and pull request.
|
|
84
|
+
|
|
85
|
+
## 🫡 Vision
|
|
86
|
+
|
|
87
|
+
**Pluto** is a platform built for and by ML engineers, supported by [our community](https://discord.com/invite/HQUBJSVgAP)! We were tired of the current state of the art in ML observability tools, and this tool was born to help mitigate the inefficiencies - specifically, we hope to better inform you about your model performance and training runs; and actually **save you**, instead of charging you, for your precious compute time!
|
|
88
|
+
|
|
89
|
+
🌟 Be sure to star our repos if they help you ~
|
|
90
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[](https://pypi.org/project/pluto-ml/)
|
|
2
|
+
|
|
3
|
+
## THIS README/REPO IS CURRENTLY UNDER CONSTRUCTION WHILE WE UPDATE THE REFERENCES IN OUR FORK
|
|
4
|
+
|
|
5
|
+
**Pluto** is a Machine Learning Operations (MLOps) framework. It provides [self-hostable superior experimental tracking capabilities and lifecycle management for training ML models](https://docs.trainy.ai/pluto). To get started, [try out our introductory notebook](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/intro.ipynb) or [get an account with us today](https://pluto.trainy.ai/auth/sign-up)!
|
|
6
|
+
|
|
7
|
+
## 🎥 Demo
|
|
8
|
+
|
|
9
|
+
**Pluto** adopts a KISS philosophy that allows it to outperform all other tools in this category. Supporting high and stable data throughput should be *THE* top priority for efficient MLOps.
|
|
10
|
+
<video loop src='https://github.com/user-attachments/assets/efd9720e-6128-4278-85ec-ee6139a851af' alt="demo" width="1200" style="display: block; margin: auto;"></video>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<strong>Pluto</strong> logger (bottom left) v. a conventional logger (bottom right)
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
## 🚀 Getting Started
|
|
17
|
+
|
|
18
|
+
- Try **Pluto** on our platform in [a notebook](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/intro.ipynb) & start integrating in just 5 lines of Python code:
|
|
19
|
+
|
|
20
|
+
```python
|
|
21
|
+
%pip install -Uq "pluto-ml[full]"
|
|
22
|
+
import pluto
|
|
23
|
+
|
|
24
|
+
pluto.init(project="hello-world")
|
|
25
|
+
pluto.log({"e": 2.718})
|
|
26
|
+
pluto.finish()
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- Self-host your very own **Pluto** instance & get started in just 3 commands with **docker-compose**
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
git clone --recurse-submodules https://github.com/mlop-ai/server.git; cd server
|
|
33
|
+
cp .env.example .env
|
|
34
|
+
sudo docker-compose --env-file .env up --build
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
You may also learn more about **Pluto** by checking out our [documentation](https://docs.trainy.ai/pluto).
|
|
38
|
+
|
|
39
|
+
<!-- You can try everything out in our [introductory tutorial](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/intro.ipynb) and [torch tutorial](https://colab.research.google.com/github/Trainy-ai/pluto/blob/main/examples/torch.ipynb). -->
|
|
40
|
+
|
|
41
|
+
## 🛠️ Development Setup
|
|
42
|
+
|
|
43
|
+
Want to contribute? Here's the quickest way to get the local toolchain (including the linters used in CI) running:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git clone https://github.com/Trainy-ai/pluto.git
|
|
47
|
+
cd pluto
|
|
48
|
+
python -m venv .venv && source .venv/bin/activate # or use your preferred environment manager
|
|
49
|
+
python -m pip install --upgrade pip
|
|
50
|
+
pip install -e ".[full]"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Linting commands (mirrors `.github/workflows/lint.yml`):
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
bash format.sh
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Run these locally before sending a PR to match the automation that checks on every push and pull request.
|
|
60
|
+
|
|
61
|
+
## 🫡 Vision
|
|
62
|
+
|
|
63
|
+
**Pluto** is a platform built for and by ML engineers, supported by [our community](https://discord.com/invite/HQUBJSVgAP)! We were tired of the current state of the art in ML observability tools, and this tool was born to help mitigate the inefficiencies - specifically, we hope to better inform you about your model performance and training runs; and actually **save you**, instead of charging you, for your precious compute time!
|
|
64
|
+
|
|
65
|
+
🌟 Be sure to star our repos if they help you ~
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Backward compatibility shim for mlop -> pluto migration.
|
|
3
|
+
This module is deprecated. Use `import pluto` instead.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
warnings.warn(
|
|
9
|
+
"The 'mlop' package is deprecated and will be removed in a future release. "
|
|
10
|
+
"Please use 'import pluto' instead.",
|
|
11
|
+
DeprecationWarning,
|
|
12
|
+
stacklevel=2,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
# Re-export everything from pluto
|
|
16
|
+
from pluto import * # noqa: E402, F401, F403
|
|
17
|
+
from pluto import __all__, __version__ # noqa: E402, F401
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Deprecated CLI entry point."""
|
|
2
|
+
|
|
3
|
+
import warnings
|
|
4
|
+
|
|
5
|
+
warnings.warn(
|
|
6
|
+
"The 'mlop' command is deprecated. Use 'pluto' instead.",
|
|
7
|
+
DeprecationWarning,
|
|
8
|
+
stacklevel=2,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
from pluto.__main__ import main # noqa: E402
|
|
12
|
+
|
|
13
|
+
if __name__ == '__main__':
|
|
14
|
+
main()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Backward compatibility shim for mlop.compat -> pluto.compat migration.
|
|
3
|
+
This module is deprecated. Use `import pluto.compat` instead.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
warnings.warn(
|
|
9
|
+
"The 'mlop.compat' module is deprecated. Please use 'import pluto.compat' instead.",
|
|
10
|
+
DeprecationWarning,
|
|
11
|
+
stacklevel=2,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
from pluto.compat import * # noqa: E402, F401, F403
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Backward compatibility shim for mlop.compat.lightning.
|
|
3
|
+
This module is deprecated. Use `import pluto.compat.lightning` instead.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
warnings.warn(
|
|
9
|
+
"The 'mlop.compat.lightning' module is deprecated. "
|
|
10
|
+
"Please use 'import pluto.compat.lightning' instead.",
|
|
11
|
+
DeprecationWarning,
|
|
12
|
+
stacklevel=2,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from pluto.compat.lightning import * # noqa: E402, F401, F403
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Backward compatibility shim for mlop.compat.neptune -> pluto.compat.neptune migration.
|
|
3
|
+
This module is deprecated. Use `import pluto.compat.neptune` instead.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
warnings.warn(
|
|
9
|
+
"The 'mlop.compat.neptune' module is deprecated. "
|
|
10
|
+
"Please use 'import pluto.compat.neptune' instead.",
|
|
11
|
+
DeprecationWarning,
|
|
12
|
+
stacklevel=2,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from pluto.compat.neptune import * # noqa: E402, F401, F403
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Backward compatibility shim for mlop.compat.torch -> pluto.compat.torch migration.
|
|
3
|
+
This module is deprecated. Use `import pluto.compat.torch` instead.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
warnings.warn(
|
|
9
|
+
"The 'mlop.compat.torch' module is deprecated. "
|
|
10
|
+
"Please use 'import pluto.compat.torch' instead.",
|
|
11
|
+
DeprecationWarning,
|
|
12
|
+
stacklevel=2,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from pluto.compat.torch import * # noqa: E402, F401, F403
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Backward compatibility shim for mlop.compat.transformers -> pluto.compat.transformers.
|
|
3
|
+
This module is deprecated. Use `import pluto.compat.transformers` instead.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import warnings
|
|
7
|
+
|
|
8
|
+
warnings.warn(
|
|
9
|
+
"The 'mlop.compat.transformers' module is deprecated. "
|
|
10
|
+
"Please use 'import pluto.compat.transformers' instead.",
|
|
11
|
+
DeprecationWarning,
|
|
12
|
+
stacklevel=2,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from pluto.compat.transformers import * # noqa: E402, F401, F403
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import subprocess
|
|
3
|
+
from typing import Any, Callable, List, Optional
|
|
4
|
+
|
|
5
|
+
from .auth import login, logout
|
|
6
|
+
from .data import Data, Graph, Histogram, Table
|
|
7
|
+
from .file import Artifact, Audio, File, Image, Text, Video
|
|
8
|
+
from .init import finish, init
|
|
9
|
+
from .sets import Settings, setup
|
|
10
|
+
from .sys import System
|
|
11
|
+
|
|
12
|
+
_hooks: List[Any] = []
|
|
13
|
+
ops: Optional[List[Any]] = None
|
|
14
|
+
log: Optional[Callable[..., Any]] = None
|
|
15
|
+
watch: Optional[Callable[..., Any]] = None
|
|
16
|
+
alert: Optional[Callable[..., Any]] = None
|
|
17
|
+
|
|
18
|
+
__all__ = (
|
|
19
|
+
'Data',
|
|
20
|
+
'Graph',
|
|
21
|
+
'Histogram',
|
|
22
|
+
'Table',
|
|
23
|
+
'File',
|
|
24
|
+
'Artifact',
|
|
25
|
+
'Text',
|
|
26
|
+
'Image',
|
|
27
|
+
'Audio',
|
|
28
|
+
'Video',
|
|
29
|
+
'System',
|
|
30
|
+
'Settings',
|
|
31
|
+
'alert',
|
|
32
|
+
'init',
|
|
33
|
+
'login',
|
|
34
|
+
'logout',
|
|
35
|
+
'watch',
|
|
36
|
+
'finish',
|
|
37
|
+
'setup',
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
__version__ = '1.0.0.dev0.0.3.dev20260119105635'
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Replaced with the current commit when building the wheels.
|
|
44
|
+
_PLUTO_COMMIT_SHA = '8c23fc32f7fc64116a4d556d12a41bac331b7762'
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _get_git_commit():
|
|
48
|
+
if 'PLUTO_COMMIT_SHA' not in _PLUTO_COMMIT_SHA:
|
|
49
|
+
# This is a release build, so we don't need to get the commit hash from
|
|
50
|
+
# git, as it's already been set.
|
|
51
|
+
return _PLUTO_COMMIT_SHA
|
|
52
|
+
|
|
53
|
+
# This is a development build (pip install -e .), so we need to get the
|
|
54
|
+
# commit hash from git.
|
|
55
|
+
try:
|
|
56
|
+
cwd = os.path.dirname(__file__)
|
|
57
|
+
commit_hash = subprocess.check_output(
|
|
58
|
+
['git', 'rev-parse', 'HEAD'],
|
|
59
|
+
cwd=cwd,
|
|
60
|
+
universal_newlines=True,
|
|
61
|
+
stderr=subprocess.DEVNULL,
|
|
62
|
+
).strip()
|
|
63
|
+
changes = subprocess.check_output(
|
|
64
|
+
['git', 'status', '--porcelain'],
|
|
65
|
+
cwd=cwd,
|
|
66
|
+
universal_newlines=True,
|
|
67
|
+
stderr=subprocess.DEVNULL,
|
|
68
|
+
).strip()
|
|
69
|
+
if changes:
|
|
70
|
+
commit_hash += '-dirty'
|
|
71
|
+
return commit_hash
|
|
72
|
+
except Exception: # pylint: disable=broad-except
|
|
73
|
+
return _PLUTO_COMMIT_SHA
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
from . import __version__, _get_git_commit
|
|
7
|
+
from .auth import login, logout
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def main():
|
|
11
|
+
parser = argparse.ArgumentParser(description='pluto')
|
|
12
|
+
parser.add_argument(
|
|
13
|
+
'-v',
|
|
14
|
+
'--version',
|
|
15
|
+
action='store_true',
|
|
16
|
+
help='show the installed pluto version',
|
|
17
|
+
)
|
|
18
|
+
parser.add_argument(
|
|
19
|
+
'-c',
|
|
20
|
+
'--commit',
|
|
21
|
+
action='store_true',
|
|
22
|
+
help='show the current git commit hash',
|
|
23
|
+
)
|
|
24
|
+
subparsers = parser.add_subparsers(dest='command', help='commands')
|
|
25
|
+
|
|
26
|
+
p_login = subparsers.add_parser('login', help='login to pluto')
|
|
27
|
+
p_login.add_argument('key', nargs='?', help='login key')
|
|
28
|
+
subparsers.add_parser('logout', help='logout from pluto')
|
|
29
|
+
|
|
30
|
+
args = parser.parse_args()
|
|
31
|
+
|
|
32
|
+
if args.version:
|
|
33
|
+
print(__version__)
|
|
34
|
+
return
|
|
35
|
+
|
|
36
|
+
if args.commit:
|
|
37
|
+
print(_get_git_commit())
|
|
38
|
+
return
|
|
39
|
+
|
|
40
|
+
if args.command == 'login':
|
|
41
|
+
if args.key:
|
|
42
|
+
login(settings={'_auth': args.key})
|
|
43
|
+
else:
|
|
44
|
+
login()
|
|
45
|
+
elif args.command == 'logout':
|
|
46
|
+
logout()
|
|
47
|
+
else:
|
|
48
|
+
parser.print_help()
|
|
49
|
+
sys.exit(1)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
main()
|