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

Add some sanity checks #28

Merged
merged 1 commit into from
Jul 26, 2023
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
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