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.2.0.dev20240304-cp311-cp311-manylinux_2_28_aarch64.whl (8.9 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.2.0.dev20240304-cp310-cp310-manylinux_2_28_aarch64.whl (8.9 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.2.0.dev20240304-cp39-cp39-manylinux_2_28_aarch64.whl (8.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

File details

Details for the file secretflow_serving_lib-0.2.0.dev20240304-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240304-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 08b640ef7172fdd84d484cbd56abbd02938a3a579c47a88280f9757aebaaeb5c
MD5 c2af1e148c8fcda185a6d4115269dc7a
BLAKE2b-256 da54985032a4af5814988d98abf93e5b71700c2e238fbe24899c3aef6736a811

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.2.0.dev20240304-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240304-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0145d915a6122e3f2662546541bb5d9e53d45fa03d7af8c6e656158f5cf569e9
MD5 b21485cbeaf2328ef6a661051ece1efd
BLAKE2b-256 25e50ce6107c17749082486f3b0744b9dc4350c6ab651baed317b4fcbcb77d83

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.2.0.dev20240304-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240304-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9b3c6abaa15edb9eb1761c92c51049ba5c7d642a0b8ead754f5c0ceb99a3aac8
MD5 c3efd05bcccbb329e9ce060182f57483
BLAKE2b-256 6f38a1e9d83367cef5069a6cdf2a7a338437a9c4b1fef490aae86f546015a372

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.2.0.dev20240304-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240304-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cdbb1fe7ee2cec1a7ed3735807cb194dbb738b164c6756de161345322c6b3bf0
MD5 1688c0846a2fc477081c65a589c11a25
BLAKE2b-256 84c7f64509d2c66d9d40fc1720b5f90369c6f233473e371014710a5622f1a662

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.2.0.dev20240304-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240304-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 96cd95c8a4dbc9789e3e0761457dc8f0037e73bfc03025e34f4eab32da26c839
MD5 b5ce801d5b7455557a965608bb8e8ecc
BLAKE2b-256 fff5b11f2d137bc8cc9fe8005f0045c8cf33581fa367cf0217fb366a4cca979b

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.2.0.dev20240304-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240304-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8643aebd66d38fa6cc6f9cb7dff5eca22468e1d83a9f93bdb7fefd0aac3be50
MD5 3571e1db5e2717a1d21345b6df4ef9d1
BLAKE2b-256 3908ab68d5f36860a886aea5b9ba1a40390921afec5c277419608a6e55c3c267

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for secretflow_serving_lib-0.2.0.dev20240304-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e01c9564629378cd9703028c372658d03a511e16a1a80fc04e569fbb4e9b76f2
MD5 7abae9ab4fa4801c911091b99e2430c4
BLAKE2b-256 121aceac2926c2dc94ee1dd2b0090f54e112d8f30e6868a8bf7c91e6eb499715

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