Skip to content

pretraiend model in DiffusionDPO/sift_dpo_data.py #67

@Darius-H

Description

@Darius-H

pretrained = "/path/to/reward_model"

What should I write to replace this line? I tried pretrained = "CodeGoat24/UnifiedReward-qwen-7b" but in LLava code, the vision_tower = model.get_vision_tower() is None. The error is below

  File "./projects/UnifiedReward/VideoDPO/sift_dpo_data.py", line 201, in <module>
    tokenizer, model, image_processor, max_length = load_pretrained_model(pretrained, None, model_name, device_map=device_map)  # Add any other thing you want to pass in llava_model_args
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "./projects/UnifiedReward/VideoDPO/LLaVA/llava/model/builder.py", line 156, in load_pretrained_model
    if not vision_tower.is_loaded:
           ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'is_loaded'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions