Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
11 changes: 8 additions & 3 deletions torchchat/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@
SequenceParallel,
)
from torch.nn import functional as F
# TODO: remove this after we figure out where in torchtune an `evaluate` module
# is being imported, which is being confused with huggingface's `evaluate``.
import lm_eval # noqa

try:
# TODO: remove this after we figure out where in torchtune an `evaluate` module
# is being imported, which is being confused with huggingface's `evaluate``.
import lm_eval # noqa
except Exception:
pass

from torchtune.models.clip import clip_vision_encoder
from torchtune.models.llama3_1._component_builders import llama3_1 as llama3_1_builder
from torchtune.models.llama3_2_vision._component_builders import (
Expand Down
Loading