ml-modelfoundry 0.8.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.
Files changed (75) hide show
  1. ml_modelfoundry-0.8.2.dist-info/METADATA +185 -0
  2. ml_modelfoundry-0.8.2.dist-info/RECORD +75 -0
  3. ml_modelfoundry-0.8.2.dist-info/WHEEL +4 -0
  4. ml_modelfoundry-0.8.2.dist-info/entry_points.txt +6 -0
  5. ml_modelfoundry-0.8.2.dist-info/licenses/LICENSE +201 -0
  6. modelfoundry/__init__.py +44 -0
  7. modelfoundry/__main__.py +10 -0
  8. modelfoundry/_version.py +5 -0
  9. modelfoundry/cache/__init__.py +6 -0
  10. modelfoundry/cache/atomic.py +149 -0
  11. modelfoundry/cache/cleaner.py +194 -0
  12. modelfoundry/cache/identity.py +72 -0
  13. modelfoundry/cache/layout.py +158 -0
  14. modelfoundry/cli/__init__.py +9 -0
  15. modelfoundry/cli/app.py +407 -0
  16. modelfoundry/cli/commands/__init__.py +8 -0
  17. modelfoundry/cli/commands/check_cmd.py +72 -0
  18. modelfoundry/cli/commands/clean_cmd.py +71 -0
  19. modelfoundry/cli/commands/init_cmd.py +38 -0
  20. modelfoundry/cli/commands/inspect_cmd.py +78 -0
  21. modelfoundry/cli/commands/materialize_cmd.py +150 -0
  22. modelfoundry/cli/commands/report_cmd.py +51 -0
  23. modelfoundry/cli/commands/status_cmd.py +104 -0
  24. modelfoundry/cli/commands/validate_cmd.py +53 -0
  25. modelfoundry/core/__init__.py +6 -0
  26. modelfoundry/core/config.py +59 -0
  27. modelfoundry/core/errors.py +90 -0
  28. modelfoundry/core/instance.py +387 -0
  29. modelfoundry/core/manifest.py +106 -0
  30. modelfoundry/core/modelfoundry.py +321 -0
  31. modelfoundry/logging.py +145 -0
  32. modelfoundry/pipeline/__init__.py +6 -0
  33. modelfoundry/pipeline/checkpoint.py +57 -0
  34. modelfoundry/pipeline/data_binding.py +224 -0
  35. modelfoundry/pipeline/expectations.py +98 -0
  36. modelfoundry/pipeline/progress.py +82 -0
  37. modelfoundry/pipeline/runner.py +293 -0
  38. modelfoundry/pipeline/seeding.py +76 -0
  39. modelfoundry/plugins/__init__.py +6 -0
  40. modelfoundry/plugins/base.py +171 -0
  41. modelfoundry/plugins/discovery.py +84 -0
  42. modelfoundry/plugins/pytorch/__init__.py +20 -0
  43. modelfoundry/plugins/pytorch/architecture.py +486 -0
  44. modelfoundry/plugins/pytorch/augmentations.py +269 -0
  45. modelfoundry/plugins/pytorch/data.py +227 -0
  46. modelfoundry/plugins/pytorch/determinism.py +62 -0
  47. modelfoundry/plugins/pytorch/evaluation.py +275 -0
  48. modelfoundry/plugins/pytorch/losses.py +145 -0
  49. modelfoundry/plugins/pytorch/optimization.py +214 -0
  50. modelfoundry/plugins/pytorch/optimizers.py +92 -0
  51. modelfoundry/plugins/pytorch/persistence.py +185 -0
  52. modelfoundry/plugins/pytorch/plugin.py +253 -0
  53. modelfoundry/plugins/pytorch/schedules.py +100 -0
  54. modelfoundry/plugins/pytorch/summary.py +165 -0
  55. modelfoundry/plugins/pytorch/trainer.py +402 -0
  56. modelfoundry/plugins/pytorch/visualization_specs.py +61 -0
  57. modelfoundry/plugins/pytorch/visualizations.py +224 -0
  58. modelfoundry/plugins/sklearn/__init__.py +8 -0
  59. modelfoundry/plugins/sklearn/data.py +53 -0
  60. modelfoundry/plugins/sklearn/metrics.py +136 -0
  61. modelfoundry/plugins/sklearn/plugin.py +411 -0
  62. modelfoundry/py.typed +0 -0
  63. modelfoundry/recipe/__init__.py +6 -0
  64. modelfoundry/recipe/canonical.py +45 -0
  65. modelfoundry/recipe/loader.py +99 -0
  66. modelfoundry/recipe/models.py +150 -0
  67. modelfoundry/recipe/search_space.py +138 -0
  68. modelfoundry/recipe/validator.py +589 -0
  69. modelfoundry/recipe/variants.py +60 -0
  70. modelfoundry/reporting/__init__.py +11 -0
  71. modelfoundry/reporting/report.py +163 -0
  72. modelfoundry/reporting/visualizations.py +94 -0
  73. modelfoundry/scaffolder/__init__.py +9 -0
  74. modelfoundry/scaffolder/init.py +151 -0
  75. modelfoundry/scaffolder/llm.py +11 -0
