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.8.0.dev20241119-cp311-cp311-manylinux_2_28_aarch64.whl (31.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.8.0.dev20241119-cp311-cp311-macosx_12_0_arm64.whl (27.1 MB view details)

Uploaded CPython 3.11 macOS 12.0+ ARM64

secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-manylinux_2_28_aarch64.whl (31.6 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-macosx_12_0_arm64.whl (27.1 MB view details)

Uploaded CPython 3.10 macOS 12.0+ ARM64

secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-manylinux_2_28_aarch64.whl (31.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-macosx_12_0_arm64.whl (27.1 MB view details)

Uploaded CPython 3.9 macOS 12.0+ ARM64

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 eab083c6eabea8abea031cba5e9c4219f8bd5a7a5e60c34b364e8ebe977ce096
MD5 6c6825544c1d169e1f0269dc475ab83c
BLAKE2b-256 4edc566cc496afdbd61735c4a52425fd4ca2fb9bce4c67abb32f30c7a88a08e8

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71100b44fc26697d36e716baf966e7ba961ec1d911e671d113643da9946e040f
MD5 69efba1a0ac1775c04daa08f7cff7baa
BLAKE2b-256 42756596ac4d39d0d501cc330d6014c8286da984fd5acbd8aa2aaed96f0eab5e

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp311-cp311-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp311-cp311-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 df1f865a8123a5c69d786ced3a7a5d3c5036eef98eb0ddaf2362ca003f1a70b6
MD5 c3029c0fbd926bb736dc0c251805d91d
BLAKE2b-256 24daf995775d1a46c9f9004703cd448a56c0684dae9814bf83f57aba66081aa8

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 95493077143140a92724f971eee1d8fbb1e2861e99f4dd9caee3d1ad8afca53a
MD5 af261d9f3816b3faa76c3ddcb7bb0907
BLAKE2b-256 c0f8a5c8044b8689142b114ecd850c800ea35c0b9a6378b853081cc5273b327f

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2bf8e73c0edd0f9f5f41581038847164bd9abb798b71c5a9348cb17a9154360e
MD5 88259fb4359f31e4e378c17a490d6b1a
BLAKE2b-256 d1d3f6682303b7d44111ce630363eba697fedaa1cce419e1f84b4e17cd4a72e3

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c43592e605f14114357707de234b7e7a5e557f5f3a107124224ff6927617b7c9
MD5 d50bd7b82859795f0ae24c7918e5cd5b
BLAKE2b-256 631af7a61ef4d76b6e59efd01cdc3099e9bd6841dfa60b4b1a60949268efaf5b

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 02e85f048e25e6b9d4361f834ad371aeee556208dad19651b5e783777f22c027
MD5 cec28d3839ea43a45c2c821932b2a884
BLAKE2b-256 13acc47dc77f6a1287abe0195fef5b0535797d2fa9069bf1011ba50107e3bdb7

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 14fd022b8714c0837e010e37786f8c578d92aef3277f8ca87256c486577678bf
MD5 0d5c716ed83807cd4c8c13cb3f560f11
BLAKE2b-256 2ec79820db1139d8c8d6e937d6691e37d8e86e1aecf6bfd9a0ecb927d727cc8b

See more details on using hashes here.

File details

Details for the file secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for secretflow_serving_lib-0.8.0.dev20241119-cp39-cp39-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 2c2caf2bfed3ec65d9311024047dd26187e95793574b2101df63a2b9a56cb950
MD5 50ba3bf98c2b5ce36d8b7a11d0ec9a7b
BLAKE2b-256 b152535656d1594bab56c179e3510aa395e29748a224ed6082da9c2dfe08154a

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