SkyFi ModelShip - **SkyFi Insights** partners integration library.
Project description
SkyFi ModelShip library
Introduction
SkyFi ModelShip is a Python library designed to help Skyfi Insights partners integrate privately and securely their ML models into SkyFi's infrastructure. It will simplify and optimize the service communication and provide standard input and output parameters to speed up the model development and shorten the time to market for our Insights partners. Become a partner for our Insights solution on bizdev@skyfi.com
Key Features
-
Easy Integration: SkyFi ModelShip will help you integrate your machine learning model into SkyFi's infrastructure using common application structure and input/output parameter types.
-
Model Versioning: The integration can call an optional bootstrap method, where each integration can decide to check for new versions, download new weights or take other model preparation steps.
Installation
You can install SkyFi ModelShip from PyPI using pip:
pip install skyfi-modelship
Getting Started
- Import the necessary modules:
import skyfi_modelship as skyfi
- Create a SkyFi application and decorate your functions:
app = skyfi.SkyfiApp()
@app.bootstrap
def download():
"""Download the model, Optional"""
logger.info("Downloading model...")
@app.inference
def exec(fl: skyfi.Float) -> skyfi.ImageOutput:
logger.info("Running inference... ")
return skyfi.ImageOutput(...)
- Create a
Dockerfile
for your project:
FROM python:3.9.5-slim-buster
WORKDIR /app
COPY requirements.txt main.py ./
RUN python -m pip install --no-cache-dir -v -r requirements.txt
CMD ["python", "main.py"]
- Send your container image to SkyFi Please contact bizdev@skyfi.com and discuss how we can privately access the container image.
Examples
Check out the example directory to see a working example and get inspired!
License
This project is licensed under the MIT License.
Contact
If you have any questions or feedback, feel free to reach out at bizdev@skyfi.com.
Unlock the true potential of your models with SkyFi Insights - Get started now!
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
Hashes for skyfi_modelship-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e98a3feaa5cee5382cc001fdf143827b674c83fe71482de817a1f1457baf259 |
|
MD5 | d20a705b1f289ac0467cd92449f91289 |
|
BLAKE2b-256 | b91945a27b5c6c77053f55e5498e5bd8ab11ff1990eeae0fd26d206b7e79c11b |