mirror of
https://github.com/datalab-to/chandra.git
synced 2025-11-29 00:23:12 +00:00
@@ -1,7 +1,5 @@
|
|||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from qwen_vl_utils import process_vision_info
|
|
||||||
|
|
||||||
from chandra.model.schema import BatchInputItem, GenerationResult
|
from chandra.model.schema import BatchInputItem, GenerationResult
|
||||||
from chandra.model.util import scale_to_fit
|
from chandra.model.util import scale_to_fit
|
||||||
from chandra.prompts import PROMPT_MAPPING
|
from chandra.prompts import PROMPT_MAPPING
|
||||||
@@ -15,6 +13,8 @@ def generate_hf(
|
|||||||
bbox_scale: int = settings.BBOX_SCALE,
|
bbox_scale: int = settings.BBOX_SCALE,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> List[GenerationResult]:
|
) -> List[GenerationResult]:
|
||||||
|
from qwen_vl_utils import process_vision_info
|
||||||
|
|
||||||
if max_output_tokens is None:
|
if max_output_tokens is None:
|
||||||
max_output_tokens = settings.MAX_OUTPUT_TOKENS
|
max_output_tokens = settings.MAX_OUTPUT_TOKENS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user