Skip to content

Commit b30a7b7

Browse files
PierreMarzaafilt
andcommitted
Fixed model_cls.emb_dim_seg not being taken into account for custom models (#15)
Co-authored-by: afilt <afilt@users.noreply.github.com>
1 parent 6cbcc5e commit b30a7b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/thunder/tasks/train_eval_probe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ def eval_probe(
359359
if model_cls is not None:
360360
OmegaConf.set_struct(cfg, False)
361361
cfg.pretrained_model = {"emb_dim": model_cls.emb_dim}
362+
if hasattr(model_cls, "emb_dim_seg"):
363+
cfg.pretrained_model.update({"emb_dim_seg": model_cls.emb_dim_seg})
362364

363365
# Task-specific model
364366
if task_type == "linear_probing":

0 commit comments

Comments
 (0)