Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion genai-perf/genai_perf/config/input/create_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ def _add_input_args_to_config(
config.input.output_tokens.stddev = args.output_tokens_stddev

# Input - Synthetic Tokens
if args.synthetic_input_tokens_mean:
# 0 is used for no text input
if isinstance(args.synthetic_input_tokens_mean, int) and args.synthetic_input_tokens_mean >= 0:
config.input.synthetic_tokens.mean = args.synthetic_input_tokens_mean
if args.synthetic_input_tokens_stddev:
config.input.synthetic_tokens.stddev = args.synthetic_input_tokens_stddev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ def _retrieve_content(self, row: DataRow) -> Union[str, List[Dict[Any, Any]]]:
def _add_multi_modal_content(self, entry: DataRow) -> List[Dict[Any, Any]]:
content: List[Dict[Any, Any]] = []
for text in entry.texts:
content.append(
{
"type": "text",
"text": text,
}
)
if len(text) > 0:
content.append(
{
"type": "text",
"text": text,
}
)
for image in entry.images:
content.append(
{
Expand Down
Loading