Skip to content

加载报错 safetensors_rust.SafetensorError: Error while deserializing header: header too large #19

@CharlesChen24

Description

@CharlesChen24

Q-insight运行

cd src/eval/
python demo_score.py

报错
Loading checkpoint shards: 0%| | 0/4 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/mnt/chenlong/project/Q-Insight/src/eval/demo_score.py", line 26, in
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
File "/root/miniconda3/envs/qinsight/lib/python3.10/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
return func(*args, **kwargs)
File "/root/miniconda3/envs/qinsight/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4399, in from_pretrained
) = cls._load_pretrained_model(
File "/root/miniconda3/envs/qinsight/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4822, in _load_pretrained_model
state_dict = load_state_dict(
File "/root/miniconda3/envs/qinsight/lib/python3.10/site-packages/transformers/modeling_utils.py", line 513, in load_state_dict
with safe_open(checkpoint_file, framework="pt") as f:
safetensors_rust.SafetensorError: Error while deserializing header: header too large

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions