Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/modelscope
/ template.py
File
template.py
modelscope/preprocessors/templates/template.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# Copyright (c) Alibaba, Inc. and its affiliates.
2
import
json
3
import
os
4
import
re
Callers
nothing calls this directly
Calls
15
get_logger
Function · 0.90
register_template
Function · 0.85
Template
Class · 0.85
DefaultGenerationTemplate
Class · 0.85
QwenTemplate
Class · 0.85
QwenVLTemplate
Class · 0.85
QwenVLGenerationTemplate
Class · 0.85
ChatmlTemplate
Class · 0.85
QwenAudioTemplate
Class · 0.85
QwenAudioGenerationTemplate
Class · 0.85
Qwen2AudioTemplate
Class · 0.85
Qwen2VLTemplate
Class · 0.85
Tested by
no test coverage detected