Skip to content

Commit

Permalink
Set resources for inferencegraph example (#322)
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <sivanantham.chinnaiyan@ideas2it.com>
  • Loading branch information
sivanantha321 authored Dec 31, 2023
1 parent a001da1 commit 271c9fe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/modelserving/inference_graph/image_pipeline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,20 @@ spec:
name: dog_breed_classifier
data: $request
condition: "[@this].#(predictions.0==\"dog\")"
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 1
memory: 1Gi
EOF
```

!!! Note
For more information on InferenceGraph Spec, See the [reference docs](https://kserve.github.io/website/latest/reference/api/#serving.kserve.io/v1alpha1.InferenceGraph).

The `InferenceGraph` defines the two steps and each step targets the `InferenceServices` deployed above. The steps
are executed in sequence: it first sends the image as request to `cat-dog-classifier` model and then send to the
`dog-breed-classifier` if it is classified as a dog from the first model.
Expand Down

0 comments on commit 271c9fe

Please sign in to comment.