Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
fix resource api to match skypilot 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
asaiacai committed Nov 1, 2023
1 parent 6284c4c commit 2ae50c7
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 1,210 deletions.
2 changes: 1 addition & 1 deletion llm_atc/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ def launch(self) -> sky.Task:
resource = list(task.get_resources())[0]
resource._set_accelerators(self.accelerator, None)
resource._cloud = sky.clouds.CLOUD_REGISTRY.from_str(self.cloud)
resource._set_region_zone(self.region, self.zone)
resource._validate_and_set_region_zone(self.region, self.zone)
task.set_resources(resource)
return task
2 changes: 1 addition & 1 deletion llm_atc/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ def serve(self) -> sky.Task:
resource = list(serve_task.get_resources())[0]
resource._set_accelerators(self.accelerator, None)
resource._cloud = sky.clouds.CLOUD_REGISTRY.from_str(self.cloud)
resource._set_region_zone(self.region, self.zone)
resource._validate_and_set_region_zone(self.region, self.zone)
serve_task.set_resources(resource)
return serve_task
Loading

0 comments on commit 2ae50c7

Please sign in to comment.