import outlines (#168)

This commit is contained in:
Liangsheng Yin
2024-02-09 10:13:02 +08:00
committed by GitHub
parent cba5027332
commit 37b42297f8
12 changed files with 27 additions and 1464 deletions

View File

@@ -2,12 +2,11 @@ import argparse
from enum import Enum
from pydantic import BaseModel, constr
from sglang.srt.constrained.json_schema import build_regex_from_object
from sglang.srt.constrained import build_regex_from_object
from sglang.test.test_utils import (
add_common_sglang_args_and_parse,
select_sglang_backend,
)
import sglang as sgl
IP_REGEX = r"((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)"