Ship machine learning models in minutes, not months
Project description
🚢 modelship
Ship machine learning models in minutes, not months
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:
housing: housing price prediction model (regression)sentiment: movie review sentiment analysis (binary classification)
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:strtype:Literal["float32", "string"]shape:list[int | None]- (optional)
min:float - (optional)
max:float - (optional)
step:float - (optional)
defaut:float | str
Output fields:
name:strtype: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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modelship-0.2.3.tar.gz.
File metadata
- Download URL: modelship-0.2.3.tar.gz
- Upload date:
- Size: 6.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ad7a4d7d7de6653da26be009b233a172d624cca629fceaeeae61d6db8659df7
|
|
| MD5 |
e0f07c602d43772882837ce5b98b8547
|
|
| BLAKE2b-256 |
017499f67e2b256a16d6a33e93aaa4e1b0de97b61533366d429a606393fafdfe
|
Provenance
The following attestation bundles were made for modelship-0.2.3.tar.gz:
Publisher:
ci-cd.yml on datalpia/modelship
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modelship-0.2.3.tar.gz -
Subject digest:
9ad7a4d7d7de6653da26be009b233a172d624cca629fceaeeae61d6db8659df7 - Sigstore transparency entry: 953535940
- Sigstore integration time:
-
Permalink:
datalpia/modelship@52595ae511945163bde611c4d2a4b4e251efa2fe -
Branch / Tag:
refs/tags/0.2.3 - Owner: https://github.com/datalpia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@52595ae511945163bde611c4d2a4b4e251efa2fe -
Trigger Event:
push
-
Statement type:
File details
Details for the file modelship-0.2.3-py3-none-any.whl.
File metadata
- Download URL: modelship-0.2.3-py3-none-any.whl
- Upload date:
- Size: 6.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a638d8a9b65194f3dd6d45dea0b0ae52bf29421c60fa431ddfbe9b4018fe47d3
|
|
| MD5 |
6d66404ea93b6c7119267b656aea28e1
|
|
| BLAKE2b-256 |
9f638f44ffaa718cddeae9ac630c2bc62515999343acb1336bde2a4112a9a0a8
|
Provenance
The following attestation bundles were made for modelship-0.2.3-py3-none-any.whl:
Publisher:
ci-cd.yml on datalpia/modelship
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modelship-0.2.3-py3-none-any.whl -
Subject digest:
a638d8a9b65194f3dd6d45dea0b0ae52bf29421c60fa431ddfbe9b4018fe47d3 - Sigstore transparency entry: 953535941
- Sigstore integration time:
-
Permalink:
datalpia/modelship@52595ae511945163bde611c4d2a4b4e251efa2fe -
Branch / Tag:
refs/tags/0.2.3 - Owner: https://github.com/datalpia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@52595ae511945163bde611c4d2a4b4e251efa2fe -
Trigger Event:
push
-
Statement type: