[GH-ISSUE #153] 我可以正常运行deepseek-ai/Janus-1.3B模型,当我切换到Janus-Pro-1B模型,会报异常deepseek-ai/Janus-Pro-1B does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_mode… #118

Open
opened 2026-10-26 21:12:30 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @piterpig on GitHub (Feb 8, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/153

(myJanus) PS D:\project\Janus> python .\demo\app.py
Python version is above 3.10, patching the collections module.
D:\project\Janus\myJanus\lib\site-packages\transformers\models\auto\image_processing_auto.py:590: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use slow_image_processor_class, or fast_image_processor_class instead
warnings.warn(
Traceback (most recent call last):
File "D:\project\Janus\demo\app.py", line 18, in
vl_gpt = AutoModelForCausalLM.from_pretrained(model_path,
File "D:\project\Janus\myJanus\lib\site-packages\transformers\models\auto\auto_factory.py", line 564, in from_pretrained
return model_class.from_pretrained(
File "D:\project\Janus\myJanus\lib\site-packages\transformers\modeling_utils.py", line 3880, in from_pretrained
raise EnvironmentError(
OSError: deepseek-ai/Janus-Pro-1B does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack.

Originally created by @piterpig on GitHub (Feb 8, 2025). Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/153 (myJanus) PS D:\project\Janus> python .\demo\app.py Python version is above 3.10, patching the collections module. D:\project\Janus\myJanus\lib\site-packages\transformers\models\auto\image_processing_auto.py:590: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use `slow_image_processor_class`, or `fast_image_processor_class` instead warnings.warn( Traceback (most recent call last): File "D:\project\Janus\demo\app.py", line 18, in <module> vl_gpt = AutoModelForCausalLM.from_pretrained(model_path, File "D:\project\Janus\myJanus\lib\site-packages\transformers\models\auto\auto_factory.py", line 564, in from_pretrained return model_class.from_pretrained( File "D:\project\Janus\myJanus\lib\site-packages\transformers\modeling_utils.py", line 3880, in from_pretrained raise EnvironmentError( OSError: deepseek-ai/Janus-Pro-1B does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack.
Author
Owner

@yanghui1-arch commented on GitHub (Feb 23, 2025):

估计模型文件没下载完整,如果是下载到本地,看下你的本地文件

<!-- gh-comment-id:2676636397 --> @yanghui1-arch commented on GitHub (Feb 23, 2025): 估计模型文件没下载完整,如果是下载到本地,看下你的本地文件
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/Janus#118
No description provided.