Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 37a8141

Browse files
committed
Test local import
1 parent b9ecdfa commit 37a8141

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

torchchat/model.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
2929
RowwiseParallel,
3030
SequenceParallel,
3131
)
32-
# TODO: remove this after we figure out where in torchtune an `evaluate` module
33-
# is being imported, which is being confused with huggingface's `evaluate``.
34-
import lm_eval # noqa
3532
from torch.nn import functional as F
36-
from torchtune.models.clip import clip_vision_encoder
3733
from torchtune.models.llama3_1._component_builders import llama3_1 as llama3_1_builder
3834
from torchtune.models.llama3_2_vision._component_builders import (
3935
llama3_2_vision_decoder,
@@ -227,6 +223,9 @@ def _flamingo(cls):
227223

228224
@classmethod
229225
def _llava(cls):
226+
# TODO: Import locally until we find where in torchtune an `evaluate` module
227+
# is being imported, which is being confused with huggingface's `evaluate``.
228+
from torchtune.models.clip import clip_vision_encoder
230229
return cls(
231230
model_type=ModelType.Llava,
232231
modules={

0 commit comments

Comments
 (0)