|
@@ -82,8 +82,7 @@ jobs:
|
|
|
export REF_NAME=bigscience/bloom-560m
|
|
|
|
|
|
python -m cli.run_server --converted_model_name_or_path $MODEL_NAME --block_indices 0:12 \
|
|
|
- --torch_dtype float32 --identity tests/test.id --host_maddrs /ip4/127.0.0.1/tcp/31337 \
|
|
|
- --throughput 1 &> server1.log
|
|
|
+ --torch_dtype float32 --identity tests/test.id --host_maddrs /ip4/127.0.0.1/tcp/31337 --throughput 1 &
|
|
|
SERVER1_PID=$!
|
|
|
|
|
|
sleep 5 # wait for the first server to initialize DHT
|
|
@@ -95,9 +94,17 @@ jobs:
|
|
|
--torch_dtype float32 --initial_peers $INITIAL_PEERS --throughput 1 &> server2.log &
|
|
|
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
|
|
|
|
|
|
PYTHONPATH=. pytest tests --durations=0 --durations-min=1.0 -v
|
|
|
|
|
|
- kill -s SIGINT $SERVER1_PID $SERVER2_PID
|
|
|
+ kill -s SIGINT $SERVER1_PID $SERVER2_PID $SERVER3_PID $SERVER4_PID
|
|
|
echo "Done!"
|