@@ -0,0 +1,185 @@
1
+ Metadata-Version: 2.4
2
+ Name: ml-modelfoundry
3
+ Version: 0.8.2
4
+ Summary: Compile a YAML recipe into a reproducible, framework-agnostic trained-model instance.
5
+ Project-URL: Homepage, https://github.com/pointmatic/modelfoundry
6
+ Project-URL: Repository, https://github.com/pointmatic/modelfoundry
7
+ Project-URL: Issues, https://github.com/pointmatic/modelfoundry/issues
8
+ Author: Pointmatic
9
+ Maintainer: Pointmatic
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: machine-learning,model-training,optuna,pytorch,reproducibility
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: <3.14,>=3.12
23
+ Requires-Dist: matplotlib
24
+ Requires-Dist: ml-datarefinery>=0.20.0
25
+ Requires-Dist: numpy
26
+ Requires-Dist: optuna
27
+ Requires-Dist: pandas
28
+ Requires-Dist: pillow
29
+ Requires-Dist: pyarrow
30
+ Requires-Dist: pydantic>=2
31
+ Requires-Dist: pyyaml
32
+ Requires-Dist: rich
33
+ Requires-Dist: scikit-learn
34
+ Requires-Dist: typer
35
+ Provides-Extra: huggingface
36
+ Requires-Dist: evaluate>=0.4; extra == 'huggingface'
37
+ Requires-Dist: peft>=0.10; extra == 'huggingface'
38
+ Requires-Dist: transformers>=4.40; extra == 'huggingface'
39
+ Provides-Extra: keras
40
+ Requires-Dist: keras>=3.0; extra == 'keras'
41
+ Requires-Dist: tensorflow>=2.16; extra == 'keras'
42
+ Provides-Extra: llm
43
+ Requires-Dist: lmentry; extra == 'llm'
44
+ Provides-Extra: notebook-smokes
45
+ Requires-Dist: ipykernel; extra == 'notebook-smokes'
46
+ Requires-Dist: nbclient; extra == 'notebook-smokes'
47
+ Provides-Extra: pytorch
48
+ Requires-Dist: torch>=2.5; extra == 'pytorch'
49
+ Requires-Dist: torchinfo>=1.8; extra == 'pytorch'
50
+ Requires-Dist: torchmetrics>=1.4; extra == 'pytorch'
51
+ Requires-Dist: torchvision>=0.20; extra == 'pytorch'
52
+ Provides-Extra: sklearn
53
+ Description-Content-Type: text/markdown
54
+
55
+ # ModelFoundry
56
+
57
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
58
+
59
+ Compile a YAML recipe into a reproducible, framework-agnostic trained-model instance.
60
+
61
+ ModelFoundry consumes a materialized [DataRefinery](https://github.com/pointmatic/datarefinery) instance and compiles a single YAML **model recipe** into a content-addressed, atomically-promoted **ModelInstance**: the trained model, per-epoch metrics, hyperparameter-search trials, held-out evaluation, predictions, visualizations, and a manifest. The result object returns notebook-shaped primitives (`pandas.DataFrame` / `numpy.ndarray` / PNG `bytes`) and works identically inside Jupyter, Marimo, IPython, or a plain `.py` script — no framework imports in user code.
62
+
63
+ Reproducibility is a first-class concern: every stochastic source is seeded, the cache identity is computed from the recipe's normalized semantic form, and the same `(recipe, data, seed, variant)` tuple materializes to a byte-identical `ModelInstance`.
64
+
65
+ > **Status:** pre-production (`0.x.y` series). APIs, CLI surface, and cache layout may change between minor versions until the `1.0.0` production release. See [`docs/specs/`](docs/specs/) for the concept, feature, technical, and story specifications.
66
+
67
+ ## Installation
68
+
69
+ ```bash
70
+ pip install ml-modelfoundry[pytorch]
71
+ ```
72
+
73
+ The import name and console script are both `modelfoundry`; the PyPI distribution is `ml-modelfoundry`. The pre-production release ships an end-to-end **PyTorch** plugin (image classification, CIFAR-10-scale) plus a scikit-learn `MLPClassifier` baseline; the base install (`pip install ml-modelfoundry`) carries everything except the framework — a recipe selects its backend via the `[pytorch]` extra.
74
+
75
+ ## Quickstart — CIFAR-10
76
+
77
+ ModelFoundry never does data prep: splitting, cleaning, sampling, and feature engineering are DataRefinery's job. The quickstart assumes the two bundled recipes — `recipes/cifar10-base.yaml` (the DataRefinery dataset recipe) and `recipes/cifar10_resnet20.yml` (the ModelFoundry ResNet-20 recipe, bound to it).
78
+
79
+ ```bash
80
+ # 1. Materialize the CIFAR-10 dataset with DataRefinery (one-time) → ./data
81
+ datarefinery materialize recipes/cifar10-base.yaml
82
+
83
+ # 2. Validate, then materialize the model with ModelFoundry → ./models
84
+ modelfoundry validate recipes/cifar10_resnet20.yml
85
+ modelfoundry materialize recipes/cifar10_resnet20.yml
86
+ ```
87
+
88
+ `materialize` runs the full pipeline — hyperparameter optimization → training → held-out evaluation → output-expectation checks → persistence → report — and atomically promotes the result into the content-addressed cache. Re-running the same recipe finds the existing instance; pass `--overwrite` to recompute.
89
+
90
+ Then consume the materialized instance — from a script, a notebook, or the CLI:
91
+
92
+ ```python
93
+ from datarefinery import DataRefinery
94
+ from modelfoundry import ModelFoundry
95
+
96
+ data = DataRefinery.from_recipe("recipes/cifar10-base.yaml").materialize()
97
+ model = ModelFoundry.from_recipe("recipes/cifar10_resnet20.yml", data=data).materialize()
98
+
99
+ model.evaluation["test"] # dict[str, value] — held-out metrics for the test split
100
+ model.metrics # alias for .evaluation: {split: {metric: value}}
101
+ model.confusion_matrix # dict[str, np.ndarray] — per-split confusion matrices
102
+ model.predictions # pandas.DataFrame — per-record predictions + class probabilities
103
+ model.figures # dict[str, bytes] — reporting-visualization PNGs, keyed by name
104
+ model.predict(X) # np.ndarray — predicted labels for new inputs
105
+ ```
106
+
107
+ ## Library API
108
+
109
+ `ModelFoundry.from_recipe(...)` binds a recipe to a materialized DataRefinery instance; the verbs (`validate` / `materialize` / `status` / `inspect` / `report` / `clean` / `check`) are thin methods over that binding, co-equal with the CLI.
110
+
111
+ ```python
112
+ from modelfoundry import ModelFoundry, ModelInstance
113
+
114
+ mf = ModelFoundry.from_recipe("model.yml", data=data)
115
+
116
+ report = mf.validate() # FR-2 static checks; report.passed is a bool
117
+ instance = mf.materialize() # train + optimize + evaluate; returns a ModelInstance
118
+
119
+ # A reloaded instance predicts identically (byte-stable round-trip):
120
+ reloaded = ModelInstance.load(instance.path)
121
+ ```
122
+
123
+ `data` may be a pre-bound `DataRefineryInstance` (as above) or a path to the DataRefinery cache root, in which case the recipe's `Data:` block is resolved against it.
124
+
125
+ ## CLI
126
+
127
+ ```bash
128
+ modelfoundry check # environment + plugin health
129
+ modelfoundry validate <recipe> # static FR-2 recipe checks
130
+ modelfoundry materialize <recipe> [--overwrite] # train + optimize + evaluate
131
+ modelfoundry status <recipe> # is it materialized? show the manifest
132
+ modelfoundry report <instance-dir> # re-render the instance report
133
+ modelfoundry inspect <instance-dir> --view training_curves
134
+ modelfoundry clean --older-than 7d # cache management
135
+ modelfoundry init <recipe-out> --data <datarefinery-recipe> # scaffold a recipe
136
+ ```
137
+
138
+ Shared options apply to every verb: `--cache-root` / `--data-cache-root` (defaults `./models` and `./data`), `--log-level`, `--log-target` (JSON-lines operational logs), `--plugin-path`, and `-v` / `-q`.
139
+
140
+ ## Notebook-substrate-neutral
141
+
142
+ The same surface works identically in a Jupyter cell, a Marimo cell, an IPython REPL, or a plain `.py` script — the `ModelInstance` returns plain `pandas` / `numpy` / PNG-`bytes` primitives, so user code imports no framework:
143
+
144
+ ```python
145
+ from IPython.display import Image
146
+
147
+ mi = ModelFoundry.from_recipe("model.yml", data=data).materialize()
148
+ Image(mi.figures["training_curves"]) # render the reporting PNG
149
+ mi.predictions.head() # a DataFrame, renders natively in any host
150
+ ```
151
+
152
+ ## Choosing an accelerator
153
+
154
+ Hardware acceleration is **auto-detected** by default — the PyTorch plugin picks Metal (Apple Silicon) → CUDA → CPU in that order. To pin a specific device (e.g. for CPU-speed benchmarking on a GPU-equipped machine, or to debug a non-deterministic op), set `Training.device` in the recipe:
155
+
156
+ ```yaml
157
+ Training:
158
+ max_epochs: 10
159
+ batch_size: 32
160
+ device: cpu # one of: auto (default) | cpu | cuda | mps
161
+ ```
162
+
163
+ `device` participates in the recipe's canonical hash, so the same recipe run with `device: cpu` and `device: mps` materializes into two distinct `ModelInstance` cache entries — no silent cross-device collision. Use the `variants:` block to keep both side-by-side without maintaining two recipe files:
164
+
165
+ ```yaml
166
+ variants:
167
+ cpu_bench:
168
+ Training: {device: cpu}
169
+ ```
170
+
171
+ ```bash
172
+ modelfoundry materialize model.yml --variant cpu_bench
173
+ ```
174
+
175
+ ## Documentation
176
+
177
+ - [`docs/specs/concept.md`](docs/specs/concept.md) — why the project exists
178
+ - [`docs/specs/features.md`](docs/specs/features.md) — what it does (CR / FR / UR / TR requirements)
179
+ - [`docs/specs/tech-spec.md`](docs/specs/tech-spec.md) — how it is built
180
+ - [`docs/specs/project-essentials.md`](docs/specs/project-essentials.md) — must-know invariants (cache identity, determinism, loose coupling)
181
+ - [`docs/specs/stories.md`](docs/specs/stories.md) — the implementation plan
182
+
183
+ ## License
184
+
185
+ Apache-2.0. Copyright (c) 2026 Pointmatic.
@@ -0,0 +1,75 @@
1
+ modelfoundry/__init__.py,sha256=YPLRz-A0Uw9gmB9sDcJDRxAa36MtARmUJHbsBwarRQc,1145
2
+ modelfoundry/__main__.py,sha256=PCCSod2_bbKljHUM8CjvvpV3z9INKZcW_1VRz28OvuM,249
3
+ modelfoundry/_version.py,sha256=OoL4fdHRLWahGFYKUDDrWnt3JIDWbUAHwKw8XH96T0o,147
4
+ modelfoundry/logging.py,sha256=I36gq9wIgMywZbkwc9Z4Qz52Dzq7PUvGWhm5i6601Mg,5029
5
+ modelfoundry/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ modelfoundry/cache/__init__.py,sha256=YR1oai2_JWk4Ze4N9y7u2Uur5En3xhpL4Ht8LhcPQFk,227
7
+ modelfoundry/cache/atomic.py,sha256=k5Yz1eh4L1BY-gcE3nCbeEAfY1UvYix5VfNeiS-iG00,5518
8
+ modelfoundry/cache/cleaner.py,sha256=S6YIMMU4HjgR22rdYKR0FpYh69jq2xdCDKDxJVdmPLc,6206
9
+ modelfoundry/cache/identity.py,sha256=KERkKARUdpAzcJraccPFOdvv1H0rytQbK8QAUsclxsM,2731
10
+ modelfoundry/cache/layout.py,sha256=MADTvJFtqAxAIdDnnbrpw5SLPz4SXVR7pKhiYo-1OV0,4253
11
+ modelfoundry/cli/__init__.py,sha256=OOrDW-YXy7mLw9u445fDL1D1Ec-w6LsaxNxmyvM-1tk,394
12
+ modelfoundry/cli/app.py,sha256=hMxayCxuxKVMnJvUWmqgvPp3Ix6teV9erkMU8AmPfc0,13431
13
+ modelfoundry/cli/commands/__init__.py,sha256=Aag3S7YpT5n4YfvWgf-Yc1E4Tp3szXg1l3G4_CiYC-4,322
14
+ modelfoundry/cli/commands/check_cmd.py,sha256=qr6tn7P4sXqWU_jLTFoqzF_WuGvUbIo-xtaJlunc27I,2898
15
+ modelfoundry/cli/commands/clean_cmd.py,sha256=bZpthagsWgOopXSMWt88CQ0yQHap5TmNW__eoTqojPY,2537
16
+ modelfoundry/cli/commands/init_cmd.py,sha256=jrqq0yUnIdkN08v1CoKq4aemcqgmtmnoLrqM-XuR1KA,1303
17
+ modelfoundry/cli/commands/inspect_cmd.py,sha256=-TlMjCvWld74uFwghe7XswwRUog2WXFnY4UobAQZums,3030
18
+ modelfoundry/cli/commands/materialize_cmd.py,sha256=HiuXBT46Y5fSCjXRTPxeYGbQjVwjBCcCPRwtuBcXnzE,5689
19
+ modelfoundry/cli/commands/report_cmd.py,sha256=Fk6P_ILV2kWuElDueFnQPxjRr3bFMgAo_LWSbNM87kg,2174
20
+ modelfoundry/cli/commands/status_cmd.py,sha256=PY47LwH28vae1KAPs_ZM3Fe9SGeO-XTkG3ZXJK9IJUA,3904
21
+ modelfoundry/cli/commands/validate_cmd.py,sha256=wYi716uljW4QAbQsMebOH94RO2QXcpmTD14t4oh7oEc,2209
22
+ modelfoundry/core/__init__.py,sha256=UkXtUtM-earS-j5ouExh9xX5piRUZXlqLf_T-RBXVRc,241
23
+ modelfoundry/core/config.py,sha256=pcGYWAst_d9Odxc_rfNU0hlXHOFyolUleh0bGnWhHHE,2283
24
+ modelfoundry/core/errors.py,sha256=MIAeuF4sda2pSTPJgCclWoKoEGFWzohuNesRGmHxeyQ,2619
25
+ modelfoundry/core/instance.py,sha256=uvZYgA-5aI5qFPZNYrU1fau9dpy3IudgAYVrFik5JPk,14329
26
+ modelfoundry/core/manifest.py,sha256=fxt-OzlxSPvUIB-_TPzv7pmrZT4aJ3WHxBqEC6kk6S0,3429
27
+ modelfoundry/core/modelfoundry.py,sha256=RIfFInTVY2LALfC3ZEESD_Qi_XMCBNH1vyVbI_QH0Sc,13146
28
+ modelfoundry/pipeline/__init__.py,sha256=UmyBMcKW2ULIudUOt495kd5Frl3eV8N0_WIkvoYlie4,244
29
+ modelfoundry/pipeline/checkpoint.py,sha256=StkGICrq_h6XplJBHU9RwQk5_hmSy1mOoAr4c98BZOs,2196
30
+ modelfoundry/pipeline/data_binding.py,sha256=6F8gi-gyOGgP3qVn9k-AxklE0YEjV9mOM4R-bjyQ1QA,9305
31
+ modelfoundry/pipeline/expectations.py,sha256=z2nCDuPk-KVW-J0Yb7KtzDsooKL4w5D7J0cEPrgWNUk,3416
32
+ modelfoundry/pipeline/progress.py,sha256=bIp_ysuM95VktH7uMh-peUrWkHVOKu59XiAakyA3OZA,3116
33
+ modelfoundry/pipeline/runner.py,sha256=SP_ORj_jgm7Emo4k_IrbAjvymUmmiflq-F4HMySq4LE,12225
34
+ modelfoundry/pipeline/seeding.py,sha256=4-RN00hossxy4LH3sHkNu5TZA8yJij7x_OWLuWS-XKE,3309
35
+ modelfoundry/plugins/__init__.py,sha256=0GsFEHsmUsgXCytoIdsb0gaT5u8LqkWnyKg0HxHRCdI,226
36
+ modelfoundry/plugins/base.py,sha256=ptwSVJHADP0hqYBRrN3_DPM8KZ4M4exC6V35czor_WQ,5953
37
+ modelfoundry/plugins/discovery.py,sha256=POQxR9iltdJSNaiCr1r3YTrPXT01HxJLRZshJCJi44s,3161
38
+ modelfoundry/plugins/pytorch/__init__.py,sha256=8IaYIxehuy6c9MkERru-_RurVXGrrXJuFb4CHS_eW0k,698
39
+ modelfoundry/plugins/pytorch/architecture.py,sha256=Wgr4NALNUwlmytNUTtLWso6IlE8yeWLmdUi1HQoIrJg,16446
40
+ modelfoundry/plugins/pytorch/augmentations.py,sha256=1AO2O0zD0_P8eLBWa8HkPKDYmOGvs2v1Sgle2QeniGw,10199
41
+ modelfoundry/plugins/pytorch/data.py,sha256=JKLO1Nl5gman6vIxyuSt8Epz1VlcO6GGhXUqXg8WuX8,9841
42
+ modelfoundry/plugins/pytorch/determinism.py,sha256=ZqMHTblUWbIIj5C0Ts6cfOHcYwyMGfUm7a4q42qkZl0,2542
43
+ modelfoundry/plugins/pytorch/evaluation.py,sha256=UhAO2CAJJvRpQKBX_sI-FExRBoyIr-MI8scsCTVlbXE,9690
44
+ modelfoundry/plugins/pytorch/losses.py,sha256=7498eVfbUBtCK0YagmkLPIsjOPS1ZWVfNwpx-Rxp8HU,5169
45
+ modelfoundry/plugins/pytorch/optimization.py,sha256=O4NPg1M-iAsmct3I8RSPofyNsZZjjhr5ZrVtN9U9P0A,8106
46
+ modelfoundry/plugins/pytorch/optimizers.py,sha256=KiMAQZN3V1Ee_WzdAdgVWfT9OoRuY6NFMt2YF4EIHJk,2839
47
+ modelfoundry/plugins/pytorch/persistence.py,sha256=cCbGUo7298_By5ksSYjs_WfUxI-WhfPdmHDPNQgkQ4k,7070
48
+ modelfoundry/plugins/pytorch/plugin.py,sha256=B1VWzGVI5Faky8tesVPxznK-vuekdO3cVtG0WyRm-pw,9451
49
+ modelfoundry/plugins/pytorch/schedules.py,sha256=QwRkARutt-aBs9Yha4nwWw5on1sEzYdAYTIiN8zbz3k,3365
50
+ modelfoundry/plugins/pytorch/summary.py,sha256=HwN-gmxE5HPriOOAvQIHeydqj36zueOGFbPphOVIYZc,6384
51
+ modelfoundry/plugins/pytorch/trainer.py,sha256=WdlWrCbbB2MZU21kRJhpKCBuP-ScxF_UDIKAhBofVLY,15093
52
+ modelfoundry/plugins/pytorch/visualization_specs.py,sha256=-9IsR84UNqI96uxjvgQbfC30RCCDaahUGeWiOk_hxi8,2227
53
+ modelfoundry/plugins/pytorch/visualizations.py,sha256=L4394lTJhNQHiN0KlDmHY4eTEGpa1MMiEO5PBTVj7Dw,8281
54
+ modelfoundry/plugins/sklearn/__init__.py,sha256=J23oTVqdwGhD-5Ejc0aBDHhOrE83fZdx8H-68KrKNVE,340
55
+ modelfoundry/plugins/sklearn/data.py,sha256=dYk9zDT7GG8NL4DTjztCtprCunXD45cZaf-iUu_5grY,2252
56
+ modelfoundry/plugins/sklearn/metrics.py,sha256=qZ6CNlIXz7Q6w87_BEXVo2xjgqWqNFIrh5mQxQkLjgw,4975
57
+ modelfoundry/plugins/sklearn/plugin.py,sha256=FSiJLm5jArdKq9H0XJBIsvOZqLZxcbDkRPlW-DTDe3Q,14582
58
+ modelfoundry/recipe/__init__.py,sha256=90e4-0_XELXtBqSl7atWCYjrhchhmB5WFS0zrqJ1yEU,238
59
+ modelfoundry/recipe/canonical.py,sha256=Eh8AdCPTI0dgjDad-AXwLmQbLP2hME1DNSqlcjHxU_Y,1592
60
+ modelfoundry/recipe/loader.py,sha256=zpKylKbJdq-xyDKtDzdgIWPSuB2F7wGR1hmFCJCkffA,3359
61
+ modelfoundry/recipe/models.py,sha256=bTJOu6i-DRq8yePNP21VC85ISneFnnx0Yh-4D_U15dU,4630
62
+ modelfoundry/recipe/search_space.py,sha256=oMzLlI7DJt_IwifRYgx8RZGnXlByiC8ty2zHmqK_sgE,5411
63
+ modelfoundry/recipe/validator.py,sha256=FYHfemYRuSTOUWrpvk6WmXEAPoSBrTywE8G620zBEZs,18806
64
+ modelfoundry/recipe/variants.py,sha256=qTkzZN9doY-fTQMwWVT_H0kiWVTWSm-8nNnYjRYDA2o,2370
65
+ modelfoundry/reporting/__init__.py,sha256=yvLNy7QMw2h-gO5_Xc6l9dQrV19jcfyiS1jCJNCfnqU,412
66
+ modelfoundry/reporting/report.py,sha256=3g-bua2NrvC3n_zvfGQJpEbNunS5dzGkIccfvGJk0sU,6277
67
+ modelfoundry/reporting/visualizations.py,sha256=OyrEuCpJ8niPEYjj_PGFE9C-3kG2XxGfLHt6r2xpPrE,3428
68
+ modelfoundry/scaffolder/__init__.py,sha256=Ytc1BejTHsU13_Z8OvZ12OoMfsxY7WPa7Fpez08hu9E,395
69
+ modelfoundry/scaffolder/init.py,sha256=Kt_dTIAaHSskwNFZyF-FDXbtESJCHHRo5y8kJ3Y39qg,5612
70
+ modelfoundry/scaffolder/llm.py,sha256=1StNXjr5KXyRrAq1mV5jbhroViCLuqhLsE5hl7jLZC0,473
71
+ ml_modelfoundry-0.8.2.dist-info/METADATA,sha256=EOLZl1N1NDQYld3SJg9RlFUWLjH7WynUsaxwUrgnSr0,9315
72
+ ml_modelfoundry-0.8.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
73
+ ml_modelfoundry-0.8.2.dist-info/entry_points.txt,sha256=iOYfRxmcypTG67EfoJ3sO1WbyqDnWRPmKe3uV5RwZBA,189
74
+ ml_modelfoundry-0.8.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
75
+ ml_modelfoundry-0.8.2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,6 @@
1
+ [console_scripts]
2
+ modelfoundry = modelfoundry.cli.app:main
3
+
4
+ [modelfoundry.plugins]
5
+ pytorch = modelfoundry.plugins.pytorch.plugin:plugin
6
+ sklearn = modelfoundry.plugins.sklearn.plugin:plugin
@@ -0,0 +1,201 @@
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
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,44 @@
1
+ # Copyright (c) 2026 Pointmatic
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ """ModelFoundry — compile a YAML recipe into a reproducible trained-model instance.
4
+
5
+ Public API re-exports are added as the package is built out (see docs/specs/stories.md).
6
+ The pre-production scaffold exposes only the version string.
7
+ """
8
+
9
+ from modelfoundry._version import __version__
10
+ from modelfoundry.core.errors import (
11
+ CacheError,
12
+ DataBindingError,
13
+ ExpectationError,
14
+ InspectionError,
15
+ InstanceError,
16
+ MaterializeError,
17
+ ModelArtifactExistsError,
18
+ ModelfoundryError,
19
+ OptimizationError,
20
+ PluginError,
21
+ RecipeError,
22
+ ValidationError,
23
+ )
24
+ from modelfoundry.core.instance import ModelInstance
25
+ from modelfoundry.core.modelfoundry import ModelFoundry, materialize
26
+
27
+ __all__ = [
28
+ "CacheError",
29
+ "DataBindingError",
30
+ "ExpectationError",
31
+ "InspectionError",
32
+ "InstanceError",
33
+ "MaterializeError",
34
+ "ModelArtifactExistsError",
35
+ "ModelFoundry",
36
+ "ModelInstance",
37
+ "ModelfoundryError",
38
+ "OptimizationError",
39
+ "PluginError",
40
+ "RecipeError",
41
+ "ValidationError",
42
+ "__version__",
43
+ "materialize",
44
+ ]
@@ -0,0 +1,10 @@
1
+ # Copyright (c) 2026 Pointmatic
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ """`python -m modelfoundry` entry point — prints the version and exits 0."""
4
+
5
+ import sys
6
+
7
+ from modelfoundry.cli.app import main
8
+
9
+ if __name__ == "__main__":
10
+ sys.exit(main())
@@ -0,0 +1,5 @@
1
+ # Copyright (c) 2026 Pointmatic
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ """Single source of truth for the package version."""
4
+
5
+ __version__ = "0.8.2"
@@ -0,0 +1,6 @@
1
+ # Copyright (c) 2026 Pointmatic
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ """Cache identity, on-disk layout, atomic promotion, and cleaning.
4
+
5
+ Public re-exports are added as the package is built out (see docs/specs/stories.md).
6
+ """