mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-06-12 10:29:36 -04:00
fix: persistent styling between ruff and yapf (#279)
This commit is contained in:
@@ -3,8 +3,13 @@ import sys
|
||||
import typing as t
|
||||
|
||||
from openllm.exceptions import MissingDependencyError
|
||||
from openllm.utils import LazyModule, is_torch_available, is_vllm_available
|
||||
from openllm_core.config.configuration_starcoder import DEFAULT_PROMPT_TEMPLATE as DEFAULT_PROMPT_TEMPLATE, START_STARCODER_COMMAND_DOCSTRING as START_STARCODER_COMMAND_DOCSTRING, StarCoderConfig as StarCoderConfig
|
||||
from openllm.utils import LazyModule
|
||||
from openllm.utils import is_torch_available
|
||||
from openllm.utils import is_vllm_available
|
||||
from openllm_core.config.configuration_starcoder import DEFAULT_PROMPT_TEMPLATE as DEFAULT_PROMPT_TEMPLATE
|
||||
from openllm_core.config.configuration_starcoder import START_STARCODER_COMMAND_DOCSTRING as START_STARCODER_COMMAND_DOCSTRING
|
||||
from openllm_core.config.configuration_starcoder import StarCoderConfig as StarCoderConfig
|
||||
|
||||
_import_structure: dict[str, list[str]] = {}
|
||||
try:
|
||||
if not is_torch_available(): raise MissingDependencyError
|
||||
|
||||
@@ -5,7 +5,11 @@ import typing as t
|
||||
import bentoml
|
||||
import openllm
|
||||
from openllm.utils import generate_labels
|
||||
from openllm_core.config.configuration_starcoder import EOD, FIM_MIDDLE, FIM_PAD, FIM_PREFIX, FIM_SUFFIX
|
||||
from openllm_core.config.configuration_starcoder import EOD
|
||||
from openllm_core.config.configuration_starcoder import FIM_MIDDLE
|
||||
from openllm_core.config.configuration_starcoder import FIM_PAD
|
||||
from openllm_core.config.configuration_starcoder import FIM_PREFIX
|
||||
from openllm_core.config.configuration_starcoder import FIM_SUFFIX
|
||||
if t.TYPE_CHECKING: import transformers
|
||||
|
||||
class StarCoder(openllm.LLM['transformers.GPTBigCodeForCausalLM', 'transformers.GPT2TokenizerFast']):
|
||||
|
||||
Reference in New Issue
Block a user