Skip to main content

michelangelo-examples

Test Build examples Docker image

Pip-installable, ready-to-run example models and pipelines for Michelangelo — a lightweight on-ramp for trying Michelangelo without a full monorepo checkout, the heavyweight example extra, or a running sandbox.

pip install michelangelo-examples[<example-name>]

Why this repo

The full example pipelines in michelangelo/python/examples/ are the canonical, full-fidelity reference — they exercise real Cadence/Temporal orchestration, Spark, and a live sandbox, and they aren't going anywhere. But trying one today means checking out the whole monorepo and installing one heavyweight extra that bundles every example's dependencies (torch, transformers, xgboost, pyspark, ray, mlflow, peft, and more) at once, regardless of which example you actually want.

michelangelo-examples is a second, lighter tier: each example is its own pip extra with only the dependencies it needs, plus a plain-Python run_local.py entrypoint that trains/evaluates locally — no Cadence, no Spark, no sandbox. It's the "try it in five minutes" path underneath the full pipeline reference, not a replacement for it.

Examples

Ported so far:

  • california_housing — a project (use case) with one pipeline so far, pytorch_train (California Housing price prediction via PyTorch Lightning, migrated from core michelangelo's python/examples/pipelines/california_housing_lightning/). Structuring it as a project with a pipelines/ subfolder leaves room for sibling pipelines against the same use case — e.g. a future xgboost_train pipeline — without another top-level rename.
  • bert_cola — fine-tunes BERT for linguistic acceptability classification on the CoLA task, migrated from core michelangelo's python/examples/bert_cola/.
  • gpt_oss_20b_finetune — LoRA fine-tuning of GPT-style causal-LM checkpoints (architected for GPT-OSS-20B, tested against GPT-2 as a CPU-feasible proxy), migrated from core michelangelo's python/examples/gpt_oss_20b_finetune/. Requires Python 3.11+ (see that project's own README).
  • movielens — trains a tiny Neural Collaborative Filtering model on MovieLens-100k via Ray Train + PyTorch Lightning, migrated from core michelangelo's python/examples/movielens/. Requires Python 3.11+ (see that project's own README).
  • nomic_ai — fine-tunes/encodes nomic-ai/nomic-bert-2048, a long-context (2048-token) BERT, over a WikiText-2 sample via PyTorch Lightning, migrated from core michelangelo's python/examples/nomic_ai/. Requires Python 3.11+ (see that project's own README).

v1 candidates (not yet ported): amazon_books_qwen. See the project spec for the full list this repo is drawing from.

Each project lives entirely under src/michelangelo_examples/<project-name>/ — a real subpackage of the one michelangelo_examples package this repo ships, including its pipeline.yaml/README.md (bundled as package data so a plain pip install gets everything, not just the Python code) alongside each pipeline's model/training/task code and __main__.py local runner. Code shared across a project's sibling pipelines (e.g. dataset loading/feature prep) lives in <project-name>/pipelines/libs/.

Installing a project

pip install "michelangelo-examples[california-housing]"
python -m michelangelo_examples.california_housing.pipelines.pytorch_train

Extras are scoped per project, not per pipeline: installing california-housing pulls in the dependencies for every pipeline under that project (today just pytorch_train), since they already share one built image and mostly overlapping dependency sets.

The pip install + python -m commands above run the lightweight local tier only. To run a pipeline's full Cadence-dispatched version against a Michelangelo sandbox (ma project apply → ma pipeline apply → ma pipeline run), see the end-to-end command sequence in that pipeline's own README — e.g. pytorch_train's.

Relationship to other Michelangelo repos

  • michelangelo — the core platform; python/examples/ there remains the full pipeline reference (Cadence/Temporal/Spark/sandbox).
  • michelangelo-models — pluggable model architecture definitions. Some examples here may import a seed architecture from there instead of defining their own model.

Development

This repo uses uv for dependency management.

uv build
uv run pytest

License

Apache License 2.0

Metadata

Release files for michelangelo-examples 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for michelangelo-examples 0.7.0
File Size Uploaded Provenance Actions
michelangelo_examples-0.7.0.tar.gz 462.1 kB With provenance Details for michelangelo_examples-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for michelangelo-examples 0.7.0
File Interpreter ABI Platform Actions
michelangelo_examples-0.7.0-py3-none-any.whl Python 3 none any Details for michelangelo_examples-0.7.0-py3-none-any.whl

Total release size: 567.9 kB

Release files / michelangelo_examples-0.7.0.tar.gz

Download URL michelangelo_examples-0.7.0.tar.gz
Size 462.1 kB
Tags Source
SHA-256 checksum
How to use checksums
711c30ef0e190b21954b5b71efb442bbd0716553f4457a4f4db44595d4f3218c
BLAKE2b-256 checksum
How to use checksums
1a861633fb31715b72803fbf422311591950a4e1b8999f64c73afb0a3a13a23c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / michelangelo_examples-0.7.0-py3-none-any.whl

Download URL michelangelo_examples-0.7.0-py3-none-any.whl
Size 105.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c23d3a20ab3a340ca7c63e30a015ad8bcd0ea1e09ca98aee0da02937eba9d205
BLAKE2b-256 checksum
How to use checksums
412a3a2096af47cf06371d73c4270bac4b1c09898c2ba276677459d88cd5b387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Security for michelangelo-examples 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for michelangelo_examples-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page