Skip to content

Commit 23e56b3

Browse files
Update attentive_probe_codec.py
1 parent d0f1b8c commit 23e56b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eval_encoder/attentive_probe_codec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@ def evaluate(
606606
def get_model(args: argparse.Namespace) -> nn.Module:
607607

608608
if args.model_name == "ov_encoder_large":
609-
model = AutoModel.from_pretrained(
609+
from onevision_encoder import OneVisionEncoderModel
610+
model = OneVisionEncoderModel.from_pretrained(
610611
args.model_weight,
611612
trust_remote_code=True,
612613
attn_implementation="flash_attention_2")

0 commit comments

Comments
 (0)