-
Notifications
You must be signed in to change notification settings - Fork 66
Add JetStream to MaxText container #1058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
7517eba
333f231
c952cb3
ddc4124
ab21dae
d9f5c18
9d59a81
9b7426a
07c5a54
d726b1b
43b2bd0
a4eb6d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
yhtang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
yhtang marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -588,3 +588,35 @@ jobs: | |
| with: | ||
| MAXTEXT_IMAGE: ${{ needs.build-maxtext.outputs.DOCKER_TAG_FINAL }} | ||
| secrets: inherit | ||
|
|
||
| test-jetstream: | ||
| needs: build-maxtext | ||
| if: inputs.ARCHITECTURE == 'amd64' # no arm64 gpu runners | ||
| uses: ./.github/workflows/_test_unit.yaml | ||
| with: | ||
| TEST_NAME: jetstream | ||
| EXECUTE: | | ||
| docker run --shm-size=1g --gpus all ${{ needs.build-maxtext.outputs.DOCKER_TAG_FINAL }} \ | ||
| bash <<"EOF" |& tee test-jetstream.log | ||
| cd /opt/jetstream | ||
| pip install -r requirements.txt | ||
DwarKapex marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| export CUDA_VISIBLE_DEVICES=0 | ||
|
||
| python -m unittest -v jetstream.tests.core.test_orchestrator | ||
| python -m jetstream.engine.mock_engine_test | ||
| python -m jetstream.core.orchestrator_test | ||
| python -m jetstream.core.server_test | ||
| EOF | ||
| STATISTICS_SCRIPT: | | ||
| summary_line=$(tail -n1 test-jetstream.log) | ||
| errors=$(echo $summary_line | grep -oE '[0-9]+ error' | awk '{print $1} END { if (!NR) print 0}') | ||
| failed_tests=$(echo $summary_line | grep -oE '[0-9]+ failed' | awk '{print $1} END { if (!NR) print 0}') | ||
| passed_tests=$(echo $summary_line | grep -oE '[0-9]+ passed' | awk '{print $1} END { if (!NR) print 0}') | ||
| total_tests=$((failed_tests + passed_tests)) | ||
| echo "TOTAL_TESTS=${total_tests}" >> $GITHUB_OUTPUT | ||
| echo "ERRORS=${errors}" >> $GITHUB_OUTPUT | ||
| echo "PASSED_TESTS=${passed_tests}" >> $GITHUB_OUTPUT | ||
| echo "FAILED_TESTS=${failed_tests}" >> $GITHUB_OUTPUT | ||
| ARTIFACTS: | | ||
| test-jetstream.log | ||
| secrets: inherit | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.