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.7.0.dev20240925-cp311-cp311-manylinux_2_28_aarch64.whl (30.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.7.0.dev20240925-cp311-cp311-macosx_12_0_arm64.whl (25.7 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-manylinux_2_28_aarch64.whl (30.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-macosx_12_0_arm64.whl (25.7 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-manylinux_2_28_aarch64.whl (30.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-macosx_12_0_arm64.whl (25.7 MB view details)

Uploaded CPython 3.9 macOS 12.0+ ARM64

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7b682e90c40bdbdbb1d7658577553b900da8ef832c7dc9755974e75f834ede64
MD5 ca4033262bfbc0b18541d392ade7af97
BLAKE2b-256 721d8dba846da3613baba0f9d6154b2bb621537cc2065f20bc67031f0e8bf129

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f71d75cb508c40b73e2f48ebcd0d2e11aa7baf1832f45d0e16ef16d961d90d53
MD5 52c52fe23adc42d9677bb56c3fe066b9
BLAKE2b-256 1609436361b7e62453f0841a5a42ffccbfa56afd293ddf180cfba732eedc23a0

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 6ecf68e34c9315798dca879c0d8f077fd230f555cd68b5363f84efc09b39e3ca
MD5 9686cd26a50684c6116edca02ddd01ae
BLAKE2b-256 4c8a1ea1580e7805490603354833633ae13ef51289c44842cdfbd478f6132978

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a4c2f8e2c0a0b42e11eef0c6e563d5bf50a05371a937f23492582cf10121ee87
MD5 bc559dac82bc3468339593f7063f76d7
BLAKE2b-256 dfe9167de3d6058ebd520f798f31c08366a69cfde8666efa54132832074041bf

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72a8ef689bd59077958e0b7567f2ca08ffe7ed355f7d4a6ad091db0940905073
MD5 ee9728694553f2d9a5c4d1e85979ddc5
BLAKE2b-256 79cd7b660aa3518885bf586c404cf61ddeb5e5cc41546fc716aaf847ac69126b

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 d0f76d9e0de912d24a584039990a672cda6794c89866f9784dd4b812643ba920
MD5 d78cb61ed8eafd3b61b0c28e4d8d7339
BLAKE2b-256 d30386c6f50ab755a10e800c2a5dfc98621b4d5a202e5c35c2d73795798d6bc9

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a1e9c054c588cc3f9419f2cffd67dd23ef28df0d433a42dd6624eaee15fdf948
MD5 d60e364af32815d973abe1ab4df10533
BLAKE2b-256 01c98417ac8f444549ba2f1cf225be9aa309daefc9cfd990600d12ad3092cf7e

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0fea5a8f6a89bdd8ec2afddc8a590bc0c17b696cca6b1657a7bbd24c6afdcba2
MD5 1aadb19083e76b1233b33d2631409aef
BLAKE2b-256 f362bb197bc823679445be28c4d08e82f12d8325f268bebbfc955ac70e993c31

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.7.0.dev20240925-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 86bd74938dcfbf965d816b1a7e3ee605b293cb0277f8a834a8c727d6c47d572b
MD5 3a73341bb11cab1404931e93c898fb62
BLAKE2b-256 0184e7d0549e4a2a33f6c2cde796ebc30d76fc61d81ea3bec1f05b6360e8b5d6

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