mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-01 11:12:50 +08:00
tiny fix
Former-commit-id: 38b83533a48e2f5a5817b8fc53a37554c42fd932
This commit is contained in:
parent
95a6f1759b
commit
b982a9df83
@ -199,7 +199,7 @@ def load_pretrained(
|
||||
model = AutoModelForCausalLM.from_pretrained(
|
||||
model_args.model_name_or_path,
|
||||
config=config,
|
||||
torch_dtype=torch.bfloat16 if finetuning_args.compute_dtype == torch.bfloat16 else torch.float16,
|
||||
torch_dtype=torch.bfloat16 if model_args.compute_dtype == torch.bfloat16 else torch.float16,
|
||||
low_cpu_mem_usage=True,
|
||||
**config_kwargs
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user