Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python SDK for KServe Server and Client.
KServe Python SDK can be installed by pip
or poetry
.
pip install kserve
To install Kserve with storage support
pip install kserve[storage]
Install via Poetry.
make dev_install
To install Kserve with storage support
poetry install -E storage
or
poetry install --extras "storage"
KServe's python server libraries implement a standardized library that is extended by model serving frameworks such as Scikit Learn, XGBoost and PyTorch. It encapsulates data plane API definitions and storage retrieval for models.
It provides many functionalities, including among others:
It supports the following storage providers:
GOOGLE_APPLICATION_CREDENTIALS
environment variable for user authentication.GOOGLE_APPLICATION_CREDENTIALS
is not provided, anonymous client will be used to download the artifacts.S3_ENDPOINT
, AWS_ACCESS_KEY_ID
, and AWS_SECRET_ACCESS_KEY
environment variables for user authentication./absolute/path
or file:///absolute/path
relative/path
or file://relative/path
pvcname
is the name of the PVC that contains the model.[path]
is the relative path to the model on the PVC.pvc://mypvcname/model/path/on/pvc
HTTP
, prefixed with http://
or HTTPS
, prefixed with https://
. For example:
https://<some_url>.com/model.joblib
http://<some_url>.com/model.joblib
For latency metrics, send a request to /metrics
. Prometheus latency histograms are emitted for each of the steps (pre/postprocessing, explain, predict).
Additionally, the latencies of each step are logged per request.
Metric Name | Description | Type |
---|---|---|
request_preprocess_seconds | pre-processing request latency | Histogram |
request_explain_seconds | explain request latency | Histogram |
request_predict_seconds | prediction request latency | Histogram |
request_postprocess_seconds | pre-processing request latency | Histogram |
KServe's python client interacts with KServe control plane APIs for executing operations on a remote KServe cluster, such as creating, patching and deleting of a InferenceService instance. See the Sample for Python SDK Client to get started.
Please review KServe Client API docs.
FAQs
KServe Python SDK
We found that kserve demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.