mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-07 22:00:03 +08:00
fix dora inference
Former-commit-id: 21b3597b0a05169afe51e1609b532787a65ca8ea
This commit is contained in:
parent
6123a4e713
commit
0604a84208
@ -287,6 +287,8 @@ def patch_config(
|
||||
init_kwargs["low_cpu_mem_usage"] = True
|
||||
if is_trainable:
|
||||
init_kwargs["device_map"] = {"": get_current_device()}
|
||||
elif model_args.export_dir is None:
|
||||
init_kwargs["device_map"] = "auto"
|
||||
|
||||
|
||||
def patch_model(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user