|
| 1 | +name: Trace Ace V121 Tail Recovery |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [agent/trace-ace-mastery-events, agent/v111-runner] |
| 6 | + paths: |
| 7 | + - '.github/workflows/trace-ace-v121-tail-recovery.yml' |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +concurrency: |
| 11 | + group: trace-ace-v121-tail-recovery |
| 12 | + cancel-in-progress: false |
| 13 | + |
| 14 | +env: |
| 15 | + PREPARED_RUN_ID: '32400309220' |
| 16 | + ORIGINAL_RUN_ID: '32402681183' |
| 17 | + |
| 18 | +jobs: |
| 19 | + embed_tail: |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + max-parallel: 16 |
| 23 | + matrix: |
| 24 | + shard: [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127] |
| 25 | + runs-on: ubuntu-24.04 |
| 26 | + timeout-minutes: 10 |
| 27 | + permissions: |
| 28 | + actions: read |
| 29 | + contents: read |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@v4 |
| 32 | + - uses: actions/setup-python@v5 |
| 33 | + with: |
| 34 | + python-version: '3.12' |
| 35 | + cache: pip |
| 36 | + - name: Install exact embedding dependencies |
| 37 | + run: python -m pip install --disable-pip-version-check numpy fastembed==0.8.0 |
| 38 | + - name: Download exact frozen V121 prepared artifact |
| 39 | + uses: actions/download-artifact@v4 |
| 40 | + with: |
| 41 | + name: v121-prepared |
| 42 | + path: v121_prepared |
| 43 | + repository: heathsanchez/mathgraph |
| 44 | + run-id: ${{ env.PREPARED_RUN_ID }} |
| 45 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 46 | + - name: Verify frozen manifest |
| 47 | + run: | |
| 48 | + test -f v121_prepared/manifest.json |
| 49 | + grep -q 'b1612f9fe4558680e468afb2a2452b75c603c244934fe62f7345feee68a61bc1' v121_prepared/manifest.json |
| 50 | + - name: Embed exact frozen shard ${{ matrix.shard }} |
| 51 | + run: | |
| 52 | + cd competitions/trace_the_ace |
| 53 | + python v121_embed_batch1_transport.py --dir ../../v121_prepared \ |
| 54 | + --shard ${{ matrix.shard }} --shards 128 \ |
| 55 | + --out ../../v121_embeddings_shard_${{ matrix.shard }}.npz |
| 56 | + - uses: actions/upload-artifact@v4 |
| 57 | + with: |
| 58 | + name: v121-embeddings-${{ matrix.shard }} |
| 59 | + path: v121_embeddings_shard_${{ matrix.shard }}.npz |
| 60 | + retention-days: 2 |
| 61 | + compression-level: 0 |
| 62 | + |
| 63 | + evaluate_union: |
| 64 | + needs: embed_tail |
| 65 | + runs-on: ubuntu-24.04 |
| 66 | + timeout-minutes: 20 |
| 67 | + permissions: |
| 68 | + actions: read |
| 69 | + contents: read |
| 70 | + steps: |
| 71 | + - uses: actions/checkout@v4 |
| 72 | + - uses: actions/setup-python@v5 |
| 73 | + with: |
| 74 | + python-version: '3.12' |
| 75 | + cache: pip |
| 76 | + - name: Install evaluation dependencies |
| 77 | + run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn fastembed==0.8.0 |
| 78 | + - name: Download exact frozen V121 prepared artifact |
| 79 | + uses: actions/download-artifact@v4 |
| 80 | + with: |
| 81 | + name: v121-prepared |
| 82 | + path: v121_prepared |
| 83 | + repository: heathsanchez/mathgraph |
| 84 | + run-id: ${{ env.PREPARED_RUN_ID }} |
| 85 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 86 | + - name: Download successful original shards 0 through 64 |
| 87 | + env: |
| 88 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 89 | + run: | |
| 90 | + mkdir -p v121_embedding_shards/original |
| 91 | + for i in $(seq 0 64); do |
| 92 | + gh run download "$ORIGINAL_RUN_ID" -n "v121-embeddings-$i" -D "v121_embedding_shards/original/$i" |
| 93 | + done |
| 94 | + - name: Download recovered tail shards 65 through 127 |
| 95 | + uses: actions/download-artifact@v4 |
| 96 | + with: |
| 97 | + pattern: v121-embeddings-* |
| 98 | + path: v121_embedding_shards/recovered |
| 99 | + merge-multiple: false |
| 100 | + - name: Evaluate unchanged frozen V121 precommit |
| 101 | + run: | |
| 102 | + cd competitions/trace_the_ace |
| 103 | + python v121_staged_transport.py evaluate --dir ../../v121_prepared \ |
| 104 | + --embeddings ../../v121_embedding_shards --out ../../v121_pretrained_semantic_residual.json |
| 105 | + - name: Show decision |
| 106 | + run: cat v121_pretrained_semantic_residual.json |
| 107 | + - uses: actions/upload-artifact@v4 |
| 108 | + with: |
| 109 | + name: trace-ace-v121-pretrained-semantic-residual |
| 110 | + path: v121_pretrained_semantic_residual.json |
| 111 | + retention-days: 14 |
0 commit comments