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.5.0.dev20240702-cp311-cp311-manylinux_2_28_aarch64.whl (9.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.5.0.dev20240702-cp311-cp311-macosx_12_0_arm64.whl (6.5 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-manylinux_2_28_aarch64.whl (9.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-macosx_12_0_arm64.whl (6.5 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

secretflow_serving_lib-0.5.0.dev20240702-cp39-cp39-manylinux_2_28_aarch64.whl (9.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.5.0.dev20240702-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.5.0.dev20240702-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a88e253df2edb1c32b28e01ed473296ba11fd181c1ffa38b921bbb8719d1f6f9
MD5 3d19a5f7f671da82e57da57da7f06ffc
BLAKE2b-256 3aa8ede7f299a73340e17479156c328d1225acd48240c2e1c2183ebea529f013

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95660eea09c6bfe97e6452b9ba6a43b3332fca0609351f2fa46b50cec37c6fe7
MD5 22f495207426a20e8d8cbcc146e92305
BLAKE2b-256 fdba436c192f8f20595f3517d98c6af8db979a2a4c3f32e106e87f9485d70839

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a1ace1bb7e53e5cfc004e7c77b55f32115903e65adff7def4b7aba7e6c2e93eb
MD5 0be97e1430de5203bad5c1f050128f49
BLAKE2b-256 bf0e27836c713fad14514a6f596988db39d4d28c2efa03ad7c2f990bf64e8a61

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5958295c4894ac936f28145d2b0f9c56430872b50b25e78249509621abe93753
MD5 eb2660ba2addeeb1320c3546ab48509f
BLAKE2b-256 7be6de34de2e81bd56dab0024a9b682d02924ba93b679c256ea4a9563853e826

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34264ed0ea79cab099b2777a4b4d36ba8fba09ca80513c30a3facc40001c485b
MD5 c25416df456cd1c84a86c090cd8f5909
BLAKE2b-256 29899d671b5d5d006f4a2664eb127bd143a110c626d681fb1422876bcc3e937d

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 34a619887882209cfbccc17c03d3afd63bd116122f644b890990c8f0e0e58165
MD5 4ca78b06657001fc7c2e693f0919cf9e
BLAKE2b-256 aea24b4216a8906555a7190fc76adeaefc6599236c71189f62df0f74878827c6

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 87991e6ddf1ca3f75cfd8834d8e424cc80039f386f127079759dfee7c1e46f00
MD5 6682c4b7f7510dd3060947a7d81ba172
BLAKE2b-256 2c9d83789ab6e9e1b064af7626115845d293723ad8d255cb2d13410e9755e007

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6b5752e2182ca0ef2c95759637796003a78fc4ab519d8fb937ab3e3d3be5ab1
MD5 5011ca74d16cf803da44b42607a86906
BLAKE2b-256 e06392124003a0b14a91441c89669cbab37ca151cbf8fbdb039418270debae5c

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.5.0.dev20240702-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.5.0.dev20240702-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4b7fe011a2b37f1d3b4cabec2265075756d6a0887d681c99972e7fc1be6ca96e
MD5 00d7f2f1e37102b3f28538563161048f
BLAKE2b-256 79b2dd322b906316b92e72b1ddea429816e670798e5d1d76314b1407e6a4dea3

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