File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 55
55
run : |
56
56
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
57
57
echo "container_name=${container_name}" >> "$GITHUB_ENV"
58
- docker run -d -t --gpus all --name ${container_name} --net=host -v /dev/shm:/dev/shm --shm-size=32G \
58
+ docker run -d -t --gpus all -it - -name ${container_name} --net=host -v /dev/shm:/dev/shm --shm-size=32G \
59
59
-v $work_dir/../../..:$work_dir/../../.. \
60
60
-v $work_dir:/workspace \
61
61
-v /home/.cache/pip:/home/.cache/pip \
@@ -117,6 +117,7 @@ jobs:
117
117
echo "Check models:"
118
118
ls -l ./models
119
119
echo "Test Start"
120
+ hostname
120
121
timeout 30m bash scripts/regression/ci_model_unittest.sh ${paddle_whl}
121
122
'
122
123
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ if [[ ${FLAGS_enable_CI} == "true" ]] || [[ ${FLAGS_enable_CE} == "true" ]];then
109
109
echo " Check docker Cuda Version"
110
110
nvcc -V
111
111
cat /usr/local/cuda/version.txt
112
+ echo " Check nvidia-smi"
113
+ nvidia-smi
114
+ python -c " import paddle; print(paddle.device.get_device_count())"
112
115
PYTHONPATH=$( pwd) \
113
116
COVERAGE_SOURCE=paddleformers \
114
117
python -m pytest -s -v ${model_unittest_path} > ${log_path} /model_unittest.log 2>&1
You can’t perform that action at this time.
0 commit comments