File tree Expand file tree Collapse file tree
experimental/jetstream-maxtext-stable-stack/test_script Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 - name : Cleanup old docker images
3636 run : docker system prune --all --force
3737 - name : Authenticate gcloud
38- run : gcloud auth configure-docker us-docker.pkg.dev --quiet
38+ run : gcloud auth configure-docker gcr.io --quiet
3939
4040 build_stable_stack :
4141 name : Build Stable Stack
Original file line number Diff line number Diff line change 1- # TODO: need a public path
2- export PARAM_PATH=${PARAM_PATH}
1+ #! /bin/bash
2+
3+ SERVER_PID=" "
4+ CLIENT_PID=" "
35
46python -c " import nltk; nltk.download('punkt')"
57
@@ -26,8 +28,10 @@ python -m MaxText.maxengine_server \
2628 model_call_mode=inference \
2729 sparse_matmul=False \
2830 use_chunked_prefill=true \
29- prefill_chunk_size=64 \
30- load_parameters_path=${PARAM_PATH} &
31+ prefill_chunk_size=256 \
32+ load_parameters_path=gs://jetstream-runner/8-7B-int8 &
33+
34+ SERVER_PID=$!
3135
3236popd
3337
@@ -41,4 +45,21 @@ python ./JetStream/benchmarks/benchmark_serving.py \
4145 --num-prompts 100 \
4246 --max-output-length 2048 \
4347 --dataset openorca \
44- --run-eval True
48+ --run-eval True &
49+
50+ CLIENT_PID=$!
51+
52+ while true ; do
53+ # If server is not running, it is crash. Terminate the script.
54+ if ! kill -0 " ${SERVER_PID} " 2> /dev/null; then
55+ exit 1
56+ fi
57+
58+ # If client is done
59+ if ! kill -0 " ${CLIENT_PID} " 2> /dev/null; then
60+ wait $CLIENT_PID
61+ exit $?
62+ fi
63+
64+ sleep 1
65+ done
You can’t perform that action at this time.
0 commit comments