Serving is a subproject of Secretflow that implements model serving capabilities.
Project description
SecretFlow-Serving
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file secretflow_serving_lib-0.2.0.dev20240227-cp311-cp311-manylinux_2_28_aarch64.whl
.
File metadata
- Download URL: secretflow_serving_lib-0.2.0.dev20240227-cp311-cp311-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 8.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b38750e1bdb6a5c80d79ffd41c289b018ff9d10e0136750b56a15a8cf8244e6 |
|
MD5 | 02ce3140af36fc8724e51167dc87c7fa |
|
BLAKE2b-256 | 62e7d6ebd101875b2aa24e17cd6c3c9dac0d445a53a1108f83d5c0ad07b4f1d5 |
File details
Details for the file secretflow_serving_lib-0.2.0.dev20240227-cp311-cp311-manylinux2014_x86_64.whl
.
File metadata
- Download URL: secretflow_serving_lib-0.2.0.dev20240227-cp311-cp311-manylinux2014_x86_64.whl
- Upload date:
- Size: 9.2 MB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84c6c84e3de65a993b9d0e1498c054cd4a1041a0415957f06317f20ff709c629 |
|
MD5 | 7d61bb71ab0cb2aea28a8b260622aabf |
|
BLAKE2b-256 | 619119c878ad390f862744f7b7bd6bd8d5cfa05f17bf5c602981d4f48200eece |
File details
Details for the file secretflow_serving_lib-0.2.0.dev20240227-cp310-cp310-manylinux_2_28_aarch64.whl
.
File metadata
- Download URL: secretflow_serving_lib-0.2.0.dev20240227-cp310-cp310-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 8.9 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 704c5b070ea3e40efec1c6a3c9da194294f69f539c9a1c1724404f2884314273 |
|
MD5 | a87503a47993bbac4f49f1fd1b6fd4c5 |
|
BLAKE2b-256 | 89897a979a5f601227f0d471ac491eb00238650c45bba8832b7df6e6e8718340 |
File details
Details for the file secretflow_serving_lib-0.2.0.dev20240227-cp310-cp310-manylinux2014_x86_64.whl
.
File metadata
- Download URL: secretflow_serving_lib-0.2.0.dev20240227-cp310-cp310-manylinux2014_x86_64.whl
- Upload date:
- Size: 9.2 MB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e6589fa61d80e825917badf3afc4847b61161b1ef106f82cf97750f616c8a4c |
|
MD5 | 64f9387edd4d06dfa106d6773c646d81 |
|
BLAKE2b-256 | 4066a1fd779d86671d8bac6fa4103b85c2dc22eb47a836a9c5e8d45a5c1df563 |
File details
Details for the file secretflow_serving_lib-0.2.0.dev20240227-cp39-cp39-manylinux_2_28_aarch64.whl
.
File metadata
- Download URL: secretflow_serving_lib-0.2.0.dev20240227-cp39-cp39-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 8.9 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31583a7fe198d322eac7e15ab67d4bb01ec485b59c924c85d8daf7d1fa8530ba |
|
MD5 | bc592446021e57552ae43a73f96f0d01 |
|
BLAKE2b-256 | 29c3afae67475dbd39459c1d24cc3cdab24037d0f4d61a9755a851c859914f1e |
File details
Details for the file secretflow_serving_lib-0.2.0.dev20240227-cp39-cp39-manylinux2014_x86_64.whl
.
File metadata
- Download URL: secretflow_serving_lib-0.2.0.dev20240227-cp39-cp39-manylinux2014_x86_64.whl
- Upload date:
- Size: 9.2 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 259e690982f6c9d2328dd3398728826e5bda9d0c18952cd350de8191717e3ccc |
|
MD5 | 9d4a7e3614258005aec09eb40fbf5906 |
|
BLAKE2b-256 | 3ed74040b2e847d67f0e84874b5c23014783981197f018aa0e76a4e23a521b5b |
File details
Details for the file secretflow_serving_lib-0.2.0.dev20240227-cp38-cp38-manylinux2014_x86_64.whl
.
File metadata
- Download URL: secretflow_serving_lib-0.2.0.dev20240227-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 9.2 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7009b7d91c80ae978f2233e35e45d2304748e2eafddde892e2642d8cca92d9 |
|
MD5 | 266593eb5749d9e4b5fe3c0e10859371 |
|
BLAKE2b-256 | 2dd58e1c9f147abb939cccc874ea750a03394582d432220c6b5da301fc2ab822 |