Skip to content

Commit

Permalink
Add log for loading LLM for first time.
Browse files Browse the repository at this point in the history
  • Loading branch information
mishajw committed Jan 16, 2024
1 parent 395fa2b commit b10550d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repeng/models/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def load_llm_oioo(llm_id: LlmId) -> Llm[Any, Any]:
del _loaded_llm
torch.cuda.empty_cache()
print(f"Unloaded LLM {_loaded_llm_id}, loading LLM {llm_id}")
else:
print(f"Loading LLM {llm_id}")
_loaded_llm_id = llm_id
_loaded_llm = get_llm(llm_id)
assert _loaded_llm is not None
Expand Down

0 comments on commit b10550d

Please sign in to comment.