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

If you're not sure about the file name format, learn more about wheel file names.

secretflow_serving_lib-0.9.0b0-cp311-cp311-manylinux_2_28_aarch64.whl (31.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.9.0b0-cp311-cp311-macosx_12_0_arm64.whl (27.2 MB view details)

Uploaded CPython 3.11macOS 12.0+ ARM64

secretflow_serving_lib-0.9.0b0-cp310-cp310-manylinux_2_28_aarch64.whl (31.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.9.0b0-cp310-cp310-macosx_12_0_arm64.whl (27.2 MB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

secretflow_serving_lib-0.9.0b0-cp39-cp39-manylinux_2_28_aarch64.whl (31.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.9.0b0-cp39-cp39-macosx_12_0_arm64.whl (27.2 MB view details)

Uploaded CPython 3.9macOS 12.0+ ARM64

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5056b1f7c42d9e6d82ed1e81f7229c601a04afdee95117b0834fd31145e82f6e
MD5 832ea66c09c4c942aa6c87252daf7734
BLAKE2b-256 0fa8c9a4e68af535746282bbc16a1e8c95c29c14cb522753fe20656eb6c01e32

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 57483426cc8d8a41e14201137dbc00df5283aed4bd2b0bf767dc7915b05f49a2
MD5 61aa818aac04a381ae1e5cf4e3a9489e
BLAKE2b-256 0e35ae70e8c30fcd6348b65b735a8100910d18dafa8fce947cee998b928dbc9f

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 8d240448ec2c199ca68efdbf6e03cd55cc5828d6f01f5adff4f10eca06734167
MD5 e925d1e918a787570a268c159b0d9ae3
BLAKE2b-256 c480522fd33734aeedc1cf3b47f92c5ea5ea12804aefae887127ca763a8aab80

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 99bc42ce74cc9897e4974cf5f9281f7cf2d82e631bdad8f3bb84ffb9a24bd24f
MD5 cfde3c009bcda45482ed6f6a7bee109c
BLAKE2b-256 8211d07d62e5eda875360c6dbdc374e7c9e907128ac6c4c37bf7006ad90ef284

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 06d58690d72467b736b8b506e81ce967bf2737236304f3ecf72daa7ae8e78b55
MD5 2a4f560485e5cd704b6d3f13124ddf07
BLAKE2b-256 5b45e19ce8ee3dc39c7f9366ba772beda7430a01d553a291ff48d12a6b395c58

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 263b17f2aeeac0910b2748dc20f97873391c4e765f835a26d026b7699fd788e4
MD5 ec651b533739d6a3e27b98727b17cf2e
BLAKE2b-256 6953d0558be15731be28dfb5815c48b9e82868b0f52d2f8108867dfca8f2caf6

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fd6cde50afa2d03f98f96dceb4156977e67457372556823fde31cf89882b92ff
MD5 66cedcbada0969e0e6b9ae792a3fb0df
BLAKE2b-256 dbc53c180199dcac3285f78e1e25f88c329bfd527438cd3442147103a71bf1b2

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1f2937b3f02284fb90fc8f0cfa4c6007fc0481b1ec521193d133e0eff63fdb6
MD5 55d4978ff4f655c86a6fd3b04607001e
BLAKE2b-256 8f4ac1d18bcfe67e6c6251c926b8e56c4907ff1d7c3d62f9e0e09baa8d4af61b

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.9.0b0-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.9.0b0-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4cf109e7835959ad70bbbf16c97c1b3f28a5f502ed4aaf6dd1466c0327980183
MD5 f55b5ad3dd0ff46731407d4da05b0457
BLAKE2b-256 2e0cf6ae1d8e416ae7ad3313e451a5f0383c036a6ee4cbf8c65a1931c6e6b178

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page