Skip to content

Commit fa29404

Browse files
committed
Update base for Update on "[executorch][flat_tensor] DataMap implementation"
DataMap implementation that * Loads a flat_tensor file * Populates a map with {fqn: tensor} and {fqn: TensorLayout}. * Makes tensor information available via the named_data_map.h interface. For now, DataMap doesn't store the DataLoader. - If/when tensors are in their own segments, DataMap should also store a DataLoader. Differential Revision: [D67064580](https://our.internmc.facebook.com/intern/diff/D67064580/) [ghstack-poisoned]
2 parents 965a986 + 3413971 commit fa29404

File tree

717 files changed

+13221
-7166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

717 files changed

+13221
-7166
lines changed

.ci/scripts/gather_benchmark_configs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ class DisabledConfig(NamedTuple):
7171
config_name="mps",
7272
github_issue="https://github.com/pytorch/executorch/issues/7904",
7373
),
74+
DisabledConfig(
75+
config_name="qnn_q8",
76+
github_issue="https://github.com/pytorch/executorch/issues/7946",
77+
),
7478
],
7579
"edsr": [
7680
DisabledConfig(

.ci/scripts/test_eval_llama_mmlu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ run_and_verify() {
4343
--tasks mmlu \
4444
-f 5 \
4545
--max_seq_length 2048 \
46+
--max_context_length 2048 \
4647
--limit 5 > result.txt
4748

4849
# Verify result.txt

.ci/scripts/test_eval_llama_wikitext.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ run_and_verify() {
4141
-kv \
4242
-d fp32 \
4343
--max_seq_length 2048 \
44+
--max_context_length 2048 \
4445
--limit 5 > result.txt
4546

4647
# Verify result.txt

.github/workflows/_android.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ on:
77
jobs:
88
build-llm-demo:
99
name: build-llm-demo
10-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
10+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
11+
permissions:
12+
id-token: write
13+
contents: read
1114
with:
1215
runner: linux.2xlarge
1316
docker-image: executorch-ubuntu-22.04-clang12-android

.github/workflows/_unittest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ on:
1414

1515
jobs:
1616
linux:
17-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
17+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
18+
permissions:
19+
id-token: write
20+
contents: read
1821
with:
1922
runner: linux.2xlarge
2023
docker-image: ${{ inputs.docker-image }}

.github/workflows/android-perf.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ jobs:
155155

156156
export-models:
157157
name: export-models
158-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
158+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
159+
permissions:
160+
id-token: write
161+
contents: read
159162
needs: set-parameters
160163
secrets: inherit
161164
strategy:
@@ -332,7 +335,10 @@ jobs:
332335
333336
build-benchmark-app:
334337
name: build-benchmark-app
335-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
338+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
339+
permissions:
340+
id-token: write
341+
contents: read
336342
needs: set-parameters
337343
with:
338344
runner: linux.2xlarge

.github/workflows/android-release-artifacts.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
3131
build-aar:
3232
name: build-aar
3333
needs: check-if-aar-exists
34-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
34+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
35+
permissions:
36+
id-token: write
37+
contents: read
3538
with:
3639
runner: linux.2xlarge
3740
docker-image: executorch-ubuntu-22.04-clang12-android

.github/workflows/apple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: set_version
3838
shell: bash
3939
run: |
40-
VERSION="0.4.0.$(TZ='PST8PDT' date +%Y%m%d)"
40+
VERSION="0.5.0.$(TZ='PST8PDT' date +%Y%m%d)"
4141
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
4242
4343
build-demo-ios:

.github/workflows/doc-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ on:
1515

1616
jobs:
1717
build:
18-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
18+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
19+
permissions:
20+
id-token: write
21+
contents: read
1922
strategy:
2023
matrix:
2124
include:
@@ -82,7 +85,8 @@ jobs:
8285
if: github.repository == 'pytorch/executorch' && github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
8386
permissions:
8487
contents: write
85-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
88+
contents: read
89+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
8690
with:
8791
repository: pytorch/executorch
8892
download-artifact: docs

.github/workflows/lint.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ concurrency:
1616

1717
jobs:
1818
lintrunner:
19-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
19+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
20+
permissions:
21+
id-token: write
22+
contents: read
2023
with:
2124
runner: linux.2xlarge
2225
docker-image: executorch-ubuntu-22.04-linter
@@ -62,7 +65,10 @@ jobs:
6265
exit $RC
6366
6467
android-java-format:
65-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
68+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
69+
permissions:
70+
id-token: write
71+
contents: read
6672
with:
6773
runner: linux.2xlarge
6874
docker-image: executorch-ubuntu-22.04-linter

0 commit comments

Comments
 (0)