Skip to content

(T3K) T3000 demo tests #367

(T3K) T3000 demo tests

(T3K) T3000 demo tests #367

name: "(T3K) T3000 demo tests"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1,3,5' # This cron schedule runs the workflow every Monday/Wednesday/Friday at 12am UTC
jobs:
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
with:
arch: '["wormhole_b0"]'
secrets: inherit
t3000-demo-tests:
needs: build-artifact
strategy:
fail-fast: false
matrix:
test-group: [
{ name: "t3k_falcon40b_tests", arch: wormhole_b0, cmd: run_t3000_falcon40b_tests, timeout: 50, owner_id: U044T8U8DEF}, #Johanna Rock
{ name: "t3k_llama3_70b_tests", arch: wormhole_b0, cmd: run_t3000_llama3_70b_tests, timeout: 30, owner_id: U03FJB5TM5Y}, #Colman Glagovich
{ name: "t3k_falcon7b_tests", arch: wormhole_b0, cmd: run_t3000_falcon7b_tests, timeout: 90, owner_id: U05RWH3QUPM}, #Salar Hosseini
{ name: "t3k_mixtral_tests", arch: wormhole_b0, cmd: run_t3000_mixtral_tests, timeout: 30, owner_id: U03PUAKE719}, # Miguel Tairum
]
name: ${{ matrix.test-group.name }}
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ matrix.test-group.arch }}
LOGURU_LEVEL: INFO
LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib
environment: dev
runs-on: [arch-wormhole_b0, "config-t3000", "in-service", "pipeline-perf"]
steps:
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected]
- name: Enable performance mode
run: |
sudo cpupower frequency-set -g performance
- name: Set up dynamic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: TTMetal_build_${{ matrix.test-group.arch }}
- name: Extract files
run: tar -xvf ttm_${{ matrix.test-group.arch }}.tar
- uses: ./.github/actions/install-python-deps
- name: Run demo regression tests
shell: bash {0}
timeout-minutes: ${{ matrix.test-group.timeout }}
run: |
source ${{ github.workspace }}/python_env/bin/activate
cd $TT_METAL_HOME
export PYTHONPATH=$TT_METAL_HOME
source ${{ github.workspace }}/tests/scripts/t3000/run_t3000_demo_tests.sh
${{ matrix.test-group.cmd }}
- name: Save environment data
if: ${{ matrix.test-group.name == 't3k_falcon7b_tests' && success() }}
env:
PYTHONPATH: ${{ github.workspace }}
run: |
source ${{ github.workspace }}/python_env/bin/activate
python3 .github/scripts/data_analysis/create_benchmark_environment_csv.py
- name: Upload benchmark data
if: ${{ matrix.test-group.name == 't3k_falcon7b_tests' && success() }}
uses: ./.github/actions/upload-data-via-sftp
with:
ssh-private-key: ${{ secrets.SFTP_BENCHMARK_WRITER_KEY }}
sftp-batchfile: .github/actions/upload-data-via-sftp/benchmark_data_batchfile.txt
username: ${{ secrets.SFTP_BENCHMARK_WRITER_USERNAME }}
hostname: ${{ secrets.SFTP_BENCHMARK_WRITER_HOSTNAME }}
- uses: ./.github/actions/slack-report
if: ${{ failure() }}
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
owner: ${{ matrix.test-group.owner_id }}
- name: Disable performance mode
if: always()
run: |
sudo cpupower frequency-set -g ondemand