Skip to content

Commit

Permalink
Remove unused function resolve_model_name - fixes lint (pytorch#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryComer authored and malfet committed Jul 17, 2024
1 parent 30045ed commit 2d1c8cc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions build/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,3 @@ def _initialize_model(

def tokenizer_setting_to_name(tiktoken: bool = False) -> str:
return "TikToken" if tiktoken else "SentencePiece"


def resolve_model_name(model: str) -> str:
# If the provided model name is an alias, retrieve the full path.
if model in model_aliases:
return model_aliases[model]
else:
return model

0 comments on commit 2d1c8cc

Please sign in to comment.