[Model] Fix Phi-3.5-vision-instruct 'num_crops' issue (#7710)

This commit is contained in:
zifeitong
2024-08-21 18:36:24 -07:00
committed by GitHub
parent 7937009a7e
commit df1a21131d
6 changed files with 37 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ HF_IMAGE_PROMPTS = IMAGE_ASSETS.prompts({
"<|user|>\n<|image_1|>\nWhat is the season?<|end|>\n<|assistant|>\n",
})
models = ["microsoft/Phi-3-vision-128k-instruct"]
models = ["microsoft/Phi-3.5-vision-instruct"]
def vllm_to_hf_output(vllm_output: Tuple[List[int], str,