-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add region and hardware title getters, fix pagination
- Loading branch information
1 parent
69ecffd
commit 40d46a1
Showing
7 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/design-system/src/ui-helpers/getModelHardwareToolkit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const getModelHardwareToolkit = (hardwareName: string) => { | ||
switch (hardwareName) { | ||
case 'CPU': | ||
return 'CPU'; | ||
case 'NVIDIA_TESLA_T4': | ||
return 'Nvidia Tesla T4'; | ||
case 'NVIDIA_L4': | ||
return 'Nvidia L4'; | ||
case 'NVIDIA_A100': | ||
return 'Nvidia A100'; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/design-system/src/ui-helpers/getModelRegionToolkit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const getModelRegionToolkit = (regionName: string) => { | ||
switch (regionName) { | ||
case 'REGION_GCP_EUROPE_WEST4': | ||
return 'GCP Europe-West4' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { getModelInstanceTaskToolkit } from "./getModelInstanceTaskToolkit"; | ||
export { getModelDefinitionToolkit } from "./getModelDefinitionToolkit"; | ||
export { getPipelineModeToolkit } from "./getPipelineModeToolkit"; | ||
export { getModelRegionToolkit } from './getModelRegionToolkit'; | ||
export { getModelHardwareToolkit } from './getModelHardwareToolkit'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters