Skip to main content

Ship machine learning models in minutes, not months

Project description

🚢 modelship

Ship machine learning models in minutes, not months

PyPI Python Versions CI/CD License

modelship is a utility application to ease wrapping and deploying machine learning models by autogenerating applications, leveraging modern standards such as ONNX and WebAssembly.

Demo

Examples of static web applications generated with modelship from ONNX models:

Features

  • ONNX model support
  • Generate a static web application with autogenerated form

Installation

Using pip (or any other Python package manager):

pip install modelship

Using uvx:

uvx modelship

Usage

Model metadata

Every model must be described with some basic metadata for conversions to work properly.

Here is the YAML schema:

name: Model Name
description: Model description
inputs:
  float_input:
    name: Float Input Name
    type: float32
    shape: [null, 1]
    min: 10
    max: 100
    step: 1
    default: 50
  string_input:
    name: String Input Name
    type: string
    shape: [null]
outputs:
  float_output:
    name: Float Output Name
    type: float32
    shape: [null, 1]
  string_output:
    name: String Output Name
    type: string
    shape: [null]

Input fields:

  • name: str
  • type: Literal["float32", "string"]
  • shape: list[int | None]
  • (optional) min: float
  • (optional) max: float
  • (optional) step: float
  • (optional) defaut: float | str

Output fields:

  • name: str
  • type: Literal["float32", "string"]
  • shape: list[int | None]

Static web application generation

Provide an ONNX model with its YAML metadata description, and modelship will generate a static web application with an autogenerated HTML form, performing model inference using ONNX Runtime Web (WebAssembly):

$ modelship static --output dist --metadata model/metadata.yml model/model.onnx

The resulting static application in dist can now be deployed on any static hosting provider (GitHub Pages, GitLab Pages, Cloudflare Pages, S3, Vercel)!

License

Licensed under Apache License 2.0

Copyright (c) 2025 - present Romain Clement / Datalpia

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modelship-0.1.0.tar.gz (559.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modelship-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file modelship-0.1.0.tar.gz.

File metadata

  • Download URL: modelship-0.1.0.tar.gz
  • Upload date:
  • Size: 559.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for modelship-0.1.0.tar.gz
Algorithm Hash digest
SHA256 49de1b21a9f36e92757570e5821e036e72820c07d0442e6cd9161676f30852ee
MD5 955b6f1bbe4f6a50b4fb199e42e66cfc
BLAKE2b-256 a3f6262241584e889fbfb5d45354d88ced93ca0e18e355fa3bf66ac0f1bbc18e

See more details on using hashes here.

Provenance

The following attestation bundles were made for modelship-0.1.0.tar.gz:

Publisher: ci-cd.yml on datalpia/modelship

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file modelship-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: modelship-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for modelship-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76468029544574085e4a305409dd9d4ea903750cdba7a883019fa63976917825
MD5 38ea6a183ac8becd29be65b0a6266ccf
BLAKE2b-256 b1b20a15e2141d4f88e49e8ea972f0ad52a9725224843bc84eead687420673f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for modelship-0.1.0-py3-none-any.whl:

Publisher: ci-cd.yml on datalpia/modelship

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page