mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #68] model type multi_modality but Transformers does not recognize this architecture #53
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#53
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 @Huowuge on GitHub (Jan 28, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/68
Anyone encountered this error?
ValueError: The checkpoint you are trying to load has model type
multi_modalitybut 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.System: ubuntu 2204
python:3.10
transformers:latest
torch:2.2.2
models: 1b and 1.3b
@ghost commented on GitHub (Jan 28, 2025):
Same problem here
@ghost commented on GitHub (Jan 28, 2025):
for following attempt:
@LeeABarron commented on GitHub (Feb 1, 2025):
Same here with
@dineshchitlangia commented on GitHub (Feb 6, 2025):
Same issue here with code similar to @gnusupport and @LeeABarron.
I also tried the example inference.py file and that produces the same error too!
github.com/deepseek-ai/Janus@1daa72fa40/inference.py@hills-code @charlesCXK - could you pls help?
@YoshitoMurayama commented on GitHub (Feb 6, 2025):
I think we have to register custom model classes to "transformers" before loading the model like line below
github.com/deepseek-ai/Janus@1daa72fa40/janus/models/modeling_vlm.py (L272)maybe importing janus.models execute above line
otherwise I solve this by adding custom model code to model repository(local folder), then I add "auto_map" settings to config.json...
@creasy2010 commented on GitHub (Feb 6, 2025):
Same problem
System: mac m1
python:3.8
transformers:latest
torch:2.4.1
models: Janus-Pro-7B and Janus-Pro-1B and Janus-1.3B
@LeeABarron commented on GitHub (Feb 6, 2025):
@YoshitoMurayama can you go into detail about your solution please? That would be great. Thanks man.
@DevPaulLiu commented on GitHub (Feb 8, 2025):
Seems HuggingFace team are working on it: https://github.com/huggingface/transformers/issues/35928
@Wuwenji18 commented on GitHub (Apr 21, 2025):
同问
@popcornkiller1088 commented on GitHub (May 12, 2025):
this worked for me