-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OCI] Set default image to ubuntu LTS 22.04 (#4517)
* set default gpu image to skypilot:gpu-ubuntu-2204 * add example * remove comment line * set cpu default image to 2204 * update change history
- Loading branch information
Showing
3 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
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,33 @@ | ||
name: gpu-task | ||
|
||
resources: | ||
# Optional; if left out, automatically pick the cheapest cloud. | ||
cloud: oci | ||
|
||
accelerators: A10:1 | ||
|
||
disk_size: 1024 | ||
|
||
disk_tier: high | ||
|
||
image_id: skypilot:gpu-oraclelinux9 | ||
|
||
|
||
# Working directory (optional) containing the project codebase. | ||
# Its contents are synced to ~/sky_workdir/ on the cluster. | ||
workdir: . | ||
|
||
num_nodes: 1 | ||
|
||
# Typical use: pip install -r requirements.txt | ||
# Invoked under the workdir (i.e., can use its files). | ||
setup: | | ||
echo "*** Running setup. ***" | ||
# Typical use: make use of resources, such as running training. | ||
# Invoked under the workdir (i.e., can use its files). | ||
run: | | ||
echo "*** Running the task on OCI ***" | ||
echo "hello, world" | ||
nvidia-smi | ||
echo "The task is completed." |
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,33 @@ | ||
name: gpu-task | ||
|
||
resources: | ||
# Optional; if left out, automatically pick the cheapest cloud. | ||
cloud: oci | ||
|
||
accelerators: A10:1 | ||
|
||
disk_size: 1024 | ||
|
||
disk_tier: high | ||
|
||
image_id: skypilot:gpu-ubuntu-2204 | ||
|
||
|
||
# Working directory (optional) containing the project codebase. | ||
# Its contents are synced to ~/sky_workdir/ on the cluster. | ||
workdir: . | ||
|
||
num_nodes: 1 | ||
|
||
# Typical use: pip install -r requirements.txt | ||
# Invoked under the workdir (i.e., can use its files). | ||
setup: | | ||
echo "*** Running setup. ***" | ||
# Typical use: make use of resources, such as running training. | ||
# Invoked under the workdir (i.e., can use its files). | ||
run: | | ||
echo "*** Running the task on OCI ***" | ||
echo "hello, world" | ||
nvidia-smi | ||
echo "The task is completed." |
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 |
---|---|---|
|
@@ -6,6 +6,10 @@ | |
configuration. | ||
- Hysun He ([email protected]) @ Nov.12, 2024: Add the constant | ||
SERVICE_PORT_RULE_TAG | ||
- Hysun He ([email protected]) @ Jan.01, 2025: Set the default image | ||
from ubuntu 20.04 to ubuntu 22.04, including: | ||
- GPU: skypilot:gpu-ubuntu-2004 -> skypilot:gpu-ubuntu-2204 | ||
- CPU: skypilot:cpu-ubuntu-2004 -> skypilot:cpu-ubuntu-2204 | ||
""" | ||
import os | ||
|
||
|
@@ -117,15 +121,15 @@ def get_default_gpu_image_tag(cls) -> str: | |
# the sky's user-config file (if not specified, use the hardcode one at | ||
# last) | ||
return skypilot_config.get_nested(('oci', 'default', 'image_tag_gpu'), | ||
'skypilot:gpu-ubuntu-2004') | ||
'skypilot:gpu-ubuntu-2204') | ||
|
||
@classmethod | ||
def get_default_image_tag(cls) -> str: | ||
# Get the default image tag. Instead of hardcoding, we give a choice to | ||
# set the default image tag in the sky's user-config file. (if not | ||
# specified, use the hardcode one at last) | ||
return skypilot_config.get_nested( | ||
('oci', 'default', 'image_tag_general'), 'skypilot:cpu-ubuntu-2004') | ||
('oci', 'default', 'image_tag_general'), 'skypilot:cpu-ubuntu-2204') | ||
|
||
@classmethod | ||
def get_sky_user_config_file(cls) -> str: | ||
|