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

If you're not sure about the file name format, learn more about wheel file names.

secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-manylinux_2_28_aarch64.whl (32.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-macosx_12_0_arm64.whl (23.8 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

File details

Details for the file secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3f62083d780851b0397e03d2c34c76bc68c7c22546b27aeba3caf48700f464d7
MD5 5bce03049dfe428d9524e69e68d5c473
BLAKE2b-256 2bd4e9fbe2c5914bcb8cf519a7f15897ed9f2f0b6e32c3b0b976abffbce9a32a

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27e33ee795269afad4b5e572d23549ca1b485bbc54fd6ee48360ac995e9d6e23
MD5 0053f9db1d29c850dacc2a16c2943225
BLAKE2b-256 35f85cbeffe70b627a75ce2ef64cd33f2dc87db863158ce5c7fd41e248cce5ca

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.10.0.dev20250317-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 61c099ff77f9707d581e613f75e60a4070628d4f75b117749995af825954931f
MD5 4bdceaf4ec96d66a742248ea907fc4aa
BLAKE2b-256 5a717c220c1526a399239b48dd7acc941a7e98386c9c85d2e1863653edf4ab70

See more details on using hashes here.

Supported by

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