Skip to main content

Serving is a subproject of Secretflow that implements model serving capabilities.

Project description

SecretFlow-Serving

CircleCI

SecretFlow-Serving is a serving system for privacy-preserving machine learning models.

Serve a model

# Download the Secretflow Serving Docker image
docker pull secretflow/serving-anolis8:latest

# Start Secretflow Serving container and open the REST API port
cd examples

docker-compose up -d

# Query the model using the predict API
curl --location 'http://127.0.0.1:9010/PredictionService/Predict' \
    --header 'Content-Type: application/json' \
    --data '{
        "service_spec": {
            "id": "test_service_id"
        },
        "fs_params": {
            "alice": {
                "query_datas": [
                    "a"
                ]
            },
            "bob": {
                "query_datas": [
                    "a"
                ]
            }
        }
    }'

Contribution Guidelines

If you would like to contribute to SecretFlow-Serving, please check Contribution guidelines.

This documentation also contains instructions for build and testing.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-manylinux_2_28_aarch64.whl (8.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-macosx_12_0_arm64.whl (6.5 MB view hashes)

Uploaded CPython 3.11 macOS 12.0+ ARM64

secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-manylinux_2_28_aarch64.whl (8.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-macosx_12_0_arm64.whl (6.5 MB view hashes)

Uploaded CPython 3.10 macOS 12.0+ ARM64

secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-manylinux_2_28_aarch64.whl (8.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-macosx_12_0_arm64.whl (6.5 MB view hashes)

Uploaded CPython 3.9 macOS 12.0+ ARM64

Supported by

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