mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #185] 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 o… #148
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/Janus#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xem123 on GitHub (Feb 25, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/185
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:

@tarunn90 commented on GitHub (Apr 4, 2025):
I have also encountered the same error when running the following: