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
c42b1a9a
"docs/features" did not exist on "39d645e58647d6adb074650e46be5de25f3f3bc6"
Unverified
Commit
c42b1a9a
authored
May 13, 2025
by
Tanmay Verma
Committed by
GitHub
May 13, 2025
Browse files
build: Suffix dev version to trtllm wheel (#1057)
parent
1fa431c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
container/build.sh
container/build.sh
+1
-0
container/build_trtllm_wheel.sh
container/build_trtllm_wheel.sh
+29
-1
No files found.
container/build.sh
View file @
c42b1a9a
...
...
@@ -89,6 +89,7 @@ TENSORRTLLM_PIP_WHEEL_DIR="/tmp/trtllm_wheel/"
# Important Note: This commit is not used in our CI pipeline. See the CI
# variables to learn how to run a pipeline with a specific commit.
TRTLLM_COMMIT
=
83f37614ef735d251281136c3c05b1fecf8ef68b
# TensorRT-LLM PyPI index URL
TENSORRTLLM_INDEX_URL
=
"https://pypi.python.org/simple"
TENSORRTLLM_PIP_WHEEL
=
""
...
...
container/build_trtllm_wheel.sh
View file @
c42b1a9a
...
...
@@ -55,7 +55,31 @@ git checkout $TRTLLM_COMMIT
git submodule update
--init
--recursive
git lfs pull
# Build the TRT-LLM base image.
VERSION_FILE
=
"tensorrt_llm/version.py"
# Check if file exists
if
[
!
-f
"
$VERSION_FILE
"
]
;
then
echo
"Error:
$VERSION_FILE
not found"
exit
1
fi
# Create a backup of the original version file
cp
$VERSION_FILE
${
VERSION_FILE
}
.bak
# Check if version line exists
if
!
grep
-q
"^__version__"
"
$VERSION_FILE
"
;
then
echo
"Error: __version__ not found in
$VERSION_FILE
"
exit
1
fi
# Append suffix to version
COMMIT_VERSION
=
$(
git rev-parse
--short
HEAD
)
sed
-i
"s/__version__ =
\"\(
.*
\)\"
/__version__ =
\"\1
+dev
${
COMMIT_VERSION
}
\"
/"
"
$VERSION_FILE
"
echo
"Updated version:"
grep
"__version__"
"
$VERSION_FILE
"
make
-C
docker wheel_build
# Copy the wheel to the host
...
...
@@ -65,6 +89,10 @@ docker create --name trtllm_wheel_container docker.io/tensorrt_llm/wheel:latest
docker
cp
trtllm_wheel_container:/src/tensorrt_llm/build
$OUTPUT_DIR
/
cp
$OUTPUT_DIR
/build/
*
.whl
$OUTPUT_DIR
/
docker
rm
trtllm_wheel_container
||
true
# Restore the original version file
mv
${
VERSION_FILE
}
.bak
$VERSION_FILE
)
# Store the commit hash in the output directory to ensure the wheel is built from the correct commit.
...
...
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