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 details)

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 details)

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 details)

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 details)

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 details)

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 details)

Uploaded CPython 3.9 macOS 12.0+ ARM64

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d42b3f9dc12bc190befe4cc8b67a1fc147b1cee17ca25ecc9a0a7ca582c9f6ed
MD5 ec848627a63ac12cb8db0c1d80dabdbc
BLAKE2b-256 481acf149aeb2c08f89c9f2e61e26dcb1722824183ac8d9e2e211c9160fd4ae1

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5efa5e719088dd0bee92872a90f885fd281bb330098ea261348007a10337f2dc
MD5 48bd7db926521a96c04d581468d00aa0
BLAKE2b-256 9073de943eb3a8be2e67448d8efd12b4c927b2f37b1a357ebf877c8ef3aee60a

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 ed298834228a5fee1a89d9eaf46a58a6612404c9680045ca735801f50e5bc4d6
MD5 d3ad9ee72b6d267ed680faa56c110649
BLAKE2b-256 351beac38b53b3f406437ef160e7ef24283042f58b84e975416861ff501ee0de

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6443313054e3879287899190b485f5abe31d11b28d2ea6ed5a24526e009f96ef
MD5 be2ea8a01892fae35db83c61ce0c3f2b
BLAKE2b-256 7ee46a1385d1bcb1cd6520352d64b64348fe099e70db2493bf0b7421a42424e3

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b1da6f402814c49b1f87ce7e9d050838af218b275addbaea03ef28158e4b70b
MD5 a78b8623021b5814897d95e36ac922da
BLAKE2b-256 635b9c5620d165507e8bc133dd2ffb92d515c96295c5121e6fbfe6bc806c5003

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c47cbc01d25545ea81c7adb5f47106c75a642c207e9b009b5a3e1e0cc846e401
MD5 eb87aba9f1451920edbc765ec0bf5b10
BLAKE2b-256 04f4972aa0ca8c389dfb537482875ef302c15a8eab705cd5f0f86e99283fa281

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 55bda39c234846054d7b989e4b89e3b945b1c121f59046f0ffa499472a4db9d4
MD5 56be24e712927d916043d3d69e0e31a8
BLAKE2b-256 c03d40533d0f5b0d38b8fde81fe6879165175631cea08cfc69648cee58ac3b2c

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a07c3d62ebdcd5511433963034af5f77f773cc6358fcbe15a44f604264bc858b
MD5 65cf91a90a8cb51ff30febfb8d5926b4
BLAKE2b-256 2482d83a631d18dc3fa2595d862f6ed44ac2442072a0371660b765f685613598

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.3.0.dev20240320-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 cc27f7c898b2bd6cc1abb4d74fd4166f702398464abb91364cb24a04bf87baaa
MD5 a96a61494ab35327b20d68eec7a0344b
BLAKE2b-256 49ba23f08f980d5c4dc6b36faa1bb5e6697a64f7ae7b2b972059dfd4ff9b52ed

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