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 Distribution

File details

Details for the file secretflow_serving_lib-0.2.0.dev20240108-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240108-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 193e47386689d1b53dd298fbf91b315b0effed17abfe1efac3ef3fc50af87a9e
MD5 cbdb88ba22aac154876d0afac0da990c
BLAKE2b-256 0629e42fd1b2c8bfa184214a6f23baa1bae52258fc301b233e140533b0d98935

See more details on using hashes here.

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