mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 12:42:51 +08:00
fix dora inference
Former-commit-id: ddf352f861e04e813cb8adeb4513964b4945081a
This commit is contained in:
parent
768358b960
commit
0f2250b831
@ -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