-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: persistent styling between ruff and yapf (#279)
- Loading branch information
Showing
145 changed files
with
1,049 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import bentoml | ||
import openllm | ||
|
||
model = "dolly-v2" | ||
|
||
llm_config = openllm.AutoConfig.for_model(model) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
from __future__ import annotations | ||
|
||
from . import benmin as benmin | ||
from ._base import BaseAsyncClient as BaseAsyncClient, BaseClient as BaseClient | ||
from .client import AsyncGrpcClient as AsyncGrpcClient, AsyncHTTPClient as AsyncHTTPClient, GrpcClient as GrpcClient, HTTPClient as HTTPClient | ||
from ._base import BaseAsyncClient as BaseAsyncClient | ||
from ._base import BaseClient as BaseClient | ||
from .client import AsyncGrpcClient as AsyncGrpcClient | ||
from .client import AsyncHTTPClient as AsyncHTTPClient | ||
from .client import GrpcClient as GrpcClient | ||
from .client import HTTPClient as HTTPClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,44 @@ | ||
from __future__ import annotations | ||
|
||
from . import exceptions as exceptions, utils as utils | ||
from ._configuration import GenerationConfig as GenerationConfig, LLMConfig as LLMConfig, SamplingParams as SamplingParams | ||
from ._schema import EmbeddingsOutput as EmbeddingsOutput, GenerationInput as GenerationInput, GenerationOutput as GenerationOutput, HfAgentInput as HfAgentInput, MetadataOutput as MetadataOutput, unmarshal_vllm_outputs as unmarshal_vllm_outputs | ||
from ._strategies import AmdGpuResource as AmdGpuResource, CascadingResourceStrategy as CascadingResourceStrategy, LiteralResourceSpec as LiteralResourceSpec, NvidiaGpuResource as NvidiaGpuResource, available_resource_spec as available_resource_spec, get_resource as get_resource | ||
from .config import ( | ||
CONFIG_MAPPING as CONFIG_MAPPING, | ||
CONFIG_MAPPING_NAMES as CONFIG_MAPPING_NAMES, | ||
START_BAICHUAN_COMMAND_DOCSTRING as START_BAICHUAN_COMMAND_DOCSTRING, | ||
START_CHATGLM_COMMAND_DOCSTRING as START_CHATGLM_COMMAND_DOCSTRING, | ||
START_DOLLY_V2_COMMAND_DOCSTRING as START_DOLLY_V2_COMMAND_DOCSTRING, | ||
START_FALCON_COMMAND_DOCSTRING as START_FALCON_COMMAND_DOCSTRING, | ||
START_FLAN_T5_COMMAND_DOCSTRING as START_FLAN_T5_COMMAND_DOCSTRING, | ||
START_GPT_NEOX_COMMAND_DOCSTRING as START_GPT_NEOX_COMMAND_DOCSTRING, | ||
START_LLAMA_COMMAND_DOCSTRING as START_LLAMA_COMMAND_DOCSTRING, | ||
START_MPT_COMMAND_DOCSTRING as START_MPT_COMMAND_DOCSTRING, | ||
START_OPT_COMMAND_DOCSTRING as START_OPT_COMMAND_DOCSTRING, | ||
START_STABLELM_COMMAND_DOCSTRING as START_STABLELM_COMMAND_DOCSTRING, | ||
START_STARCODER_COMMAND_DOCSTRING as START_STARCODER_COMMAND_DOCSTRING, | ||
AutoConfig as AutoConfig, | ||
BaichuanConfig as BaichuanConfig, | ||
ChatGLMConfig as ChatGLMConfig, | ||
DollyV2Config as DollyV2Config, | ||
FalconConfig as FalconConfig, | ||
FlanT5Config as FlanT5Config, | ||
GPTNeoXConfig as GPTNeoXConfig, | ||
LlamaConfig as LlamaConfig, | ||
MPTConfig as MPTConfig, | ||
OPTConfig as OPTConfig, | ||
StableLMConfig as StableLMConfig, | ||
StarCoderConfig as StarCoderConfig, | ||
) | ||
from . import exceptions as exceptions | ||
from . import utils as utils | ||
from ._configuration import GenerationConfig as GenerationConfig | ||
from ._configuration import LLMConfig as LLMConfig | ||
from ._configuration import SamplingParams as SamplingParams | ||
from ._schema import EmbeddingsOutput as EmbeddingsOutput | ||
from ._schema import GenerationInput as GenerationInput | ||
from ._schema import GenerationOutput as GenerationOutput | ||
from ._schema import HfAgentInput as HfAgentInput | ||
from ._schema import MetadataOutput as MetadataOutput | ||
from ._schema import unmarshal_vllm_outputs as unmarshal_vllm_outputs | ||
from ._strategies import AmdGpuResource as AmdGpuResource | ||
from ._strategies import CascadingResourceStrategy as CascadingResourceStrategy | ||
from ._strategies import LiteralResourceSpec as LiteralResourceSpec | ||
from ._strategies import NvidiaGpuResource as NvidiaGpuResource | ||
from ._strategies import available_resource_spec as available_resource_spec | ||
from ._strategies import get_resource as get_resource | ||
from .config import CONFIG_MAPPING as CONFIG_MAPPING | ||
from .config import CONFIG_MAPPING_NAMES as CONFIG_MAPPING_NAMES | ||
from .config import START_BAICHUAN_COMMAND_DOCSTRING as START_BAICHUAN_COMMAND_DOCSTRING | ||
from .config import START_CHATGLM_COMMAND_DOCSTRING as START_CHATGLM_COMMAND_DOCSTRING | ||
from .config import START_DOLLY_V2_COMMAND_DOCSTRING as START_DOLLY_V2_COMMAND_DOCSTRING | ||
from .config import START_FALCON_COMMAND_DOCSTRING as START_FALCON_COMMAND_DOCSTRING | ||
from .config import START_FLAN_T5_COMMAND_DOCSTRING as START_FLAN_T5_COMMAND_DOCSTRING | ||
from .config import START_GPT_NEOX_COMMAND_DOCSTRING as START_GPT_NEOX_COMMAND_DOCSTRING | ||
from .config import START_LLAMA_COMMAND_DOCSTRING as START_LLAMA_COMMAND_DOCSTRING | ||
from .config import START_MPT_COMMAND_DOCSTRING as START_MPT_COMMAND_DOCSTRING | ||
from .config import START_OPT_COMMAND_DOCSTRING as START_OPT_COMMAND_DOCSTRING | ||
from .config import START_STABLELM_COMMAND_DOCSTRING as START_STABLELM_COMMAND_DOCSTRING | ||
from .config import START_STARCODER_COMMAND_DOCSTRING as START_STARCODER_COMMAND_DOCSTRING | ||
from .config import AutoConfig as AutoConfig | ||
from .config import BaichuanConfig as BaichuanConfig | ||
from .config import ChatGLMConfig as ChatGLMConfig | ||
from .config import DollyV2Config as DollyV2Config | ||
from .config import FalconConfig as FalconConfig | ||
from .config import FlanT5Config as FlanT5Config | ||
from .config import GPTNeoXConfig as GPTNeoXConfig | ||
from .config import LlamaConfig as LlamaConfig | ||
from .config import MPTConfig as MPTConfig | ||
from .config import OPTConfig as OPTConfig | ||
from .config import StableLMConfig as StableLMConfig | ||
from .config import StarCoderConfig as StarCoderConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.