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

Commit 96ab799

Browse files
author
anirudh
committed
remove modality from builder args
1 parent e9c0d34 commit 96ab799

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

torchchat/cli/builder.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class BuilderArgs:
7171
dynamic_shapes: bool = False
7272
max_seq_length: Optional[int] = None
7373
attention_backend: str = "math"
74-
modality: Optional[str] = "text"
7574

7675
def __post_init__(self):
7776
if self.device is None:
@@ -147,10 +146,6 @@ def from_args(cls, args: argparse.Namespace) -> "BuilderArgs":
147146
aoti_package_path = getattr(args, "aoti_package_path", None)
148147
snapshot_path = getattr(args, "snapshot_path", None)
149148

150-
modality = "text"
151-
if args.modality:
152-
modality = args.modality
153-
154149
is_chat_model = False
155150
if args.is_chat_model:
156151
is_chat_model = True
@@ -231,7 +226,6 @@ def from_args(cls, args: argparse.Namespace) -> "BuilderArgs":
231226
chpt_from=chpt_from,
232227
distribution_path=distribution_path,
233228
is_chat_model=is_chat_model,
234-
modality=modality,
235229
dynamic_shapes=getattr(args, "dynamic_shapes", False),
236230
max_seq_length=getattr(args, "max_seq_length", None),
237231
attention_backend=attention_backend,

0 commit comments

Comments
 (0)