Skip to content

Changes the location for the gpu_shapes_index file. #1143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ads/aqua/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,9 @@ def load_gpu_shapes_index(
try:
auth = auth or authutil.default_signer()
# Construct the object storage path. Adjust bucket name and path as needed.
storage_path = f"oci://{CONDA_BUCKET_NAME}@{CONDA_BUCKET_NS}/{file_name}/1"
storage_path = (
f"oci://{CONDA_BUCKET_NAME}@{CONDA_BUCKET_NS}/service_pack/{file_name}"
)
logger.debug("Loading GPU shapes index from Object Storage")
with fsspec.open(storage_path, mode="r", **auth) as file_obj:
data = json.load(file_obj)
Expand Down
3 changes: 2 additions & 1 deletion ads/aqua/modeldeployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,8 @@ def list_shapes(self, **kwargs) -> List[ComputeShapeSummary]:
memory_in_gbs=oci_shape.memory_in_gbs,
shape_series=oci_shape.shape_series,
name=oci_shape.name,
gpu_specs=gpu_specs.shapes.get(oci_shape.name),
gpu_specs=gpu_specs.shapes.get(oci_shape.name)
or gpu_specs.shapes.get(oci_shape.name.upper()),
)
for oci_shape in oci_shapes
]