Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions torchchat/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
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
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 Expand Up @@ -466,7 +463,7 @@ def build_model(self) -> nn.Module:
modules[name] = module_class(TransformerArgs.from_params(config_args))
else:
modules[name] = module_class(**config_args)

# Temporary add extra params to the DeepFusionModel.
# TODO: Remove it once we can make fusion model configurable in model_param.
if recipe.fusion_class == DeepFusionModel:
Expand Down
Loading