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.4.0.dev20240606-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.4.0.dev20240606-cp311-cp311-macosx_12_0_arm64.whl (6.5 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

secretflow_serving_lib-0.4.0.dev20240606-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.4.0.dev20240606-cp310-cp310-macosx_12_0_arm64.whl (6.5 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

secretflow_serving_lib-0.4.0.dev20240606-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.4.0.dev20240606-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.4.0.dev20240606-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6b477e8e69f67664c5b2e5c7f6c377035942b8c76dd87375c1b134d10b22701a
MD5 c06bb128b714986bec95ef86d9fe3d22
BLAKE2b-256 85a0faf9b689d39adc3c4beca4ac2f73fa7ca446401a252cb9bdc9c1461a5568

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 960804a306f84c1dbabd403db039e9ded307eb80e4f8436181a89c80e9fd566a
MD5 62891f6a3404df7615a0d5703dc4522c
BLAKE2b-256 ad656f73362abeadb6f6aa47ced71fb49cb4f4bf053cd5458dad31e5eddf46bb

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 aca7080e20ebac711bf814f7a28b9ed3a90c335a01124802409c50dac2aefd70
MD5 725b344862d992049674a42c5f71e828
BLAKE2b-256 ee19f0c153c6662058ebdcda7b4079e4c62b81d6b42265499a2ba07f6f6d48e1

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 56fec16b31b4a4c09ec2ff895b271c34e07edcacebe23dc8059659593c1e55d3
MD5 30718249730ba9a2cda061d74358193d
BLAKE2b-256 8a46ed9464dfb1e1eafb910c7e3e7502ef500c2497f97bf28f0d35ee29be654f

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4395013e2cd28a417c84959dd898a5792cf486af87fbc704ebd46c155113b85b
MD5 771ceb83032a827315eebc9e5d3db75e
BLAKE2b-256 1e5640572954bf5106aed49c39b561cce03939c5a389369e5258b9a22aa80d96

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 e6aebbb529a9f3f176205b7da769c48644f68b73a1118e550088484d70ce1e8a
MD5 2617edb3b0a5fe325fd76f18b9d83f03
BLAKE2b-256 a8c31815f0bea3bb4a8d08be87c43e2fafea3a5aebe2ff4827af6ba9ce6b8c05

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3ecb328ad5798344fa50ca972ac1045778af62581b06b4c1371f42bc440b6b27
MD5 2e172612fb74413d4fefa066f4d371c7
BLAKE2b-256 f5e4910081daf0e9dba1c0bb373a79673d7382d5616c2fb13e112f067a879bcb

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33e8296d3381920967a0d3f89b6e0816d32d6d61e1a2ae11b0519c4e8db71a68
MD5 d336adca39c85f6af87a616150f601bf
BLAKE2b-256 98efc33b7b5b6b6d10b95c7376905ef52564a718e201dedae64dc0932efffbae

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.4.0.dev20240606-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.4.0.dev20240606-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 66ab049037df6328c7b771e0b1ff2eb52d37274335957e58e5fd4106da6be800
MD5 42a090c70c92a8eee1081c1d5aff1f42
BLAKE2b-256 ae763fd016cce666457323ca68df3123948887d54a0dd462ab795b2a0a034bb9

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