File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 44ARG BASE_IMAGE="nvcr.io/nvidia/pytorch"
55ARG BASE_IMAGE_TAG="25.06-py3"
66ARG RELEASE_BUILD
7+ ARG ENABLE_KVBM=false
78ARG RUNTIME_IMAGE="nvcr.io/nvidia/cuda"
89ARG RUNTIME_IMAGE_TAG="12.9.1-runtime-ubuntu24.04"
910
@@ -240,6 +241,8 @@ ARG ARCH_ALT
240241
241242FROM quay.io/pypa/manylinux_2_28_${ARCH_ALT} AS wheel_builder
242243ARG RELEASE_BUILD
244+ # Use arg ENABLE_KVBM = true to turn on the block-manager feature
245+ ARG ENABLE_KVBM
243246ARG CARGO_BUILD_JOBS
244247# Set CARGO_BUILD_JOBS to 16 if not provided
245248# This is to prevent cargo from building $(nproc) jobs in parallel,
@@ -292,7 +295,11 @@ RUN cargo build \
292295# Build dynamo wheels
293296RUN uv build --wheel --out-dir /workspace/dist && \
294297    cd /workspace/lib/bindings/python && \
295-     uv build --wheel --out-dir /workspace/dist --python 3.12 && \
298+     if [ "$ENABLE_KVBM" = "true" ]; then \
299+         maturin build --release --features block-manager --out /workspace/dist; \
300+     else \
301+         maturin build --release --out /workspace/dist; \
302+     fi && \
296303    if [ "$RELEASE_BUILD" = "true" ]; then \
297304        uv build --wheel --out-dir /workspace/dist --python 3.11 && \
298305        uv build --wheel --out-dir /workspace/dist --python 3.10; \
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments