Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-braf committed Apr 2, 2024
1 parent 8125ed0 commit 30be511
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions model_analyzer/perf_analyzer/genai_perf_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class GenaiPerfConfig:
"tokenizer",
]

# boolean_args = ["streaming"]

def __init__(self):
"""
Construct a GenaiPerfConfig
Expand Down Expand Up @@ -96,8 +94,6 @@ def representation(self):
if a previous (checkpointed) run can be used
"""
cli_string = self.to_cli_string()
# cli_string = PerfAnalyzerConfig.remove_url_from_cli_string(cli_string)
# cli_string = PerfAnalyzerConfig.remove_mrc_from_cli_string(cli_string)

return cli_string

Expand Down Expand Up @@ -126,25 +122,10 @@ def _parse_options(self):
"""
temp_args = []
for key, value in self._args.items():
# if key in self.boolean_args:
# temp_args = self._parse_boolean_args(key, value, temp_args)
# elif value:
if value:
temp_args.append(f"--{key}={value}")
return temp_args

# def _parse_boolean_args(self, key, value, temp_args):
# """
# Parse genai perf args that should not add a value to the cli string
# """
# assert type(value) in [
# str,
# type(None),
# ], f"Data type for arg {key} must be a (boolean) string instead of {type(value)}"
# if value != None and value.lower() == "true":
# temp_args.append(f"--{key}")
# return temp_args

def __getitem__(self, key):
"""
Gets an arguments value in config
Expand Down

0 comments on commit 30be511

Please sign in to comment.