Skip to content

Commit 57fc9b0

Browse files
authored
Merge pull request #76 from foundation-model-stack/update_tgis_071
📦 Update vllm tgis adapter range to max 0.7.2
2 parents 830896b + d57a218 commit 57fc9b0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vllm-detector-adapter"
3-
version = "0.6.1"
3+
version = "0.7.1"
44
authors = [
55
{ name="Gaurav Kumbhat", email="[email protected]" },
66
{ name="Evaline Ju", email="[email protected]" },
@@ -18,7 +18,7 @@ dependencies = [
1818

1919
[project.optional-dependencies]
2020
vllm-tgis-adapter = [
21-
"vllm-tgis-adapter>=0.7.0,<0.7.1"
21+
"vllm-tgis-adapter>=0.7.0,<0.7.2"
2222
]
2323
vllm = [
2424
# Note: 0.8.4 has a triton bug on Mac

vllm_detector_adapter/start_with_tgis_adapter.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ async def run_http_server(
7171
# allows passing of the engine
7272

7373
app = api_server.build_app(args)
74-
model_config = await engine.get_model_config()
75-
await init_app_state_with_detectors(engine, model_config, app.state, args)
74+
if hasattr(engine, "get_vllm_config"):
75+
vllm_config = await engine.get_vllm_config()
76+
await init_app_state_with_detectors(engine, vllm_config, app.state, args)
77+
else:
78+
model_config = await engine.get_model_config()
79+
await init_app_state_with_detectors(engine, model_config, app.state, args)
7680

7781
serve_kwargs = {
7882
"host": args.host,

0 commit comments

Comments
 (0)