-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'vllm-project:main' into optimize-minicpmv-code
- Loading branch information
Showing
47 changed files
with
1,155 additions
and
488 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
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,34 +1,7 @@ | ||
# Common dependencies | ||
# -r requirements-common.txt | ||
# TODO: remove temporary copy of all common dependencies once Optimum Intel will support Transformers >= 4.43.2 | ||
cmake >= 3.21 | ||
ninja # For faster builds. | ||
psutil | ||
sentencepiece # Required for LLaMA tokenizer. | ||
numpy < 2.0.0 | ||
requests | ||
tqdm | ||
py-cpuinfo | ||
transformers < 4.43 | ||
tokenizers >= 0.19.1 # Required for Llama 3. | ||
fastapi | ||
aiohttp | ||
openai | ||
uvicorn[standard] | ||
pydantic >= 2.0 # Required for OpenAI server. | ||
pillow # Required for image processing | ||
prometheus_client >= 0.18.0 | ||
prometheus-fastapi-instrumentator >= 7.0.0 | ||
tiktoken >= 0.6.0 # Required for DBRX tokenizer | ||
lm-format-enforcer == 0.10.3 | ||
outlines >= 0.0.43, < 0.1 # Requires torch >= 2.1.0 | ||
typing_extensions | ||
filelock >= 3.10.4 # filelock starts to support `mode` argument from 3.10.4 | ||
pyzmq | ||
gguf == 0.9.1 | ||
-r requirements-common.txt | ||
|
||
# OpenVINO dependencies | ||
torch >= 2.1.2 | ||
openvino ~= 2024.3.0.dev | ||
openvino-tokenizers[transformers] ~= 2024.3.0.0.dev | ||
optimum-intel[openvino] >= 1.18.1 | ||
openvino ~= 2024.3.0 | ||
optimum-intel[openvino] >= 1.18.2 |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from typing import Any | ||
|
||
import pytest | ||
|
||
from vllm.engine.async_llm_engine import AsyncLLMEngine | ||
from vllm.entrypoints.openai.api_server import build_async_engine_client | ||
from vllm.entrypoints.openai.cli_args import make_arg_parser | ||
from vllm.utils import FlexibleArgumentParser | ||
|
||
|
||
def crashing_from_engine_args( | ||
cls, | ||
engine_args: Any = None, | ||
start_engine_loop: Any = None, | ||
usage_context: Any = None, | ||
stat_loggers: Any = None, | ||
) -> "AsyncLLMEngine": | ||
raise Exception("foo") | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_mp_crash_detection(monkeypatch): | ||
|
||
with pytest.raises(RuntimeError) as excinfo, monkeypatch.context() as m: | ||
m.setattr(AsyncLLMEngine, "from_engine_args", | ||
crashing_from_engine_args) | ||
parser = FlexibleArgumentParser( | ||
description="vLLM's remote OpenAI server.") | ||
parser = make_arg_parser(parser) | ||
args = parser.parse_args([]) | ||
|
||
async with build_async_engine_client(args): | ||
pass | ||
assert "The server process died before responding to the readiness probe"\ | ||
in str(excinfo.value) |
Oops, something went wrong.