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