Skip to content

Wrapture lets you go from a Python-trained model to deployable JavaScript with a single command. It generates TypeScript bindings and a Web/Node-compatible wrapper, using WebGPU/WASM-ready ONNX runtimes.

License

Notifications You must be signed in to change notification settings

robertocenteno/wrapture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🌟 Wrapture: Seamless Model Deployment from Python to JavaScript

Wrapture Logo

Welcome to the Wrapture repository! This project simplifies the process of deploying machine learning models trained in Python to JavaScript environments. With just a single command, you can generate TypeScript bindings and create a Web/Node-compatible wrapper using ONNX runtimes that are ready for WebGPU and WASM.

Table of Contents

Features

  • One Command Deployment: Transition from Python to JavaScript effortlessly.
  • TypeScript Bindings: Automatically generate TypeScript bindings for your models.
  • Web/Node Compatibility: Create wrappers that work seamlessly in both web and Node.js environments.
  • WebGPU and WASM Ready: Utilize the latest technologies for efficient model execution.
  • Support for ONNX: Leverage the ONNX runtime for model inference.

Getting Started

To get started with Wrapture, follow these steps:

  1. Install Dependencies: Ensure you have the necessary tools installed.
  2. Prepare Your Model: Train your model in Python and export it in ONNX format.
  3. Run Wrapture: Use the command line to generate your JavaScript deployment.

Installation

You can install Wrapture using npm. Open your terminal and run:

npm install wrapture

Usage

After installing, you can deploy your model with a single command. Here’s how:

  1. Export Your Model: Ensure your model is exported as an ONNX file.
  2. Run Wrapture: Use the following command:
wrapture deploy path/to/your/model.onnx

This command will generate the necessary TypeScript bindings and wrappers.

Topics

Wrapture covers a range of topics relevant to modern machine learning and deployment:

  • JavaScript
  • Machine Learning
  • Model Conversion
  • ONNX
  • PyTorch
  • Quantization
  • Simplifier
  • TypeScript
  • WASM
  • WebGPU

Contributing

We welcome contributions! If you want to contribute to Wrapture, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your branch to your forked repository.
  5. Open a pull request.

License

Wrapture is licensed under the MIT License. See the LICENSE file for details.

Releases

To check for the latest releases, visit the Releases section. You can download the latest version and execute it to start deploying your models.

Contact

For any inquiries or feedback, feel free to reach out:


Thank you for checking out Wrapture! We hope this tool simplifies your model deployment process. For more details, visit the Releases section.

About

Wrapture lets you go from a Python-trained model to deployable JavaScript with a single command. It generates TypeScript bindings and a Web/Node-compatible wrapper, using WebGPU/WASM-ready ONNX runtimes.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •