fix: prevent points regex from matching checkpoints/endpoints (#15120)
This commit is contained in:
@@ -1039,7 +1039,8 @@ MODEL_TYPE_TO_TEMPLATE = {
|
|||||||
|
|
||||||
@register_conv_template_matching_function
|
@register_conv_template_matching_function
|
||||||
def match_points_v15_chat(model_path: str):
|
def match_points_v15_chat(model_path: str):
|
||||||
if re.search(r"points", model_path, re.IGNORECASE):
|
# reference: https://github.com/sgl-project/sglang/issues/12791
|
||||||
|
if re.search(r"\bpoints\b", model_path, re.IGNORECASE):
|
||||||
return "points-v15-chat"
|
return "points-v15-chat"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user