hops-online-inference

Deploys ML models and runs online inference in Hopsworks via Python SDK.

15|32|Updated Nov 13, 2021
One-click install
npx skills add https://github.com/logicalclocks/hopsworks-api --skill hops-online-inference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hops-online-inference
Source: https://github.com/logicalclocks/hopsworks-api/tree/main/skills/hops/hops-online-inference
Command: npx skills add https://github.com/logicalclocks/hopsworks-api --skill hops-online-inference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires hopsworks, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill allows for deploying models and conducting online inference directly in the Hopsworks environment, streamlining the process of real-time model deployment and prediction.

Core Features & Use Cases

  • Real-time Model Deployment: Deploy models and create running KServe endpoints for immediate inference.
  • Feature Store Integration: Utilize the Hopsworks Feature Store for online feature lookups during inference.
  • Predictor Scripting: Execute custom Python scripts to extend functionality and control model prediction logic.
  • Use Case: When building a recommendation engine for e-commerce, deploy a trained model using this Skill to provide real-time product recommendations to users.

Quick Start

Deploy a trained model and make a prediction by executing: model.deploy('recommendation_service', script_file='predictor.py')

Frequently Asked Questions about hops-online-inference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a machine learning model for real-time predictions in Hopsworks?

To deploy a model for real-time predictions in Hopsworks, use the Python SDK to execute model deployment scripts, which creates running KServe endpoints for immediate online inference.

Can I use Hopsworks Feature Store for online feature lookups during model inference?

Yes, online inference in Hopsworks supports Feature Store integration, allowing you to retrieve and utilize online features dynamically during real-time model prediction execution.

How do I execute custom Python logic for real-time model prediction?

You can execute custom Python logic for real-time prediction by specifying a script file, such as predictor.py, during the model deployment process to control and extend inference functionality.

What is needed to set up online inference for machine learning models in a cloud environment?

Setting up online inference requires the Hopsworks platform environment and the Python SDK to deploy trained models, create KServe endpoints, and run custom prediction scripts for real-time applications.

Does Hopsworks support deploying recommendation engines for immediate inference?

Yes, Hopsworks supports deploying recommendation engines by utilizing the Python SDK to deploy trained models and create running endpoints that provide immediate, real-time product recommendations.