Skip to content

Commit 8b3b685

Browse files
ksuma2109UbuntuSuma Kasa
authored
Fix Gradle dependency issues for TRT-LLM release (#2850)
Co-authored-by: Ubuntu <[email protected]> Co-authored-by: Suma Kasa <[email protected]>
1 parent 17f26af commit 8b3b685

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

.github/workflows/docker-nightly-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ jobs:
130130
export BUILD_VERSION_ARG_DJL="${DJL_VERSION}-SNAPSHOT"
131131
export BUILD_VERSION_ARG_SERVING="${SERVING_VERSION}-SNAPSHOT"
132132
else
133+
./gradlew --refresh-dependencies :serving:dockerDeb -Psnapshot
133134
rm -rf serving/docker/distributions
134135
export BUILD_VERSION_ARG_DJL="${DJL_VERSION}"
135136
export BUILD_VERSION_ARG_SERVING="${SERVING_VERSION}"
@@ -173,4 +174,4 @@ jobs:
173174
instance_id=$(echo $runner_output | jq -r ".[\"$key\"]")
174175
echo "Key: $key, instance_id: $instance_id"
175176
./stop_instance.sh $instance_id
176-
done
177+
done

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ jobs:
243243
- name: Test
244244
working-directory: tests/integration
245245
env:
246-
TEST_DJL_VERSION: ${{ inputs.djl-version }}
246+
TEST_DJL_VERSION: '0.33.0'
247247
IMAGE_TAG_SUFFIX: ${{ inputs.tag-suffix }}
248248
IMAGE_REPO: ${{ inputs.image-repo }}
249249
run: |

buildSrc/src/main/kotlin/ai/djl/javaBase.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ val libs = the<LibrariesForLibs>()
1414
var servingVersion: String? = System.getenv("DJL_VERSION")
1515
val stagingRepo: String? = System.getenv("DJL_STAGING")
1616
servingVersion = if (servingVersion == null) libs.versions.serving.get() else servingVersion
17-
if (!project.hasProperty("staging")) {
18-
servingVersion += "-SNAPSHOT"
19-
}
2017

2118
group = "ai.djl.serving"
2219
version = servingVersion!!

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
format.version = "1.1"
33

44
[versions]
5-
djl = "0.33.0"
5+
djl = "0.34.0"
66
serving = "0.33.0"
77
onnxruntime = "1.20.0"
88
commonsCli = "1.9.0"

serving/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ COPY scripts scripts/
7171
RUN scripts/install_python.sh && \
7272
scripts/install_djl_serving.sh $djl_version $djl_serving_version $torch_version && \
7373
djl-serving -i ai.djl.pytorch:pytorch-native-cpu:$torch_version:linux-x86_64 && \
74-
djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:$djl_version && \
74+
djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:0.33.0 && \
7575
djl-serving -i com.microsoft.onnxruntime:onnxruntime:$onnx_version && \
7676
scripts/patch_oss_dlc.sh python && \
7777
echo "${djl_serving_version} cpufull" > /opt/djl/bin/telemetry && \

serving/docker/lmi.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ ARG djl_serving_version
1717
ARG python_version=3.12
1818
ARG djl_torch_version=2.5.1
1919
ARG djl_onnx_version=1.20.0
20+
ARG djl_converter_version=0.33.0
2021

2122
# djl converter wheel for text-embedding use case
22-
ARG djl_converter_wheel="https://publish.djl.ai/djl_converter/djl_converter-${djl_version//-*/}-py3-none-any.whl"
23+
ARG djl_converter_wheel="https://publish.djl.ai/djl_converter/djl_converter-${djl_converter_version//-*/}-py3-none-any.whl"
2324

2425
EXPOSE 8080
2526

@@ -98,7 +99,7 @@ COPY distribution[s]/ ./
9899
RUN mv *.deb djl-serving_all.deb || true
99100

100101
RUN scripts/install_djl_serving.sh $djl_version $djl_serving_version ${djl_torch_version} \
101-
&& djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:$djl_version \
102+
&& djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:0.33.0 \
102103
&& djl-serving -i com.microsoft.onnxruntime:onnxruntime_gpu:$djl_onnx_version
103104

104105
LABEL maintainer="[email protected]"

serving/docker/pytorch-gpu.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ ARG onnx_version=1.20.0
2222
ARG python_version=3.12
2323
ARG numpy_version=1.26.4
2424
ARG pydantic_version=2.8.2
25-
ARG djl_converter_wheel="https://publish.djl.ai/djl_converter/djl_converter-${djl_version//-*/}-py3-none-any.whl"
25+
ARG djl_converter_version=0.33.0
26+
27+
# djl converter wheel for text-embedding use case
28+
ARG djl_converter_wheel="https://publish.djl.ai/djl_converter/djl_converter-${djl_converter_version//-*/}-py3-none-any.whl"
2629

2730
RUN mkdir -p /opt/djl/conf && \
2831
mkdir -p /opt/ml/model
@@ -58,7 +61,7 @@ SHELL ["/bin/bash", "-c"]
5861
RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh && \
5962
scripts/install_djl_serving.sh $djl_version $djl_serving_version && \
6063
scripts/install_djl_serving.sh $djl_version $djl_serving_version ${torch_version} && \
61-
djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:$djl_version && \
64+
djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:0.33.0 && \
6265
djl-serving -i com.microsoft.onnxruntime:onnxruntime_gpu:$onnx_version && \
6366
scripts/install_python.sh ${python_version} && \
6467
scripts/install_s5cmd.sh x64 && \

serving/docker/scripts/install_djl_serving.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ rm djl-serving_all.deb
3333

3434
mkdir -p /opt/djl/plugins
3535
if [ -n "$PYTORCH_JNI" ]; then
36-
djl-serving -i "ai.djl.pytorch:pytorch-jni:${PYTORCH_JNI}-${DJL_VERSION}"
36+
djl-serving -i "ai.djl.pytorch:pytorch-jni:${PYTORCH_JNI}-0.33.0"
3737
rm -rf /opt/djl/logs
3838
fi

0 commit comments

Comments
 (0)