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

Commit

Permalink
Add some sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Yard1 committed Jul 26, 2023
1 parent d7c8731 commit 1d9ca63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aviary/backend/llm/initializers/hf_transformers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _get_model_location_on_disk(self, model_id: str) -> str:
)
model_id_or_path = model_id

if os.path.exists(path):
if os.path.exists(path) and os.path.exists(os.path.join(path, "refs", "main")):
with open(os.path.join(path, "refs", "main"), "r") as f:
snapshot_hash = f.read().strip()
if os.path.exists(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,4 +414,5 @@ async def _stream_async(

def check_health(self) -> None:
super().check_health()
self.scheduler.check_health()
if self.scheduler:
self.scheduler.check_health()
1 change: 1 addition & 0 deletions aviary/backend/llm/predictor/predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __init__(self, llm_config: LLMConfig, world_size: int):
self.local_rank = None
self.current_device = None
self.gpu_memory_fraction = 1.0
self.pg = None

def init_model(
self,
Expand Down

0 comments on commit 1d9ca63

Please sign in to comment.