Skip to content

Commit 45f6cfa

Browse files
committed
refactor: clean up imports and improve code formatting in tests
1 parent bf7823a commit 45f6cfa

File tree

3 files changed

+160
-231
lines changed

3 files changed

+160
-231
lines changed

eval_encoder/attentive_probe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import time
55
import warnings
6-
from typing import dict
76

87
import torch
98
import torch.nn.functional as F
@@ -14,12 +13,13 @@
1413
from torch import distributed, nn
1514
from torch.nn.utils import clip_grad_norm_
1615
from torch.optim.lr_scheduler import LinearLR
17-
from transformers import AutoModel
1816

1917
# Ensure custom models and layers are registered
2018
import model_factory
2119
from dataloader.ap_dataloader_dali import get_dali_dataloader
2220
from model_factory.layers import Siglip2MultiheadAttentionPoolingHead
21+
from transformers import AutoModel
22+
2323

2424
warnings.filterwarnings("ignore")
2525

0 commit comments

Comments
 (0)