Skip to content

Commit

Permalink
NIM Model size propagated to the expanded section (#3310)
Browse files Browse the repository at this point in the history
* fix: RHOAIENG-14039 - displaying the correct Model server sizes on the expanded section

Signed-off-by: Olga Lavtar <[email protected]>

* fix: changed to submit as KServe

Signed-off-by: Olga Lavtar <[email protected]>

---------

Signed-off-by: Olga Lavtar <[email protected]>
  • Loading branch information
olavtar authored Oct 8, 2024
1 parent d857dec commit 25e1a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ServingRuntimeDetails: React.FC<ServingRuntimeDetailsProps> = ({ obj, isvc
const enabledAcceleratorProfiles = acceleratorProfile.acceleratorProfiles.filter(
(ac) => ac.spec.enabled,
);
const resources = obj.spec.containers[0].resources || isvc?.spec.predictor.model?.resources;
const resources = isvc?.spec.predictor.model?.resources || obj.spec.containers[0].resources;
const sizes = getServingRuntimeSizes(dashboardConfig);
const size = sizes.find(
(currentSize) => getResourceSize(sizes, resources || {}).name === currentSize.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const DeployNIMServiceModal: React.FC<DeployNIMServiceModalProps> = ({
NamespaceApplicationCase.KSERVE_NIM_PROMOTION,
projectContext?.currentProject,
servingRuntimeName,
true,
false,
);

const submitInferenceServiceResource = getSubmitInferenceServiceResourceFn(
Expand Down

0 comments on commit 25e1a44

Please sign in to comment.