Skip to content

TypeError: FastMistralModel.from_pretrained() got an unexpected keyword argument 'rope_scaling' #55

Closed

Description

@xiechengmude

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

  1. danielhanchen commented on Dec 27, 2023

    @danielhanchen
    Member

    Working on a fix real quick!

  2. danielhanchen commented on Dec 28, 2023

    @danielhanchen
    Member

    @xiechengmude I think I might have fixed it! Would it be possible for you to reinstall Unsloth and check to confirm? Much appreciated :)

  3. danielhanchen commented on Dec 29, 2023

    @danielhanchen
    Member

    Closing now since should be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions