[Model] Add user-configurable task for models that support both generation and embedding (#9424)
This commit is contained in:
@@ -7,6 +7,7 @@ prompt = "<|image_1|> Represent the given image with the following question: Wha
|
||||
# Create an LLM.
|
||||
llm = LLM(
|
||||
model="TIGER-Lab/VLM2Vec-Full",
|
||||
task="embedding",
|
||||
trust_remote_code=True,
|
||||
max_model_len=4096,
|
||||
max_num_seqs=2,
|
||||
|
||||
Reference in New Issue
Block a user