mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-04 12:42:51 +08:00
fix unsloth dtype
Former-commit-id: 779cfefb7841d00fc712a5f5addf0fe3eb14c6fd
This commit is contained in:
parent
938c4cb132
commit
a7fc20cb2d
@ -67,6 +67,7 @@ def load_model_and_tokenizer(
|
||||
unsloth_kwargs = {
|
||||
"model_name": model_args.model_name_or_path,
|
||||
"max_seq_length": model_args.model_max_length,
|
||||
"dtype": model_args.compute_dtype,
|
||||
"load_in_4bit": model_args.quantization_bit == 4,
|
||||
"token": model_args.hf_hub_token,
|
||||
"device_map": get_current_device(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user