mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-29 18:51:53 +00:00
Exl3: Add vision capability
This commit is contained in:
@@ -14,7 +14,7 @@ if dependencies.exllamav2:
|
||||
|
||||
# Fetch the return type on runtime
|
||||
@alru_cache(20)
|
||||
async def get_image_embedding(url: str) -> "ExLlamaV2MMEmbedding":
|
||||
async def get_image_embedding_exl2(url: str) -> "ExLlamaV2MMEmbedding":
|
||||
image = await get_image(url)
|
||||
return model.container.vision_model.get_image_embeddings(
|
||||
model=model.container.model,
|
||||
@@ -25,4 +25,4 @@ async def get_image_embedding(url: str) -> "ExLlamaV2MMEmbedding":
|
||||
|
||||
|
||||
def clear_image_embedding_cache():
|
||||
get_image_embedding.cache_clear()
|
||||
get_image_embedding_exl2.cache_clear()
|
||||
|
||||
Reference in New Issue
Block a user