Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: The checkpoint you are trying to load has model type multi_modality but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date. #185

Open
xem123 opened this issue Feb 25, 2025 · 0 comments

Comments

@xem123
Copy link

xem123 commented Feb 25, 2025

please help me,I want to fine-tune the Janus-Pro-7B model. The model itself works correctly, but after installing ms-swift, when I run the command:

Bash
swift sft --model Janus-pro-7Bmodel --dataset data.jsonl --train_type lora --torch_dtype bfloat16 --num_train_epochs 5 --per_device_train_batch_size 1 --per_device_eval_batch_size 1 --learning_rate 1e-4 --lora_rank 8 --lora_alpha 32 --target_modules all-linear --freeze_vit true
it throws an error:

ValueError: The checkpoint you are trying to load has model type 'multi_modality' but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.

My current configuration/software versions are as follows:
Image

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@xem123 and others