mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Use device_map="auto"
This commit is contained in:
@@ -55,7 +55,7 @@ class model_backend(HFInferenceModel):
|
||||
self.init_model_config()
|
||||
|
||||
self.model = AutoModelForCausalLM.from_pretrained(
|
||||
self.get_local_model_path(), low_cpu_mem_usage=True
|
||||
self.get_local_model_path(), low_cpu_mem_usage=True, device_map="auto"
|
||||
)
|
||||
|
||||
if self.usegpu:
|
||||
|
Reference in New Issue
Block a user