tanganke's picture
Upload folder using huggingface_hub
201a73c verified
|
raw
history blame
631 Bytes
metadata
base_model: openai/clip-vit-base-patch16
library_name: peft

Model Card for clip-vit-base-patch16_stanford-cars_l-lora-16

Usage

from transformers import CLIPVisionModel
from peft import PeftModel
from fusion_bench.method.classification.clip_finetune import linearize_lora_model_

base_model = CLIPVisionModel.from_pretrained("openai/clip-vit-base-patch16").vision_model
peft_model_id = "openai/clip-vit-base-patch16_stanford-cars_l-lora-16"
model = PeftModel.from_pretrained(base_model, peft_model_id)

model = linearize_lora_model_(model)

Model Card Contact

Framework versions

  • PEFT 0.12.0