Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
7e452a2e
Unverified
Commit
7e452a2e
authored
May 19, 2025
by
Jacky
Committed by
GitHub
May 19, 2025
Browse files
fix: Disable block manager by default in Python bindings (#1128)
parent
aeb79e62
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
container/Dockerfile.vllm
container/Dockerfile.vllm
+4
-3
lib/bindings/python/pyproject.toml
lib/bindings/python/pyproject.toml
+0
-1
lib/bindings/python/src/dynamo/llm/__init__.py
lib/bindings/python/src/dynamo/llm/__init__.py
+6
-1
No files found.
container/Dockerfile.vllm
View file @
7e452a2e
...
@@ -375,10 +375,11 @@ RUN cargo build --release --locked --features mistralrs,python,dynamo-llm/block-
...
@@ -375,10 +375,11 @@ RUN cargo build --release --locked --features mistralrs,python,dynamo-llm/block-
# Build dynamo wheel
# Build dynamo wheel
RUN uv build --wheel --out-dir /workspace/dist && \
RUN uv build --wheel --out-dir /workspace/dist && \
cd /workspace/lib/bindings/python && \
cd /workspace/lib/bindings/python && \
uv build --wheel --out-dir /workspace/dist --python 3.12 && \
uv pip install maturin[patchelf] && \
maturin build --release --features block-manager --out /workspace/dist && \
if [ "$RELEASE_BUILD" = "true" ]; then \
if [ "$RELEASE_BUILD" = "true" ]; then \
uv
build --wheel
--out
-dir
/workspace/dist
--python 3.11
&& \
uv
run --python 3.11 maturin build --release --features block-manager
--out /workspace/dist && \
uv
build --wheel
--out
-dir
/workspace/dist
--python 3.10
; \
uv
run --python 3.10 maturin build --release --features block-manager
--out /workspace/dist; \
fi
fi
#######################################
#######################################
...
...
lib/bindings/python/pyproject.toml
View file @
7e452a2e
...
@@ -51,7 +51,6 @@ module-name = "dynamo._core"
...
@@ -51,7 +51,6 @@ module-name = "dynamo._core"
manifest-path
=
"Cargo.toml"
manifest-path
=
"Cargo.toml"
python-packages
=
["dynamo"]
python-packages
=
["dynamo"]
python-source
=
"src"
python-source
=
"src"
features
=
["block-manager"]
[build-system]
[build-system]
requires
=
[
"maturin>=1.0,<2.0"
,
"patchelf"
]
requires
=
[
"maturin>=1.0,<2.0"
,
"patchelf"
]
...
...
lib/bindings/python/src/dynamo/llm/__init__.py
View file @
7e452a2e
...
@@ -14,7 +14,12 @@
...
@@ -14,7 +14,12 @@
# limitations under the License.
# limitations under the License.
from
dynamo._core
import
AggregatedMetrics
as
AggregatedMetrics
from
dynamo._core
import
AggregatedMetrics
as
AggregatedMetrics
from
dynamo._core
import
BlockManager
as
BlockManager
try
:
from
dynamo._core
import
BlockManager
as
BlockManager
except
ImportError
:
pass
# BlockManager is not enabled by default
from
dynamo._core
import
DisaggregatedRouter
as
DisaggregatedRouter
from
dynamo._core
import
DisaggregatedRouter
as
DisaggregatedRouter
from
dynamo._core
import
HttpAsyncEngine
as
HttpAsyncEngine
from
dynamo._core
import
HttpAsyncEngine
as
HttpAsyncEngine
from
dynamo._core
import
HttpError
as
HttpError
from
dynamo._core
import
HttpError
as
HttpError
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment