mostlyai 4.5.1__tar.gz → 4.5.3__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.
- {mostlyai-4.5.1 → mostlyai-4.5.3}/PKG-INFO +93 -58
- {mostlyai-4.5.1 → mostlyai-4.5.3}/README.md +82 -22
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/__init__.py +1 -1
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/context.py +3 -4
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_create_model_report.py +2 -2
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/api.py +12 -1
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/base.py +3 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/domain.py +37 -2
- {mostlyai-4.5.1 → mostlyai-4.5.3}/pyproject.toml +18 -66
- {mostlyai-4.5.1 → mostlyai-4.5.3}/.gitignore +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/LICENSE +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/auto_detect.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/base.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/conversions.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/base.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/bigquery.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/databricks.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/hive.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/mssql.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/mysql.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/oracle.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/postgresql.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/snowflake.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/sqlite.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/db/types_coercion.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/dtype.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/exceptions.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/base.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/container/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/container/aws.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/container/azure.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/container/bucket_based.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/container/gcs.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/container/minio.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/table/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/table/csv.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/table/feather.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/table/json.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/table/parquet.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/file/utils.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/language_model.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/metadata_objects.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/non_context.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/progress_callback.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/pull.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/pull_context.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/pull_utils.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/push.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/util/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/util/common.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_data/util/kerberos.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/cli.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/connectors.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/jobs.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/plan.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_analyze_training_data.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_create_data_report.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_deliver_data.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_encode_training_data.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_finalize_generation.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_finalize_training.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_generate_data.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_pull_training_data.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_train_model.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/generators.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/progress.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/routes.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/server.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/storage.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/synthetic_datasets.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/__init__.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/_base_utils.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/_naming_conventions.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/_utils.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/connectors.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/exceptions.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/generators.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/client/synthetic_datasets.py +0 -0
- {mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mostlyai
|
|
3
|
-
Version: 4.5.
|
|
3
|
+
Version: 4.5.3
|
|
4
4
|
Summary: Synthetic Data SDK
|
|
5
5
|
Project-URL: homepage, https://app.mostly.ai/
|
|
6
6
|
Project-URL: repository, https://github.com/mostly-ai/mostlyai
|
|
@@ -59,8 +59,8 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local'
|
|
|
59
59
|
Requires-Dist: filelock>=3.16.1; extra == 'local'
|
|
60
60
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local'
|
|
61
61
|
Requires-Dist: joblib>=1.4.2; extra == 'local'
|
|
62
|
-
Requires-Dist: mostlyai-engine==1.
|
|
63
|
-
Requires-Dist: mostlyai-qa==1.
|
|
62
|
+
Requires-Dist: mostlyai-engine==1.3.1; extra == 'local'
|
|
63
|
+
Requires-Dist: mostlyai-qa==1.6.1; extra == 'local'
|
|
64
64
|
Requires-Dist: networkx<4,>=3.0; extra == 'local'
|
|
65
65
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local'
|
|
66
66
|
Requires-Dist: python-multipart>=0.0.20; extra == 'local'
|
|
@@ -68,35 +68,11 @@ Requires-Dist: s3fs>=2023.1.0; extra == 'local'
|
|
|
68
68
|
Requires-Dist: smart-open[azure,gcs,s3]>=6.3.0; extra == 'local'
|
|
69
69
|
Requires-Dist: sqlalchemy>=2.0.0; extra == 'local'
|
|
70
70
|
Requires-Dist: sshtunnel<0.5,>=0.4.0; extra == 'local'
|
|
71
|
-
Requires-Dist: torch<2.
|
|
72
|
-
Requires-Dist:
|
|
73
|
-
Requires-Dist:
|
|
74
|
-
Requires-Dist: torchvision==0.21.0; (sys_platform == 'linux') and extra == 'local'
|
|
71
|
+
Requires-Dist: torch<2.6.1,>=2.6.0; extra == 'local'
|
|
72
|
+
Requires-Dist: torchaudio<2.6.1,>=2.6.0; extra == 'local'
|
|
73
|
+
Requires-Dist: torchvision<0.21.1,>=0.21.0; extra == 'local'
|
|
75
74
|
Requires-Dist: uvicorn<0.35,>=0.34.0; extra == 'local'
|
|
76
75
|
Requires-Dist: xlsxwriter<4,>=3.1.9; extra == 'local'
|
|
77
|
-
Provides-Extra: local-cpu
|
|
78
|
-
Requires-Dist: adlfs>=2023.4.0; extra == 'local-cpu'
|
|
79
|
-
Requires-Dist: azure-storage-blob>=12.16.0; extra == 'local-cpu'
|
|
80
|
-
Requires-Dist: cloudpathlib[azure,gs,s3]>=0.17.0; extra == 'local-cpu'
|
|
81
|
-
Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-cpu'
|
|
82
|
-
Requires-Dist: filelock>=3.16.1; extra == 'local-cpu'
|
|
83
|
-
Requires-Dist: gcsfs>=2023.1.0; extra == 'local-cpu'
|
|
84
|
-
Requires-Dist: joblib>=1.4.2; extra == 'local-cpu'
|
|
85
|
-
Requires-Dist: mostlyai-engine[cpu]==1.2.4; extra == 'local-cpu'
|
|
86
|
-
Requires-Dist: mostlyai-qa[cpu]==1.5.17; extra == 'local-cpu'
|
|
87
|
-
Requires-Dist: networkx<4,>=3.0; extra == 'local-cpu'
|
|
88
|
-
Requires-Dist: openpyxl>=3.1.5; extra == 'local-cpu'
|
|
89
|
-
Requires-Dist: python-multipart>=0.0.20; extra == 'local-cpu'
|
|
90
|
-
Requires-Dist: s3fs>=2023.1.0; extra == 'local-cpu'
|
|
91
|
-
Requires-Dist: smart-open[azure,gcs,s3]>=6.3.0; extra == 'local-cpu'
|
|
92
|
-
Requires-Dist: sqlalchemy>=2.0.0; extra == 'local-cpu'
|
|
93
|
-
Requires-Dist: sshtunnel<0.5,>=0.4.0; extra == 'local-cpu'
|
|
94
|
-
Requires-Dist: torch<2.7.0,>=2.6.0; (sys_platform != 'linux') and extra == 'local-cpu'
|
|
95
|
-
Requires-Dist: torch==2.6.0+cpu; (sys_platform == 'linux') and extra == 'local-cpu'
|
|
96
|
-
Requires-Dist: torchaudio==2.6.0+cpu; (sys_platform == 'linux') and extra == 'local-cpu'
|
|
97
|
-
Requires-Dist: torchvision==0.21.0+cpu; (sys_platform == 'linux') and extra == 'local-cpu'
|
|
98
|
-
Requires-Dist: uvicorn<0.35,>=0.34.0; extra == 'local-cpu'
|
|
99
|
-
Requires-Dist: xlsxwriter<4,>=3.1.9; extra == 'local-cpu'
|
|
100
76
|
Provides-Extra: local-gpu
|
|
101
77
|
Requires-Dist: adlfs>=2023.4.0; extra == 'local-gpu'
|
|
102
78
|
Requires-Dist: azure-storage-blob>=12.16.0; extra == 'local-gpu'
|
|
@@ -105,8 +81,8 @@ Requires-Dist: fastapi<0.116,>=0.115.6; extra == 'local-gpu'
|
|
|
105
81
|
Requires-Dist: filelock>=3.16.1; extra == 'local-gpu'
|
|
106
82
|
Requires-Dist: gcsfs>=2023.1.0; extra == 'local-gpu'
|
|
107
83
|
Requires-Dist: joblib>=1.4.2; extra == 'local-gpu'
|
|
108
|
-
Requires-Dist: mostlyai-engine[gpu]==1.
|
|
109
|
-
Requires-Dist: mostlyai-qa
|
|
84
|
+
Requires-Dist: mostlyai-engine[gpu]==1.3.1; extra == 'local-gpu'
|
|
85
|
+
Requires-Dist: mostlyai-qa==1.6.1; extra == 'local-gpu'
|
|
110
86
|
Requires-Dist: networkx<4,>=3.0; extra == 'local-gpu'
|
|
111
87
|
Requires-Dist: openpyxl>=3.1.5; extra == 'local-gpu'
|
|
112
88
|
Requires-Dist: python-multipart>=0.0.20; extra == 'local-gpu'
|
|
@@ -114,10 +90,9 @@ Requires-Dist: s3fs>=2023.1.0; extra == 'local-gpu'
|
|
|
114
90
|
Requires-Dist: smart-open[azure,gcs,s3]>=6.3.0; extra == 'local-gpu'
|
|
115
91
|
Requires-Dist: sqlalchemy>=2.0.0; extra == 'local-gpu'
|
|
116
92
|
Requires-Dist: sshtunnel<0.5,>=0.4.0; extra == 'local-gpu'
|
|
117
|
-
Requires-Dist: torch<2.
|
|
118
|
-
Requires-Dist:
|
|
119
|
-
Requires-Dist:
|
|
120
|
-
Requires-Dist: torchvision==0.21.0; (sys_platform == 'linux') and extra == 'local-gpu'
|
|
93
|
+
Requires-Dist: torch<2.6.1,>=2.6.0; extra == 'local-gpu'
|
|
94
|
+
Requires-Dist: torchaudio<2.6.1,>=2.6.0; extra == 'local-gpu'
|
|
95
|
+
Requires-Dist: torchvision<0.21.1,>=0.21.0; extra == 'local-gpu'
|
|
121
96
|
Requires-Dist: uvicorn<0.35,>=0.34.0; extra == 'local-gpu'
|
|
122
97
|
Requires-Dist: xlsxwriter<4,>=3.1.9; extra == 'local-gpu'
|
|
123
98
|
Provides-Extra: mssql
|
|
@@ -195,7 +170,7 @@ https://github.com/user-attachments/assets/9e233213-a259-455c-b8ed-d1f1548b492f
|
|
|
195
170
|
|
|
196
171
|
## Quick Start <a href="https://colab.research.google.com/github/mostly-ai/mostlyai/blob/main/docs/tutorials/getting-started/getting-started.ipynb" target="_blank"><img src="https://img.shields.io/badge/Open%20in-Colab-blue?logo=google-colab" alt="Run on Colab"></a>
|
|
197
172
|
|
|
198
|
-
Install the SDK via pip:
|
|
173
|
+
Install the SDK via `pip` (see [Installation](#installation) for further details):
|
|
199
174
|
|
|
200
175
|
```shell
|
|
201
176
|
pip install -U mostlyai # or 'mostlyai[local]' for LOCAL mode
|
|
@@ -214,14 +189,16 @@ g = mostly.generators.import_from_file(
|
|
|
214
189
|
)
|
|
215
190
|
|
|
216
191
|
# probe for 1000 representative synthetic samples
|
|
217
|
-
mostly.probe(g, size=1000)
|
|
192
|
+
df = mostly.probe(g, size=1000)
|
|
193
|
+
df
|
|
218
194
|
```
|
|
219
195
|
|
|
220
196
|
Generate synthetic sampels based on fixed column values:
|
|
221
197
|
|
|
222
198
|
```python
|
|
223
199
|
# create 10k records of 24y male respondents
|
|
224
|
-
mostly.probe(g, seed=[{"age": 24, "sex": "Male"}] * 10_000)
|
|
200
|
+
df = mostly.probe(g, seed=[{"age": 24, "sex": "Male"}] * 10_000)
|
|
201
|
+
df
|
|
225
202
|
```
|
|
226
203
|
|
|
227
204
|
And now train your very own synthetic data generator:
|
|
@@ -244,10 +221,11 @@ g.reports(display=True)
|
|
|
244
221
|
|
|
245
222
|
# generate a representative synthetic dataset, with default configs
|
|
246
223
|
sd = mostly.generate(g)
|
|
247
|
-
|
|
224
|
+
df = sd.data()
|
|
248
225
|
|
|
249
|
-
# probe for some samples
|
|
250
|
-
mostly.probe(g, size=100)
|
|
226
|
+
# or simply probe for some samples
|
|
227
|
+
df = mostly.probe(g, size=100)
|
|
228
|
+
df
|
|
251
229
|
```
|
|
252
230
|
|
|
253
231
|
## Performance
|
|
@@ -258,7 +236,7 @@ The SDK is being developed with a focus on efficiency, accuracy, and flexibility
|
|
|
258
236
|
|
|
259
237
|
Tabular models within the SDK are built on TabularARGN ([arXiv:2501.12012](https://arxiv.org/abs/2501.12012)), which achieves best-in-class synthetic data quality while being 1–2 orders of magnitude more efficient than comparable models. This efficiency enables the training and generation of millions of synthetic records within minutes, even on CPU environments.
|
|
260
238
|
|
|
261
|
-

|
|
239
|
+

|
|
262
240
|
|
|
263
241
|
### Language Models
|
|
264
242
|
|
|
@@ -270,20 +248,63 @@ In either case, a modern GPU is highly recommended when working with language mo
|
|
|
270
248
|
|
|
271
249
|
## Installation
|
|
272
250
|
|
|
273
|
-
|
|
251
|
+
Use `pip` (or better `uv pip`) to install the official `mostlyai` package via PyPI. Python 3.10 or higher is required.
|
|
274
252
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
253
|
+
It is highly recommended to install the package within a dedicated virtual environment using `uv`.
|
|
254
|
+
|
|
255
|
+
<details>
|
|
256
|
+
|
|
257
|
+
<summary>Setup of <code>uv</code> on Unix / macOS</summary>
|
|
258
|
+
|
|
259
|
+
```shell
|
|
260
|
+
# Install uv if you don't have it yet
|
|
261
|
+
curl -Ls https://astral.sh/uv/install.sh | bash
|
|
262
|
+
|
|
263
|
+
# Create and activate a Python 3.12 environment with uv
|
|
264
|
+
mkdir ~/synthetic-data-sdk; cd ~/synthetic-data-sdk
|
|
265
|
+
uv venv -p 3.12
|
|
266
|
+
|
|
267
|
+
# Activate virtual environment
|
|
268
|
+
source .venv/bin/activate
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
</details>
|
|
272
|
+
|
|
273
|
+
<details>
|
|
274
|
+
|
|
275
|
+
<summary>Setup of <code>uv</code> on Windows</summary>
|
|
276
|
+
|
|
277
|
+
```shell
|
|
278
|
+
# Install uv if you don't have it yet
|
|
279
|
+
irm https://astral.sh/uv/install.ps1 | iex
|
|
280
|
+
|
|
281
|
+
# Create and activate a Python 3.12 environment with uv
|
|
282
|
+
mkdir ~/synthetic-data-sdk; cd ~/synthetic-data-sdk
|
|
283
|
+
uv venv -p 3.12
|
|
284
|
+
|
|
285
|
+
# Activate virtual environment
|
|
286
|
+
.venv\Scripts\activate
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
</details>
|
|
290
|
+
|
|
291
|
+
<details>
|
|
292
|
+
|
|
293
|
+
<summary>Run Jupyter Lab session via <code>uv</code></summary>
|
|
294
|
+
|
|
295
|
+
```shell
|
|
296
|
+
# Optionally launch jupyter session after SDK installation
|
|
297
|
+
uv run --with jupyter jupyter lab
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
</details>
|
|
280
301
|
|
|
281
302
|
### CLIENT mode
|
|
282
303
|
|
|
283
304
|
This is a light-weight installation for using the SDK in CLIENT mode only. It communicates to a MOSTLY AI platform to perform requested tasks. See e.g. [app.mostly.ai](https://app.mostly.ai/) for a free-to-use hosted version.
|
|
284
305
|
|
|
285
306
|
```shell
|
|
286
|
-
pip install -U mostlyai
|
|
307
|
+
uv pip install -U mostlyai
|
|
287
308
|
```
|
|
288
309
|
|
|
289
310
|
### CLIENT + LOCAL mode
|
|
@@ -291,20 +312,34 @@ pip install -U mostlyai
|
|
|
291
312
|
This is a full installation for using the SDK in both CLIENT and LOCAL mode. It includes all dependencies, incl. PyTorch, for training and generating synthetic data locally.
|
|
292
313
|
|
|
293
314
|
```shell
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
315
|
+
uv pip install -U 'mostlyai[local]'
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
or alternatively for a GPU setup on Linux (needed for LLM finetuning and inference):
|
|
319
|
+
|
|
320
|
+
```shell
|
|
321
|
+
uv pip install -U 'mostlyai[local-gpu]'
|
|
300
322
|
```
|
|
301
323
|
|
|
302
|
-
|
|
324
|
+
On Linux, one can explicitly install the CPU-only variant of torch together with `mostlyai[local]`:
|
|
325
|
+
|
|
326
|
+
```shell
|
|
327
|
+
# uv pip install
|
|
328
|
+
uv pip install --index-strategy unsafe-first-match -U torch==2.6.0+cpu torchvision==0.21.0+cpu 'mostlyai[local]' --extra-index-url https://download.pytorch.org/whl/cpu
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
```shell
|
|
332
|
+
# standard pip install
|
|
333
|
+
pip install -U torch==2.6.0+cpu torchvision==0.21.0+cpu 'mostlyai[local]' --extra-index-url https://download.pytorch.org/whl/cpu
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
> **Note for Google Colab users**: Installing any of the local extras (`mostlyai[local]`, or `mostlyai[local-gpu]`) will downgrade Numpy from 2.0 to Numpy 1.26, due to Opacus dependency. You'll need to restart the runtime after installation for the changes to take effect.
|
|
303
338
|
|
|
304
339
|
Add any of the following extras for further data connectors support in LOCAL mode: `databricks`, `googlebigquery`, `hive`, `mssql`, `mysql`, `oracle`, `postgres`, `snowflake`. E.g.
|
|
305
340
|
|
|
306
341
|
```shell
|
|
307
|
-
pip install -U 'mostlyai[local, databricks, snowflake]'
|
|
342
|
+
uv pip install -U 'mostlyai[local, databricks, snowflake]'
|
|
308
343
|
```
|
|
309
344
|
|
|
310
345
|
## Citation
|
|
@@ -61,7 +61,7 @@ https://github.com/user-attachments/assets/9e233213-a259-455c-b8ed-d1f1548b492f
|
|
|
61
61
|
|
|
62
62
|
## Quick Start <a href="https://colab.research.google.com/github/mostly-ai/mostlyai/blob/main/docs/tutorials/getting-started/getting-started.ipynb" target="_blank"><img src="https://img.shields.io/badge/Open%20in-Colab-blue?logo=google-colab" alt="Run on Colab"></a>
|
|
63
63
|
|
|
64
|
-
Install the SDK via pip:
|
|
64
|
+
Install the SDK via `pip` (see [Installation](#installation) for further details):
|
|
65
65
|
|
|
66
66
|
```shell
|
|
67
67
|
pip install -U mostlyai # or 'mostlyai[local]' for LOCAL mode
|
|
@@ -80,14 +80,16 @@ g = mostly.generators.import_from_file(
|
|
|
80
80
|
)
|
|
81
81
|
|
|
82
82
|
# probe for 1000 representative synthetic samples
|
|
83
|
-
mostly.probe(g, size=1000)
|
|
83
|
+
df = mostly.probe(g, size=1000)
|
|
84
|
+
df
|
|
84
85
|
```
|
|
85
86
|
|
|
86
87
|
Generate synthetic sampels based on fixed column values:
|
|
87
88
|
|
|
88
89
|
```python
|
|
89
90
|
# create 10k records of 24y male respondents
|
|
90
|
-
mostly.probe(g, seed=[{"age": 24, "sex": "Male"}] * 10_000)
|
|
91
|
+
df = mostly.probe(g, seed=[{"age": 24, "sex": "Male"}] * 10_000)
|
|
92
|
+
df
|
|
91
93
|
```
|
|
92
94
|
|
|
93
95
|
And now train your very own synthetic data generator:
|
|
@@ -110,10 +112,11 @@ g.reports(display=True)
|
|
|
110
112
|
|
|
111
113
|
# generate a representative synthetic dataset, with default configs
|
|
112
114
|
sd = mostly.generate(g)
|
|
113
|
-
|
|
115
|
+
df = sd.data()
|
|
114
116
|
|
|
115
|
-
# probe for some samples
|
|
116
|
-
mostly.probe(g, size=100)
|
|
117
|
+
# or simply probe for some samples
|
|
118
|
+
df = mostly.probe(g, size=100)
|
|
119
|
+
df
|
|
117
120
|
```
|
|
118
121
|
|
|
119
122
|
## Performance
|
|
@@ -124,7 +127,7 @@ The SDK is being developed with a focus on efficiency, accuracy, and flexibility
|
|
|
124
127
|
|
|
125
128
|
Tabular models within the SDK are built on TabularARGN ([arXiv:2501.12012](https://arxiv.org/abs/2501.12012)), which achieves best-in-class synthetic data quality while being 1–2 orders of magnitude more efficient than comparable models. This efficiency enables the training and generation of millions of synthetic records within minutes, even on CPU environments.
|
|
126
129
|
|
|
127
|
-

|
|
130
|
+

|
|
128
131
|
|
|
129
132
|
### Language Models
|
|
130
133
|
|
|
@@ -136,20 +139,63 @@ In either case, a modern GPU is highly recommended when working with language mo
|
|
|
136
139
|
|
|
137
140
|
## Installation
|
|
138
141
|
|
|
139
|
-
|
|
142
|
+
Use `pip` (or better `uv pip`) to install the official `mostlyai` package via PyPI. Python 3.10 or higher is required.
|
|
140
143
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
It is highly recommended to install the package within a dedicated virtual environment using `uv`.
|
|
145
|
+
|
|
146
|
+
<details>
|
|
147
|
+
|
|
148
|
+
<summary>Setup of <code>uv</code> on Unix / macOS</summary>
|
|
149
|
+
|
|
150
|
+
```shell
|
|
151
|
+
# Install uv if you don't have it yet
|
|
152
|
+
curl -Ls https://astral.sh/uv/install.sh | bash
|
|
153
|
+
|
|
154
|
+
# Create and activate a Python 3.12 environment with uv
|
|
155
|
+
mkdir ~/synthetic-data-sdk; cd ~/synthetic-data-sdk
|
|
156
|
+
uv venv -p 3.12
|
|
157
|
+
|
|
158
|
+
# Activate virtual environment
|
|
159
|
+
source .venv/bin/activate
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
</details>
|
|
163
|
+
|
|
164
|
+
<details>
|
|
165
|
+
|
|
166
|
+
<summary>Setup of <code>uv</code> on Windows</summary>
|
|
167
|
+
|
|
168
|
+
```shell
|
|
169
|
+
# Install uv if you don't have it yet
|
|
170
|
+
irm https://astral.sh/uv/install.ps1 | iex
|
|
171
|
+
|
|
172
|
+
# Create and activate a Python 3.12 environment with uv
|
|
173
|
+
mkdir ~/synthetic-data-sdk; cd ~/synthetic-data-sdk
|
|
174
|
+
uv venv -p 3.12
|
|
175
|
+
|
|
176
|
+
# Activate virtual environment
|
|
177
|
+
.venv\Scripts\activate
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
</details>
|
|
181
|
+
|
|
182
|
+
<details>
|
|
183
|
+
|
|
184
|
+
<summary>Run Jupyter Lab session via <code>uv</code></summary>
|
|
185
|
+
|
|
186
|
+
```shell
|
|
187
|
+
# Optionally launch jupyter session after SDK installation
|
|
188
|
+
uv run --with jupyter jupyter lab
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
</details>
|
|
146
192
|
|
|
147
193
|
### CLIENT mode
|
|
148
194
|
|
|
149
195
|
This is a light-weight installation for using the SDK in CLIENT mode only. It communicates to a MOSTLY AI platform to perform requested tasks. See e.g. [app.mostly.ai](https://app.mostly.ai/) for a free-to-use hosted version.
|
|
150
196
|
|
|
151
197
|
```shell
|
|
152
|
-
pip install -U mostlyai
|
|
198
|
+
uv pip install -U mostlyai
|
|
153
199
|
```
|
|
154
200
|
|
|
155
201
|
### CLIENT + LOCAL mode
|
|
@@ -157,20 +203,34 @@ pip install -U mostlyai
|
|
|
157
203
|
This is a full installation for using the SDK in both CLIENT and LOCAL mode. It includes all dependencies, incl. PyTorch, for training and generating synthetic data locally.
|
|
158
204
|
|
|
159
205
|
```shell
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
206
|
+
uv pip install -U 'mostlyai[local]'
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
or alternatively for a GPU setup on Linux (needed for LLM finetuning and inference):
|
|
210
|
+
|
|
211
|
+
```shell
|
|
212
|
+
uv pip install -U 'mostlyai[local-gpu]'
|
|
166
213
|
```
|
|
167
214
|
|
|
168
|
-
|
|
215
|
+
On Linux, one can explicitly install the CPU-only variant of torch together with `mostlyai[local]`:
|
|
216
|
+
|
|
217
|
+
```shell
|
|
218
|
+
# uv pip install
|
|
219
|
+
uv pip install --index-strategy unsafe-first-match -U torch==2.6.0+cpu torchvision==0.21.0+cpu 'mostlyai[local]' --extra-index-url https://download.pytorch.org/whl/cpu
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
```shell
|
|
223
|
+
# standard pip install
|
|
224
|
+
pip install -U torch==2.6.0+cpu torchvision==0.21.0+cpu 'mostlyai[local]' --extra-index-url https://download.pytorch.org/whl/cpu
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
> **Note for Google Colab users**: Installing any of the local extras (`mostlyai[local]`, or `mostlyai[local-gpu]`) will downgrade Numpy from 2.0 to Numpy 1.26, due to Opacus dependency. You'll need to restart the runtime after installation for the changes to take effect.
|
|
169
229
|
|
|
170
230
|
Add any of the following extras for further data connectors support in LOCAL mode: `databricks`, `googlebigquery`, `hive`, `mssql`, `mysql`, `oracle`, `postgres`, `snowflake`. E.g.
|
|
171
231
|
|
|
172
232
|
```shell
|
|
173
|
-
pip install -U 'mostlyai[local, databricks, snowflake]'
|
|
233
|
+
uv pip install -U 'mostlyai[local, databricks, snowflake]'
|
|
174
234
|
```
|
|
175
235
|
|
|
176
236
|
## Citation
|
|
@@ -17,7 +17,7 @@ import logging
|
|
|
17
17
|
import numpy as np
|
|
18
18
|
import pandas as pd
|
|
19
19
|
|
|
20
|
-
from mostlyai.sdk.domain import ModelEncodingType
|
|
20
|
+
from mostlyai.sdk.domain import ModelEncodingType, ModelType
|
|
21
21
|
from mostlyai.sdk._data.base import Schema, DataIdentifier, ContextRelation
|
|
22
22
|
|
|
23
23
|
_LOG = logging.getLogger(__name__)
|
|
@@ -228,9 +228,8 @@ def drop_unsupported_encoding_types_from_context(
|
|
|
228
228
|
"""
|
|
229
229
|
context_tables = schema.get_context_tables(tgt)
|
|
230
230
|
sub_schema = schema.subset(tables=context_tables)
|
|
231
|
-
unsupported_encoding_types = [
|
|
232
|
-
ModelEncodingType.
|
|
233
|
-
ModelEncodingType.language_text,
|
|
231
|
+
unsupported_encoding_types = [ModelEncodingType.tabular_datetime_relative] + [
|
|
232
|
+
t for t in ModelEncodingType if t.value.startswith(ModelType.language.value)
|
|
234
233
|
]
|
|
235
234
|
# do not drop context primary key of parent context table
|
|
236
235
|
ctx_pk = sub_schema.tables[context_tables[-1]].primary_key
|
|
@@ -187,7 +187,7 @@ def create_report(
|
|
|
187
187
|
report_subtitle=f" for {target_table_name[:30]}:{model_type.name}",
|
|
188
188
|
report_credits=report_credits,
|
|
189
189
|
max_sample_size_accuracy=100_000,
|
|
190
|
-
max_sample_size_embeddings=
|
|
190
|
+
max_sample_size_embeddings=10_000,
|
|
191
191
|
statistics_path=workspace_dir / "ModelQAStatistics",
|
|
192
192
|
update_progress=update_progress,
|
|
193
193
|
)
|
|
@@ -209,7 +209,7 @@ def create_report(
|
|
|
209
209
|
report_subtitle=f" for {target_table_name[:30]}:{model_type.name}",
|
|
210
210
|
report_credits=report_credits,
|
|
211
211
|
max_sample_size_accuracy=100_000,
|
|
212
|
-
max_sample_size_embeddings=
|
|
212
|
+
max_sample_size_embeddings=10_000,
|
|
213
213
|
update_progress=update_progress,
|
|
214
214
|
)
|
|
215
215
|
metrics = None
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
|
+
|
|
14
15
|
import os
|
|
15
16
|
from pathlib import Path
|
|
16
17
|
from typing import Any, Literal
|
|
@@ -21,6 +22,7 @@ from rich.prompt import Prompt
|
|
|
21
22
|
|
|
22
23
|
from mostlyai import sdk
|
|
23
24
|
from mostlyai.sdk.client.base import GET, _MostlyBaseClient, DEFAULT_BASE_URL
|
|
25
|
+
from mostlyai.sdk.client.exceptions import APIError
|
|
24
26
|
from mostlyai.sdk.client.connectors import _MostlyConnectorsClient
|
|
25
27
|
from mostlyai.sdk.client.generators import _MostlyGeneratorsClient
|
|
26
28
|
from mostlyai.sdk.domain import (
|
|
@@ -722,7 +724,16 @@ class MostlyAI(_MostlyBaseClient):
|
|
|
722
724
|
config=config,
|
|
723
725
|
config_type=SyntheticProbeConfig,
|
|
724
726
|
)
|
|
725
|
-
|
|
727
|
+
|
|
728
|
+
try:
|
|
729
|
+
dfs = self.synthetic_probes.create(config)
|
|
730
|
+
except APIError as e:
|
|
731
|
+
# translate timeout error into a more informative message for probe requests
|
|
732
|
+
if "timed out" in str(e).lower():
|
|
733
|
+
raise APIError("Probing timed out. Please try `generate()` instead.")
|
|
734
|
+
else:
|
|
735
|
+
raise e
|
|
736
|
+
|
|
726
737
|
if return_type == "auto" and len(dfs) == 1:
|
|
727
738
|
return list(dfs.values())[0]
|
|
728
739
|
else:
|
|
@@ -151,6 +151,9 @@ class _MostlyBaseClient:
|
|
|
151
151
|
error_msg = exc.response.content
|
|
152
152
|
# Handle HTTP errors (not in 2XX range)
|
|
153
153
|
raise APIStatusError(f"HTTP {exc.response.status_code}: {error_msg}") from None
|
|
154
|
+
except httpx.ReadTimeout as exc:
|
|
155
|
+
# Handle timeout errors
|
|
156
|
+
raise APIError(f"Timed out while requesting {exc.request.url!r}.") from None
|
|
154
157
|
except httpx.RequestError as exc:
|
|
155
158
|
# Handle request errors (e.g., network issues)
|
|
156
159
|
raise APIError(f"An error occurred while requesting {exc.request.url!r}.") from None
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
# generated by datamodel-codegen:
|
|
16
|
-
# timestamp: 2025-04-
|
|
16
|
+
# timestamp: 2025-04-17T06:40:30+00:00
|
|
17
17
|
|
|
18
18
|
from __future__ import annotations
|
|
19
19
|
|
|
@@ -458,6 +458,11 @@ class ConnectorQueryConfig(CustomBaseModel):
|
|
|
458
458
|
sql: str = Field(..., description="SQL read-only (e.g. SELECT) statement to execute.")
|
|
459
459
|
|
|
460
460
|
|
|
461
|
+
class ConnectorSortField(str, Enum):
|
|
462
|
+
recency = "RECENCY"
|
|
463
|
+
no_of_generators = "NO_OF_GENERATORS"
|
|
464
|
+
|
|
465
|
+
|
|
461
466
|
class GeneratorUsage(CustomBaseModel):
|
|
462
467
|
"""
|
|
463
468
|
Usage statistics of a generator.
|
|
@@ -610,6 +615,12 @@ class SourceForeignKeyPatchConfig(CustomBaseModel):
|
|
|
610
615
|
)
|
|
611
616
|
|
|
612
617
|
|
|
618
|
+
class GeneratorSortField(str, Enum):
|
|
619
|
+
recency = "RECENCY"
|
|
620
|
+
no_of_likes = "NO_OF_LIKES"
|
|
621
|
+
no_of_synthetic_datasets = "NO_OF_SYNTHETIC_DATASETS"
|
|
622
|
+
|
|
623
|
+
|
|
613
624
|
class RareCategoryReplacementMethod(str, Enum):
|
|
614
625
|
"""
|
|
615
626
|
Specifies how rare categories will be sampled.
|
|
@@ -735,6 +746,11 @@ class SyntheticDatasetUsage(CustomBaseModel):
|
|
|
735
746
|
alias="noOfLikes",
|
|
736
747
|
description="Number of likes of this synthetic dataset.",
|
|
737
748
|
)
|
|
749
|
+
no_of_downloads: int | None = Field(
|
|
750
|
+
None,
|
|
751
|
+
alias="noOfDownloads",
|
|
752
|
+
description="Number of downloads of this synthetic dataset.",
|
|
753
|
+
)
|
|
738
754
|
|
|
739
755
|
|
|
740
756
|
class SyntheticDatasetFormat(str, Enum):
|
|
@@ -766,6 +782,12 @@ class SyntheticDatasetDelivery(CustomBaseModel):
|
|
|
766
782
|
location: str = Field(..., description="The location for the destination connector.")
|
|
767
783
|
|
|
768
784
|
|
|
785
|
+
class SyntheticDatasetSortField(str, Enum):
|
|
786
|
+
recency = "RECENCY"
|
|
787
|
+
no_of_likes = "NO_OF_LIKES"
|
|
788
|
+
no_of_downloads = "NO_OF_DOWNLOADS"
|
|
789
|
+
|
|
790
|
+
|
|
769
791
|
class AssistantLiteLlmExtraItem(CustomBaseModel):
|
|
770
792
|
"""
|
|
771
793
|
Configuration parameter for the selected LiteLLM model.
|
|
@@ -1491,7 +1513,7 @@ class Similarity(CustomBaseModel):
|
|
|
1491
1513
|
1. **Cosine Similarity**: The cosine similarity between the centroids of synthetic and training samples.
|
|
1492
1514
|
2. **Discriminator AUC**: The AUC of a discriminative model to distinguish between synthetic and training samples.
|
|
1493
1515
|
|
|
1494
|
-
The
|
|
1516
|
+
The Model2Vec model [potion-base-8M](https://huggingface.co/minishlab/potion-base-8M) is
|
|
1495
1517
|
used to compute the embeddings of a string-ified representation of individual records. In case of sequential data
|
|
1496
1518
|
the records, that belong to the same group, are being concatenated. We then calculate the cosine similarity
|
|
1497
1519
|
between the centroids of the provided datasets within the embedding space.
|
|
@@ -1570,6 +1592,13 @@ class Distances(CustomBaseModel):
|
|
|
1570
1592
|
ge=0.0,
|
|
1571
1593
|
le=1.0,
|
|
1572
1594
|
)
|
|
1595
|
+
ims_trn_hol: float | None = Field(
|
|
1596
|
+
None,
|
|
1597
|
+
alias="imsTrnHol",
|
|
1598
|
+
description="Share of training samples that are identical to a holdout sample. Serves as a reference for `ims_training`.",
|
|
1599
|
+
ge=0.0,
|
|
1600
|
+
le=1.0,
|
|
1601
|
+
)
|
|
1573
1602
|
dcr_training: float | None = Field(
|
|
1574
1603
|
None,
|
|
1575
1604
|
alias="dcrTraining",
|
|
@@ -1582,6 +1611,12 @@ class Distances(CustomBaseModel):
|
|
|
1582
1611
|
description="Average L2 nearest-neighbor distance between synthetic and holdout samples. Serves as a reference for `dcr_training`.",
|
|
1583
1612
|
ge=0.0,
|
|
1584
1613
|
)
|
|
1614
|
+
dcr_trn_hol: float | None = Field(
|
|
1615
|
+
None,
|
|
1616
|
+
alias="dcrTrnHol",
|
|
1617
|
+
description="Average L2 nearest-neighbor distance between training and holdout samples. Serves as a reference for `dcr_training`.",
|
|
1618
|
+
ge=0.0,
|
|
1619
|
+
)
|
|
1585
1620
|
dcr_share: float | None = Field(
|
|
1586
1621
|
None,
|
|
1587
1622
|
alias="dcrShare",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mostlyai"
|
|
3
|
-
version = "4.5.
|
|
3
|
+
version = "4.5.3"
|
|
4
4
|
description = "Synthetic Data SDK"
|
|
5
5
|
authors = [{ name = "MOSTLY AI", email = "dev@mostly.ai" }]
|
|
6
6
|
requires-python = ">=3.10,<3.14"
|
|
@@ -47,16 +47,16 @@ dependencies = [
|
|
|
47
47
|
|
|
48
48
|
[project.optional-dependencies]
|
|
49
49
|
local = [
|
|
50
|
-
#
|
|
51
|
-
"mostlyai-
|
|
52
|
-
"mostlyai-
|
|
50
|
+
# "mostlyai-engine @ git+https://github.com/mostly-ai/mostlyai-engine.git@main", # for development
|
|
51
|
+
# "mostlyai-qa @ git+https://github.com/mostly-ai/mostlyai-qa.git@main", # for development
|
|
52
|
+
"mostlyai-engine==1.3.1", # for release
|
|
53
|
+
"mostlyai-qa==1.6.1", # for release
|
|
53
54
|
"fastapi>=0.115.6,<0.116",
|
|
54
55
|
"uvicorn>=0.34.0,<0.35",
|
|
55
56
|
"python-multipart>=0.0.20",
|
|
56
|
-
"torch
|
|
57
|
-
"torchaudio
|
|
58
|
-
"torchvision
|
|
59
|
-
"torch>=2.6.0,<2.7.0; sys_platform != 'linux'",
|
|
57
|
+
"torch>=2.6.0,<2.6.1",
|
|
58
|
+
"torchaudio>=2.6.0,<2.6.1",
|
|
59
|
+
"torchvision>=0.21.0,<0.21.1",
|
|
60
60
|
"joblib>=1.4.2",
|
|
61
61
|
"sqlalchemy>=2.0.0",
|
|
62
62
|
"sshtunnel>=0.4.0,<0.5",
|
|
@@ -73,40 +73,16 @@ local = [
|
|
|
73
73
|
"adlfs>=2023.4.0",
|
|
74
74
|
]
|
|
75
75
|
local-gpu = [
|
|
76
|
-
"mostlyai-engine[gpu]
|
|
77
|
-
"mostlyai-qa
|
|
76
|
+
# "mostlyai-engine[gpu] @ git+https://github.com/mostly-ai/mostlyai-engine.git@main", # for development
|
|
77
|
+
# "mostlyai-qa @ git+https://github.com/mostly-ai/mostlyai-qa.git@main", # for development
|
|
78
|
+
"mostlyai-engine[gpu]==1.3.1", # for release
|
|
79
|
+
"mostlyai-qa==1.6.1", # for release
|
|
78
80
|
"fastapi>=0.115.6,<0.116",
|
|
79
81
|
"uvicorn>=0.34.0,<0.35",
|
|
80
82
|
"python-multipart>=0.0.20",
|
|
81
|
-
"torch
|
|
82
|
-
"torchaudio
|
|
83
|
-
"torchvision
|
|
84
|
-
"torch>=2.6.0,<2.7.0; sys_platform != 'linux'",
|
|
85
|
-
"joblib>=1.4.2",
|
|
86
|
-
"sqlalchemy>=2.0.0",
|
|
87
|
-
"sshtunnel>=0.4.0,<0.5",
|
|
88
|
-
"networkx>=3.0,<4",
|
|
89
|
-
"xlsxwriter>=3.1.9,<4",
|
|
90
|
-
"openpyxl>=3.1.5",
|
|
91
|
-
"filelock>=3.16.1",
|
|
92
|
-
# cloud-based connectors
|
|
93
|
-
"s3fs>=2023.1.0",
|
|
94
|
-
"gcsfs>=2023.1.0",
|
|
95
|
-
"cloudpathlib[gs, s3, azure]>=0.17.0",
|
|
96
|
-
"smart-open[gcs, s3, azure]>=6.3.0",
|
|
97
|
-
"azure-storage-blob>=12.16.0",
|
|
98
|
-
"adlfs>=2023.4.0",
|
|
99
|
-
]
|
|
100
|
-
local-cpu = [
|
|
101
|
-
"mostlyai-engine[cpu]==1.2.4",
|
|
102
|
-
"mostlyai-qa[cpu]==1.5.17",
|
|
103
|
-
"fastapi>=0.115.6,<0.116",
|
|
104
|
-
"uvicorn>=0.34.0,<0.35",
|
|
105
|
-
"python-multipart>=0.0.20",
|
|
106
|
-
"torch==2.6.0+cpu; sys_platform == 'linux'", # pinned to 2.6.0 for vllm 0.8.2 compatibility
|
|
107
|
-
"torchaudio==2.6.0+cpu; sys_platform == 'linux'", # pinned to 2.6.0 for vllm 0.8.2 compatibility
|
|
108
|
-
"torchvision==0.21.0+cpu; sys_platform == 'linux'", # pinned to 0.21.0 for vllm 0.8.2 compatibility
|
|
109
|
-
"torch>=2.6.0,<2.7.0; sys_platform != 'linux'",
|
|
83
|
+
"torch>=2.6.0,<2.6.1",
|
|
84
|
+
"torchaudio>=2.6.0,<2.6.1",
|
|
85
|
+
"torchvision>=0.21.0,<0.21.1",
|
|
110
86
|
"joblib>=1.4.2",
|
|
111
87
|
"sqlalchemy>=2.0.0",
|
|
112
88
|
"sshtunnel>=0.4.0,<0.5",
|
|
@@ -180,33 +156,6 @@ documentation = "https://mostly-ai.github.io/mostlyai/"
|
|
|
180
156
|
|
|
181
157
|
[tool.uv]
|
|
182
158
|
default-groups = ["dev", "docs"]
|
|
183
|
-
conflicts = [
|
|
184
|
-
[
|
|
185
|
-
{ extra = "local-cpu" },
|
|
186
|
-
{ extra = "local-gpu" },
|
|
187
|
-
],
|
|
188
|
-
]
|
|
189
|
-
|
|
190
|
-
[[tool.uv.index]]
|
|
191
|
-
name = "pytorch-cpu"
|
|
192
|
-
url = "https://download.pytorch.org/whl/cpu"
|
|
193
|
-
explicit = true
|
|
194
|
-
|
|
195
|
-
#[[tool.uv.index]]
|
|
196
|
-
#name = "pytorch-gpu"
|
|
197
|
-
#url = "https://pypi.org/simple"
|
|
198
|
-
#explicit = true
|
|
199
|
-
|
|
200
|
-
[tool.uv.sources]
|
|
201
|
-
torch = [
|
|
202
|
-
{ index = "pytorch-cpu", extra = "local-cpu", marker = "sys_platform == 'linux'"},
|
|
203
|
-
]
|
|
204
|
-
torchaudio = [
|
|
205
|
-
{ index = "pytorch-cpu", extra = "local-cpu", marker = "sys_platform == 'linux'"},
|
|
206
|
-
]
|
|
207
|
-
torchvision = [
|
|
208
|
-
{ index = "pytorch-cpu", extra = "local-cpu", marker = "sys_platform == 'linux'"},
|
|
209
|
-
]
|
|
210
159
|
|
|
211
160
|
[tool.hatch.build.targets.sdist]
|
|
212
161
|
include = ["mostlyai/sdk"]
|
|
@@ -222,6 +171,9 @@ exclude = [
|
|
|
222
171
|
"tools/**/*",
|
|
223
172
|
]
|
|
224
173
|
|
|
174
|
+
[tool.hatch.metadata]
|
|
175
|
+
allow-direct-references = true
|
|
176
|
+
|
|
225
177
|
[build-system]
|
|
226
178
|
requires = ["hatchling"]
|
|
227
179
|
build-backend = "hatchling.build"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_analyze_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_encode_training_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mostlyai-4.5.1 → mostlyai-4.5.3}/mostlyai/sdk/_local/execution/step_generate_model_report_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|