Skip to content

Commit

Permalink
Add mllama support to benchmark_throughput (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdamaszk authored Jan 8, 2025
1 parent 585ca9a commit 8f53dee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmarks/benchmark_throughput.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def _get_prompt_for_image_model(question: str, *, model: str) -> str:
return f"<s>[INST]{question}\n[IMG][/INST]"
elif "llava" in model:
return f"USER: <image>\n{question}\nASSISTANT:"
elif "llama-3.2" in model:
return f"<|image|><|begin_of_text|>{question}"
raise ValueError(f"Unsupported model {model}")


Expand Down

0 comments on commit 8f53dee

Please sign in to comment.