Datasets:

ArXiv:
a100_20260502 / swift /template /__init__.py
shulin16's picture
Add files using upload-large-folder tool
a88f878 verified
Raw
History Blame Contribute Delete
650 Bytes
# Copyright (c) ModelScope Contributors. All rights reserved.
from . import templates
from .base import MaxLengthError, Template
from .constant import TemplateType
from .grounding import draw_bbox
from .register import TEMPLATE_MAPPING, get_template, get_template_meta, register_template
from .template_inputs import StdTemplateInputs, TemplateInputs
from .template_meta import TemplateMeta
from .utils import (ContextType, History, Messages, Prompt, Tool, Word, get_last_user_round, history_to_messages,
messages_to_history, split_str_parts_by, update_generation_config_eos_token)
from .vision_utils import load_file, load_image