浏览代码

ensure localhost

justheuristic 3 年之前
父节点
当前提交
1c6291eb77
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      .github/workflows/run-tests.yaml

+ 3 - 4
.github/workflows/run-tests.yaml

@@ -58,19 +58,18 @@ jobs:
       - name: Test
         run: |
 
-          hivemind-dht &> dht.log &
+          hivemind-dht --host_maddrs /ip4/127.0.0.1/tcp/0 &> dht.log &
           INITIAL_PID=$$
           sleep 5
           export INITIAL_PEERS=$(python -c "with open('dht.log') as f: print(f.readlines()[1].split()[-1])" )
           echo "Initial peer: ${INITIAL_PEERS}"
           cat dht.log
  
-          python -m cli.run_server --converted_model_name_or_path bloom-testing/test-bloomd-350m \
-            --block_indices 0:12 --torch_dtype float32 --initial_peers $INITIAL_PEERS --throughput 1 &
+          python -m cli.run_server --converted_model_name_or_path bloom-testing/test-bloomd-350m --block_indices 0:12 \
+            --torch_dtype float32 --host_maddrs /ip4/127.0.0.1/tcp/0 --initial_peers $INITIAL_PEERS --throughput 1 &
           SERVER1_PID=$$
           
           sleep 60  # wait for server to download layers
-          ps aux | grep dht
           
           # test individual blocks
           export PYTHONPATH=. REF_NAME=bloom-testing/test-bloomd-350m