justheuristic 3 gadi atpakaļ
vecāks
revīzija
03cd31ea7e
1 mainītis faili ar 6 papildinājumiem un 9 dzēšanām
  1. 6 9
      .github/workflows/run-tests.yaml

+ 6 - 9
.github/workflows/run-tests.yaml

@@ -26,6 +26,11 @@ jobs:
 #        run: |
 #        run: |
 #          python -m pip install --upgrade pip
 #          python -m pip install --upgrade pip
 #          pip install -r requirements.txt
 #          pip install -r requirements.txt
+#      - name: Delete test models older than 72 hours
+#        run: |
+#          export HF_TAG=$(python -c "import os; print(os.environ.get('GITHUB_HEAD_REF') or os.environ.get('GITHUB_REF_NAME'))")
+#          python -c "from huggingface_hub import delete_repo; delete_repo(token='$BLOOM_TESTING_WRITE_TOKEN', \
+#          name='test-bloomd-560m-$HF_TAG', organization='bloom-testing')" || true
 #      - name: Delete previous model, if exists
 #      - name: Delete previous model, if exists
 #        run: |
 #        run: |
 #          export HF_TAG=$(python -c "import os; print(os.environ.get('GITHUB_HEAD_REF') or os.environ.get('GITHUB_REF_NAME'))")
 #          export HF_TAG=$(python -c "import os; print(os.environ.get('GITHUB_HEAD_REF') or os.environ.get('GITHUB_REF_NAME'))")
@@ -90,17 +95,9 @@ jobs:
             --torch_dtype float32 --initial_peers $INITIAL_PEERS --throughput 1 &> server2.log &
             --torch_dtype float32 --initial_peers $INITIAL_PEERS --throughput 1 &> server2.log &
           SERVER2_PID=$!
           SERVER2_PID=$!
 
 
-          python -m cli.run_server --converted_model_name_or_path $MODEL_NAME --block_indices 0:6 \
-            --torch_dtype float32 --initial_peers $INITIAL_PEERS --throughput 1 &> server3.log &
-          SERVER3_PID=$!
-
-          python -m cli.run_server --converted_model_name_or_path $MODEL_NAME --block_indices 4:16 \
-            --torch_dtype float32 --initial_peers $INITIAL_PEERS --throughput 1 &> server4.log &
-          SERVER4_PID=$!
-
           sleep 60  # wait for server to download layers
           sleep 60  # wait for server to download layers
           
           
           PYTHONPATH=. pytest tests --durations=0 --durations-min=1.0 -v
           PYTHONPATH=. pytest tests --durations=0 --durations-min=1.0 -v
           
           
-          kill -s SIGINT $SERVER1_PID $SERVER2_PID $SERVER3_PID $SERVER4_PID
+          kill -s SIGINT $SERVER1_PID $SERVER2_PID
           echo "Done!"
           echo "Done!"