You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: FastMistralModel.from_pretrained() got an unexpected keyword argument 'rope_scaling' #55
12/27/2023 19:13:37 - WARNING - llmtuner.model.patcher - Current model does not support RoPE scaling.
12/27/2023 19:13:37 - INFO - llmtuner.model.patcher - Using FlashAttention-2 for faster training and inference.
12/27/2023 19:13:37 - INFO - llmtuner.model.patcher - Quantizing model to 4 bit.
/root/miniconda3/envs/llama_factory/lib/python3.10/site-packages/unsloth/init.py:31: UserWarning: Unsloth: 'CUDA_DEVICE_ORDER' is not set but we require 'CUDA_DEVICE_ORDER=PCI_BUS_ID'
We shall set it ourselves.
warnings.warn(
Traceback (most recent call last):
File "/workspace/LLaMA-Factory/src/train_bash.py", line 14, in
main()
File "/workspace/LLaMA-Factory/src/train_bash.py", line 5, in main
run_exp()
File "/workspace/LLaMA-Factory/src/llmtuner/train/tuner.py", line 32, in run_exp
run_dpo(model_args, data_args, training_args, finetuning_args, callbacks)
File "/workspace/LLaMA-Factory/src/llmtuner/train/dpo/workflow.py", line 28, in run_dpo
model, tokenizer = load_model_and_tokenizer(model_args, finetuning_args, training_args.do_train)
File "/workspace/LLaMA-Factory/src/llmtuner/model/loader.py", line 77, in load_model_and_tokenizer
model, _ = FastMistralModel.from_pretrained(**unsloth_kwargs)
TypeError: FastMistralModel.from_pretrained() got an unexpected keyword argument 'rope_scaling'
Activity
danielhanchen commentedon Dec 27, 2023
Working on a fix real quick!
danielhanchen commentedon Dec 28, 2023
@xiechengmude I think I might have fixed it! Would it be possible for you to reinstall Unsloth and check to confirm? Much appreciated :)
danielhanchen commentedon Dec 29, 2023
Closing now since should be fixed!
Studio sd.cpp: pin the prebuilt resynced with upstream master-1056 (u…