mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
Model: Add vision loading support
Adds the ability to load vision parts of text + image models. Requires an explicit flag in config because there isn't a way to automatically determine whether the vision tower should be used. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@@ -270,6 +270,12 @@ class ModelConfig(BaseConfigModel):
|
||||
"NOTE: Only works with chat completion message lists!"
|
||||
),
|
||||
)
|
||||
vision: Optional[bool] = Field(
|
||||
False,
|
||||
description=(
|
||||
"Enables vision support if the model supports it. (default: False)"
|
||||
),
|
||||
)
|
||||
num_experts_per_token: Optional[int] = Field(
|
||||
None,
|
||||
description=(
|
||||
|
||||
Reference in New Issue
Block a user