Skip to content

Commit 992a44d

Browse files
[Core] Add L4 to accelerator_registry (skypilot-org#2724)
* Add L4 * add note
1 parent a3311f6 commit 992a44d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sky/utils/accelerator_registry.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
# The list is simply an optimization to short-circuit the search in the catalog.
1313
# If the name is not found in the list, it will be searched in the catalog
1414
# with its case being ignored. If a match is found, the name will be
15-
# canonicalized to that in the catalog.
15+
# canonicalized to that in the catalog. Note that this lookup can be an
16+
# expensive operation, as it requires reading the catalog or making external
17+
# API calls (such as for Kubernetes). Thus it is desirable to keep this list
18+
# up-to-date with commonly used accelerators.
1619
# 3. (For SkyPilot dev) What to do if I want to add a new accelerator?
1720
# Append its case-sensitive canonical name to this list. The name must match
1821
# `AcceleratorName` in the service catalog, or what we define in
@@ -37,6 +40,7 @@
3740
'P40',
3841
'Radeon MI25',
3942
'P4',
43+
'L4',
4044
]
4145

4246

0 commit comments

Comments
 (0)