mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-17 15:58:25 +00:00
llms: fix
This commit is contained in:
parent
ce72820085
commit
f52c7523b5
@ -60,8 +60,6 @@ class ModelLoader(metaclass=Singleton):
|
||||
# TODO multi gpu support
|
||||
def loader(self, num_gpus, load_8bit=False, debug=False, cpu_offloading=False, max_gpu_memory: Optional[str]=None):
|
||||
|
||||
cpu_offloading(self.device, load_8bit, cpu_offloading)
|
||||
|
||||
if self.device == "cpu":
|
||||
kwargs = {"torch_dtype": torch.float32}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user