-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#0: Merge branch 'main' of https://github.com/tenstorrent/tt-metal in…
…to qwen-decode
- Loading branch information
Showing
431 changed files
with
22,522 additions
and
2,292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*tokenizer.json filter=lfs diff=lfs merge=lfs -text | ||
tt-train/sources/examples/nano_gpt/data/shakespeare.txt filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "[post-commit] tt-train C++ tests" | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
static-checks: | ||
uses: ./.github/workflows/all-static-checks.yaml | ||
secrets: inherit | ||
build-artifact: | ||
uses: ./.github/workflows/build-artifact.yaml | ||
secrets: inherit | ||
tt-train-cpp-unit-tests: | ||
needs: build-artifact | ||
secrets: inherit | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
test-group: [ | ||
{ arch: wormhole_b0, runner-label: N150 }, | ||
{ arch: wormhole_b0, runner-label: N300 }, | ||
] | ||
uses: ./.github/workflows/tt-train-post-commit.yaml | ||
with: | ||
arch: ${{ matrix.test-group.arch}} | ||
runner-label: ${{ matrix.test-group.runner-label}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: "[internal] tt-train C++ tests impl" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
arch: | ||
required: true | ||
type: string | ||
runner-label: | ||
required: true | ||
type: string | ||
timeout: | ||
required: false | ||
type: number | ||
default: 20 | ||
workflow_dispatch: | ||
inputs: | ||
arch: | ||
required: true | ||
type: choice | ||
options: | ||
- wormhole_b0 | ||
runner-label: | ||
required: true | ||
type: choice | ||
options: | ||
- N150 | ||
- N300 | ||
timeout: | ||
required: false | ||
type: number | ||
default: 20 | ||
|
||
jobs: | ||
models: | ||
strategy: | ||
# Do not fail-fast because we need to ensure all tests go to completion | ||
# so we try not to get hanging machines | ||
fail-fast: false | ||
matrix: | ||
test-group: [ | ||
{name: tt-train, cmd: ctest --no-tests=error --output-on-failure}, | ||
] | ||
name: ${{ matrix.test-group.name }} ${{ inputs.arch }} ${{ inputs.runner-label }} | ||
env: | ||
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }} | ||
ARCH_NAME: ${{ inputs.arch }} | ||
LOGURU_LEVEL: INFO | ||
LD_LIBRARY_PATH: ${{ github.workspace }}/build/lib | ||
TEST_DATA_DIR: ${{ github.workspace }}/tt-train/tests/test_data | ||
runs-on: | ||
- ${{ inputs.runner-label }} | ||
- cloud-virtual-machine | ||
- in-service | ||
steps: | ||
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected] | ||
- name: Set up dynamic env vars for build | ||
run: | | ||
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV | ||
- uses: ./.github/actions/prepare-metal-run | ||
with: | ||
arch: ${{ inputs.arch }} | ||
- name: ${{ matrix.test-group.name }} tests | ||
timeout-minutes: ${{ inputs.timeout }} | ||
run: | | ||
source ${{ github.workspace }}/python_env/bin/activate | ||
export PYTHONPATH=$TT_METAL_HOME | ||
cd $TT_METAL_HOME | ||
cp ./build/tt-train/3rd_party/wandb-cpp/libwandbcpp.so build/lib/ | ||
find ./build -type f -name "*.tcl" -o -name "*.cmake" -exec sed -i "s|/home/ubuntu/[^/]*/_work/tt-metal/tt-metal/build_Release|${TT_METAL_HOME}/build|g" {} + | ||
cd $TT_METAL_HOME/build/tt-train | ||
ldd tests/ttml_tests || true | ||
${{ matrix.test-group.cmd }} | ||
- uses: ./.github/actions/slack-report | ||
if: ${{ failure() }} | ||
with: | ||
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
owner: U07ASPTGJTS # Denys | ||
- name: Generate system logs on failure | ||
uses: ./.github/actions/generate-system-logs | ||
if: ${{ failure() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.