Skip to content

Commit

Permalink
fixes some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
w4ffl35 committed Jan 11, 2024
1 parent 1fe1b48 commit a1c9640
Show file tree
Hide file tree
Showing 13 changed files with 280 additions and 569 deletions.
6 changes: 3 additions & 3 deletions src/airunner/aihandler/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def unload_llm(self):
VRAM to keep the LLM loaded while
using other models.
"""
do_unload_model = self.settings_manager.unload_unused_model
do_move_to_cpu = not do_unload_model and self.settings_manager.move_unused_model_to_cpu
dtype = self.settings_manager.llm_generator_setting.dtype
do_unload_model = self.settings_manager.settings.unload_unused_model
do_move_to_cpu = not do_unload_model and self.settings_manager.settings.move_unused_model_to_cpu
dtype = self.settings_manager.llm_generator_settings.dtype
if dtype in ["2bit", "4bit", "8bit"]:
do_unload_model = True
do_move_to_cpu = False
Expand Down
328 changes: 0 additions & 328 deletions src/airunner/aihandler/settings_manager.py

This file was deleted.

Loading

0 comments on commit a1c9640

Please sign in to comment.