5151 description : ' Wheel Build Server'
5252 type : choice
5353 options :
54- - ' ["self-hosted", "zen4"]'
5554 - ' ["self-hosted", "xeon5"]'
55+ - ' ["self-hosted", "zen4"]'
5656
5757env :
5858 CUDA_DEVICE_ORDER : PCI_BUS_ID
@@ -347,20 +347,20 @@ jobs:
347347 echo "sha256=$sha256"
348348 echo "SOURCE_DOWNLOADED=1" >> $GITHUB_ENV
349349
350- - name : Download source from github
351- if : env.SOURCE_DOWNLOADED == '' && !cancelled()
352- uses : actions/download-artifact@v4
353- with :
354- name : source
355- path : dist
356- run-id : ${{ github.run_id }}
357-
358- - name : Uncompress source
359- continue-on-error : true
360- run : |
361- find . -mindepth 1 ! -name "gptqmodel_source.tar.gz" -exec rm -rf {} +
362- ls -ahl .
363- tar -zxf gptqmodel_source.tar.gz
350+ # - name: Download source from github
351+ # if: env.SOURCE_DOWNLOADED == '' && !cancelled()
352+ # uses: actions/download-artifact@v4
353+ # with:
354+ # name: source
355+ # path: dist
356+ # run-id: ${{ github.run_id }}
357+
358+ # - name: Uncompress source
359+ # continue-on-error: true
360+ # run: |
361+ # find . -mindepth 1 ! -name "gptqmodel_source.tar.gz" -exec rm -rf {} +
362+ # ls -ahl .
363+ # tar -zxf gptqmodel_source.tar.gz
364364
365365 - name : Download wheel from local
366366 continue-on-error : true
@@ -415,11 +415,13 @@ jobs:
415415 timestamp=$(date +%s%3N)
416416 gpu_id=-1
417417
418+ url="http://$XEON5/gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }}"
419+ echo "$url"
418420 while [ "$gpu_id" -lt 0 ]; do
419- gpu_id=$(curl -s "http://$RUNNER/gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }} ")
421+ gpu_id=$(curl -s "$url ")
420422
421423 if [ "$gpu_id" -lt 0 ]; then
422- echo "http://$RUNNER /gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }} returned $gpu_id"
424+ echo "http://$XEON5 /gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }} returned $gpu_id"
423425 echo "No available GPU, waiting 5 seconds..."
424426 curl http://$XEON5/gpu/status2
425427 sleep 5
@@ -446,7 +448,7 @@ jobs:
446448
447449 - name : Release GPU
448450 if : always() && !contains(matrix.test_script, 'ipex')
449- run : curl -X GET "http://$RUNNER /gpu/release?id=${{ github.run_id }}&gpu=${{ env.CUDA_VISIBLE_DEVICES }}×tamp=${{ env.STEP_TIMESTAMP }}&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}"
451+ run : curl -X GET "http://$XEON5 /gpu/release?id=${{ github.run_id }}&gpu=${{ env.CUDA_VISIBLE_DEVICES }}×tamp=${{ env.STEP_TIMESTAMP }}&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}"
450452
451453 - name : Clean cache
452454 if : always()
@@ -510,20 +512,20 @@ jobs:
510512 echo "sha256=$sha256"
511513 echo "SOURCE_DOWNLOADED=1" >> $GITHUB_ENV
512514
513- - name : Download source from github
514- if : env.SOURCE_DOWNLOADED == '' && !cancelled()
515- uses : actions/download-artifact@v4
516- with :
517- name : source
518- path : dist
519- run-id : ${{ github.run_id }}
520-
521- - name : Uncompress source
522- continue-on-error : true
523- run : |
524- find . -mindepth 1 ! -name "gptqmodel_source.tar.gz" -exec rm -rf {} +
525- ls -ahl .
526- tar -zxf gptqmodel_source.tar.gz
515+ # - name: Download source from github
516+ # if: env.SOURCE_DOWNLOADED == '' && !cancelled()
517+ # uses: actions/download-artifact@v4
518+ # with:
519+ # name: source
520+ # path: dist
521+ # run-id: ${{ github.run_id }}
522+
523+ # - name: Uncompress source
524+ # continue-on-error: true
525+ # run: |
526+ # find . -mindepth 1 ! -name "gptqmodel_source.tar.gz" -exec rm -rf {} +
527+ # ls -ahl .
528+ # tar -zxf gptqmodel_source.tar.gz
527529
528530 - name : Download wheel from local
529531 continue-on-error : true
@@ -627,11 +629,12 @@ jobs:
627629 timestamp=$(date +%s%3N)
628630 gpu_id=-1
629631
632+ url="http://$XEON5/gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }}"
633+ echo "$url"
630634 while [ "$gpu_id" -lt 0 ]; do
631- gpu_id=$(curl -s "http://$RUNNER/gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }}")
632-
635+ gpu_id=$(curl -s "$url")
633636 if [ "$gpu_id" -lt 0 ]; then
634- echo "http://$RUNNER /gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }} returned $gpu_id"
637+ echo "http://$XEON5 /gpu/get?id=${{ github.run_id }}×tamp=$timestamp&test=${{ matrix.test_script }}&runner=${RUNNER_NAME}&exclusive=${{ github.event.inputs.exclusive-gpu }} returned $gpu_id"
635638 echo "No available GPU, waiting 5 seconds..."
636639 curl http://$XEON5/gpu/status2
637640 sleep 5
@@ -664,7 +667,7 @@ jobs:
664667 pytest --durations=0 tests/${{ matrix.test_script }}.py || { echo "ERROR=1" >> $GITHUB_ENV; exit 1; }
665668 execution_time=$(( $(date +%s) - start_time ))
666669 echo "$((execution_time / 60))m $((execution_time % 60))s"
667- curl "http://$RUNNER /gpu/log_test_vram?id=${{ github.run_id }}&gpu=${{ env.CUDA_VISIBLE_DEVICES }}&range=$execution_time&unit=second&test=${{ matrix.test_script }}"
670+ curl "http://$XEON5 /gpu/log_test_vram?id=${{ github.run_id }}&gpu=${{ env.CUDA_VISIBLE_DEVICES }}&range=$execution_time&unit=second&test=${{ matrix.test_script }}"
668671
669672 - name : Release GPU
670673 if : always() && !contains(matrix.test_script, 'ipex') && !contains(matrix.test_script, 'xpu')
0 commit comments