Skip to content

Commit

Permalink
Use numpy < 2.0.0 to calculate metrics (#915)
Browse files Browse the repository at this point in the history
TensorFlow has not adopt numpy2 yet, that's why to calculate metrics
need to install numpy version less than 2.0.0 to avoid breakage.
  • Loading branch information
DwarKapex authored Jun 24, 2024
1 parent 9ce1aa7 commit c50f26d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_test_maxtext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ jobs:
- name: Run pytest
shell: bash -eux {0}
run: |
pip install pytest pytest-reportlog tensorboard
pip install 'numpy<2.0.0' pytest pytest-reportlog tensorboard
for i in ${{ inputs.FW_NAME }}-${GITHUB_RUN_ID}-*; do
JOB_NAME=$(echo $i | awk -F "${GITHUB_RUN_ID}-" '{print $2}')
METRIC_PATH=${JOB_NAME}_metrics.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_test_pax_rosetta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ jobs:
- name: Run pytest
shell: bash -eux {0}
run: |
pip install pytest pytest-reportlog tensorboard
pip install 'numpy<2.0.0' pytest pytest-reportlog tensorboard
for i in ${{ inputs.FW_NAME }}-${GITHUB_RUN_ID}-*; do
JOB_NAME=$(echo $i | awk -F "${GITHUB_RUN_ID}-" '{print $2}')
METRIC_PATH=${JOB_NAME}_metrics.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_test_t5x_rosetta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ jobs:
- name: Run pytest
shell: bash -eux {0}
run: |
pip install pytest pytest-reportlog tensorboard
pip install 'numpy<2.0.0' pytest pytest-reportlog tensorboard
for i in ${{ inputs.FW_NAME }}-${GITHUB_RUN_ID}-* ${{ inputs.FW_NAME }}-vit-${GITHUB_RUN_ID}-*; do
JOB_NAME=$(echo $i | awk -F "${GITHUB_RUN_ID}-" '{print $2}')
METRIC_PATH=${JOB_NAME}_metrics.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_test_upstream_pax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ jobs:
- name: Run pytest
shell: bash -eux {0}
run: |
pip install pytest pytest-reportlog tensorboard
pip install 'numpy<2.0.0' pytest pytest-reportlog tensorboard
for i in ${{ inputs.FW_NAME }}-${GITHUB_RUN_ID}-*; do
JOB_NAME=$(echo $i | awk -F "${GITHUB_RUN_ID}-" '{print $2}')
METRIC_PATH=${JOB_NAME}_metrics.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_test_upstream_t5x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ jobs:
- name: Run pytest
shell: bash -eux {0}
run: |
pip install pytest pytest-reportlog tensorboard
pip install 'numpy<2.0.0' pytest pytest-reportlog tensorboard
for i in ${{ inputs.FW_NAME }}-${GITHUB_RUN_ID}-*; do
JOB_NAME=$(echo $i | awk -F "${GITHUB_RUN_ID}-" '{print $2}')
METRIC_PATH=${JOB_NAME}_metrics.json
Expand Down

0 comments on commit c50f26d

Please sign in to comment.