Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Lmdeploy
Commits
2537c5ed
Unverified
Commit
2537c5ed
authored
Sep 13, 2023
by
Chen Xin
Committed by
GitHub
Sep 13, 2023
Browse files
more general pypi ci (#412)
parent
e37915e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
builder/manywheel/build_wheel.sh
builder/manywheel/build_wheel.sh
+1
-4
builder/manywheel/entrypoint_build.sh
builder/manywheel/entrypoint_build.sh
+0
-3
No files found.
builder/manywheel/build_wheel.sh
View file @
2537c5ed
...
...
@@ -6,8 +6,6 @@ PLAT_NAME="$2"
DOCKER_TAG
=
"
$3
"
OUTPUT_DIR
=
"
$4
"
GIT_REMOTE
=
${
GIT_REMOTE
:-
https
://github.com/InternLM/lmdeploy
}
GIT_BRANCH
=
${
GIT_BRANCH
:-
main
}
DOCKER_IMAGE
=
"openmmlab/lmdeploy-builder:
${
DOCKER_TAG
}
"
export
USERID
=
$(
id
-u
)
export
GROUPID
=
$(
id
-g
)
...
...
@@ -20,8 +18,7 @@ docker run --rm -it \
--env
PLAT_NAME
=
"
${
PLAT_NAME
}
"
\
--env
USERID
=
"
${
USERID
}
"
\
--env
GROUPID
=
"
${
GROUPID
}
"
\
--env
GIT_BRANCH
=
"
${
GIT_BRANCH
}
"
\
--env
GIT_REMOTE
=
"
${
GIT_REMOTE
}
"
\
--volume
"
$(
pwd
)
/../../:/lmdeploy"
\
--volume
"
$(
pwd
)
/
${
OUTPUT_DIR
}
:/lmdeploy_build"
\
--volume
"
$(
pwd
)
/entrypoint_build.sh:/entrypoint_build.sh"
\
--entrypoint
/entrypoint_build.sh
\
...
...
builder/manywheel/entrypoint_build.sh
View file @
2537c5ed
...
...
@@ -7,12 +7,9 @@ export USERID=${USERID}
export
GROUPID
=
${
GROUPID
}
export
CUDAVER
=
$(
nvcc
--version
|
sed
-n
's/^.*release \([0-9]\+\).*$/\1/p'
)
export
GIT_REMOTE
=
${
GIT_REMOTE
:-
https
://github.com/InternLM/lmdeploy
}
export
GIT_BRANCH
=
${
GIT_BRANCH
:-
main
}
source
/opt/conda/bin/activate
conda activate
$PYTHON_VERSION
git clone
-b
${
GIT_BRANCH
}
${
GIT_REMOTE
}
cd
lmdeploy
mkdir
build
&&
cd
build
bash ../generate.sh
...
...
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