Skip to content

Commit 838de53

Browse files
authored
Add speculative decoding approval check (#4284)
1 parent 55124f8 commit 838de53

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/check_approval.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ if [ ${HAS_CUSTOM_REGISTRER} ] && [ "${PR_ID}" != "" ]; then
5050
check_approval "$echo_line3" 1 XiaoguangHu01 jeff41404 phlrain
5151
fi
5252

53+
SPECULATIVE_DECODING_LIST=(
54+
"fastdeploy/spec_decode"
55+
"custom_ops/gpu_ops/speculate_decoding"
56+
)
57+
58+
HAS_SPECULATIVE_DECODING_MODIFY=`git diff upstream/$BRANCH --name-only | grep -E $(printf -- "-e %s " "${SPECULATIVE_DECODING_LIST[@]}") || true`
59+
if [ ${HAS_SPECULATIVE_DECODING_MODIFY} ] && [ "${PR_ID}" != "" ]; then
60+
echo_line1="You must have one FastDeploy RD (freeliuzc(liuzichang01), Deleter-D(wangyanpeng04)) approval for modifing [$(IFS=', '; echo "${SPECULATIVE_DECODING_LIST[*]}")]."
61+
check_approval "$echo_line1" 1 freeliuzc Deleter-D
62+
fi
5363

5464
if [ -n "${echo_list}" ];then
5565
echo "****************"

0 commit comments

Comments
 (0)