Skip to content

fix llama readme #3339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 93 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
55ed5ab
[RELEASE-ONLY CHANGES] Branch Cut for Release 0.2 (#2735)
guangy10 Mar 28, 2024
1f1f357
[RELEASE-ONLY CHANGES] Update release/0.2 to pin and test against PyT…
guangy10 Apr 5, 2024
9383bda
Update docs (#2919) (#2923)
pytorchbot Apr 9, 2024
e193c71
Use unified path /data/local/tmp/llama (#2899) (#2924)
pytorchbot Apr 9, 2024
166a635
Refine LLM getting started guide for uniformity, fix critical errors …
GregoryComer Apr 9, 2024
002ae53
Update docs for the demo app. (#2921)
shoumikhin Apr 8, 2024
fa4d88d
Fixing minor issues in llama2 7b repro (#2926)
mergennachin Apr 8, 2024
4e7aebf
Update iphone 15 pro benchmarking numbers (#2927)
kimishpatel Apr 8, 2024
46566b5
Fix generation speed calculation. (#2932)
shoumikhin Apr 9, 2024
2fe7543
exclude mutated buffer (#2876)
cccclai Apr 8, 2024
69bae6e
Make minor updates to LLM guide setup instructions (#2940) (#2959)
pytorchbot Apr 10, 2024
cd2779a
resolve_buck.py: Add an entry for darwin-x86_64 (#2868)
dbort Apr 10, 2024
16c3afc
Refine the LLM manual (focus on the debugging and profiling part) (#2…
pytorchbot Apr 11, 2024
6a67ec2
[RELEASE-ONLY] Fix install_requirements.sh (#3002)
guangy10 Apr 12, 2024
be476a5
Add llama2 readme in examples/README (#2992) (#2993)
pytorchbot Apr 12, 2024
ca69051
Add the missing import generate_etrecord to doc Getting Started with …
pytorchbot Apr 12, 2024
31bb2ea
Fix the wrong test-infra branch on release/0.2 (#3021)
huydhn Apr 12, 2024
28f1c8c
Add required deps to pyproject.toml
dbort Apr 13, 2024
72854c8
Install build requirements in pre_build_script.sh
dbort Apr 12, 2024
4280334
Have setup.py unset HOME when running buck2
dbort Apr 12, 2024
1352d4e
Add project.ignore to .buckconfig to reduce watched files
dbort Apr 13, 2024
d5cbc09
Don't recurse submodules when building wheels
dbort Apr 12, 2024
dc1ca98
Build pybindings and link in backends when building pip wheels
dbort Apr 13, 2024
638433f
Wrap std::isnan/std::isinf in the portable operators
dbort Apr 13, 2024
60bf405
Decouple custom ops in llama_transformer.py Part 1/N (#3005) (#3052)
cccclai Apr 16, 2024
ca7eba9
add more instructions and examples on Delegation (#3042)
pytorchbot Apr 17, 2024
87d3748
Decouple custom ops in llama_transformer.py Part 2/N (#3007) (#3061)
cccclai Apr 17, 2024
e7e9e06
Cherry-pick commits for executorch_no_prim_ops (#3025)
kirklandsign Apr 17, 2024
212e91f
Fix tutorial for Qualcomm AI Engine Direct Backend (#2956) (#3026)
kirklandsign Apr 17, 2024
925f674
Android demo app tutorial fix for XNNPACK and QNN (#2962) (#3027)
kirklandsign Apr 17, 2024
e078e93
Skip annotate boolean input (#2957) (#3051)
cccclai Apr 17, 2024
59fa8e3
Update doc-build.yml (#3045) (#3098)
pytorchbot Apr 18, 2024
0ad7043
Update doc-build.yml (#3071) (#3099)
pytorchbot Apr 18, 2024
3fe0e70
move mask as sdpa input instead of attribute (#3036) (#3114)
cccclai Apr 18, 2024
c9811bc
Documentation for Vulkan Delegate (#3113) (#3124)
pytorchbot Apr 18, 2024
27e1a62
[RELEASE-ONLY] Pin Xcode projects to release/0.2 branch (#3155)
shoumikhin Apr 19, 2024
aa3f22c
Core ML Has Added `Index_Put` Support, No Need to Skip Anymore (#2975…
pytorchbot Apr 19, 2024
efb7cf3
Add a simple sdpa (#3037) (#3166)
cccclai Apr 19, 2024
36eb9c8
Docs for lower smaller models to mps/coreml/qnn (#3146) (#3178)
cccclai Apr 19, 2024
7b29ad2
qnn end to end flow for stories model (#3038) (#3182)
cccclai Apr 20, 2024
4142cf6
Fix build-framework-ios CI job (#2996) (#3186)
larryliu0820 Apr 22, 2024
a94459a
ETRecord ser/de handling "None" outputs and more (#3039) (#3191)
pytorchbot Apr 22, 2024
281134d
Handle empty (size=0) tensor in Inspector (#2998) (#3192)
pytorchbot Apr 22, 2024
dcd5c44
Cherry pick #3006 (#3190)
huydhn Apr 22, 2024
f008e12
Handle missing data types. (#2984) (#3134)
pytorchbot Apr 22, 2024
773da4d
[RELEASE ONLY] Fix running llava_encoder in CI (#3214)
guangy10 Apr 22, 2024
67d0dd7
Add a pure python wrapper to pybindings.portable_lib (#3137) (#3218)
pytorchbot Apr 22, 2024
c79666a
Remove unused extension/aot_util directory (#3216) (#3226)
pytorchbot Apr 23, 2024
1fd5562
Fix dynamic linking issues with prebuilt pip packages (#3049)
dbort Apr 23, 2024
4cce1cf
Update some SDK docs from MVP (#3212) (#3230)
pytorchbot Apr 23, 2024
24ecd04
Start using a dedicated branch for prebuild iOS packages (#3183)
shoumikhin Apr 23, 2024
1ba292a
Enable doc upload for tags, disable for release branches (#3153) (#3243)
pytorchbot Apr 23, 2024
47bc4aa
Update Core ML Backend Doc (#3188) (#3249)
pytorchbot Apr 23, 2024
ba6e318
bundled program alpha document (#3224) (#3252)
pytorchbot Apr 23, 2024
b045b3c
Fix executor_runner_mps and mpsdelegate linking with pybind (#3222) (…
pytorchbot Apr 23, 2024
3d7a24c
update sdk delegate integration (#3246) (#3258)
pytorchbot Apr 23, 2024
214371d
Dynamically determine the version of the pip package. (#3259)
dbort Apr 23, 2024
a0bd7fa
Update Profiling Section in XNNPACK Delegate Docs (#3237) (#3261)
pytorchbot Apr 24, 2024
66783f4
[NOT FOR LAND] Generate and upload android prebuilt (#3255)
kirklandsign Apr 24, 2024
75484d9
Add index.Tensor and aten.logical_not (#3221) (#3267)
pytorchbot Apr 24, 2024
915164e
Specify OSX deployment target for python package. (#3194) (#3279)
pytorchbot Apr 24, 2024
ed07890
Pin CoreMLTools 7.2 (#3170) (#3281)
pytorchbot Apr 24, 2024
e783942
Add iPad support to demo apps. (#3251) (#3256)
pytorchbot Apr 24, 2024
eabdeb0
Update apple.yml (#3287)
shoumikhin Apr 24, 2024
da94594
Fix typo in sub & clean up (#3100) (#3253)
pytorchbot Apr 24, 2024
0dd6639
fix qnn install link (#3260) (#3271)
cccclai Apr 24, 2024
ad80c6b
update docs (#3286)
kirklandsign Apr 24, 2024
f0a0a20
Fix a small inconsistency on the SDK debugging page (#3247) (#3290)
pytorchbot Apr 24, 2024
dbb7e26
SDK tutorial doc update (#3238) (#3292)
pytorchbot Apr 24, 2024
6044404
Fix broken links on the coreml tutorial page (#3250) (#3293)
pytorchbot Apr 24, 2024
147579a
delegation debug page (#3254) (#3294)
pytorchbot Apr 24, 2024
759fd12
Add delegate time scale converter to Inspector (#3240) (#3297)
pytorchbot Apr 24, 2024
b218b18
move code under executorch/example (#3176) (#3307)
pytorchbot Apr 24, 2024
31300d0
add dynamic export into llm manual (#3202) (#3308)
pytorchbot Apr 24, 2024
b3fb810
[Android] Fix upload workflow for release (#3288)
kirklandsign Apr 24, 2024
904e989
[RELEASE ONLY] Android custom op registration (#3284)
kirklandsign Apr 24, 2024
d1cf0a6
Audit and update the pip package metadata (#3265)
dbort Apr 24, 2024
2a1ae4f
Update Llava README.md (#3309)
iseeyuan Apr 24, 2024
861abb1
Use relative links in llm/getting-started.md (#3244) (#3310)
pytorchbot Apr 24, 2024
399138e
[pyproject.toml] Add a dependency on `torch==2.3` (#3277)
dbort Apr 24, 2024
b53c97d
Update readme. (#3301) (#3302)
pytorchbot Apr 24, 2024
c07cfc9
Fix LLAMA app (#3228) (#3283)
kirklandsign Apr 24, 2024
59cda5d
update typos (#3300) (#3321)
pytorchbot Apr 24, 2024
ed1992c
update memory planning docs (#3270) (#3319)
pytorchbot Apr 24, 2024
d1175cf
Update README-wheel.md to document what's linked into pybindings (#3323)
dbort Apr 24, 2024
c78c45b
Update git clone instructions (#3306)
mergennachin Apr 24, 2024
a1d881a
Remove the sorting of the nodes from partitioning (not needed for now…
DenisVieriu97 Apr 24, 2024
2d75a0b
[MPS] Update MPS documentation; add helper script to build mps_execut…
DenisVieriu97 Apr 24, 2024
fdd266c
llama2 readme (#3315) (#3326)
pytorchbot Apr 24, 2024
ef376d6
Update readme. (#3331)
shoumikhin Apr 24, 2024
f05fdd3
Update custom kernel registration API (#3330)
larryliu0820 Apr 24, 2024
f937935
Inspector APIs page (#3335)
Olivia-liu Apr 24, 2024
52aa8cf
Update llama2 readme file
mergennachin Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@

[parser]
target_platform_detector_spec = target:root//...->prelude//platforms:default target:shim//...->prelude//platforms:default

# Limit the number of files that the buck daemon needs to monitor. If every
# submodule is cloned recursively, some system can fail to build with "OS file
# watch limit reached".
[project]
ignore = \
.git, \
**/.git, \
third-party/pytorch/third_party, \
cmake-out, \
pip-out
2 changes: 1 addition & 1 deletion .ci/docker/ci_commit_pins/pytorch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0a038cf0cff2d071b7359ac0491fd2ba7798a438
release/2.3
2 changes: 1 addition & 1 deletion .ci/scripts/gather_test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"w2l": "linux.12xlarge",
"ic4": "linux.12xlarge",
"resnet50": "linux.12xlarge",
"llava_encoder": "linux.4xlarge",
"llava_encoder": "linux.12xlarge",
# This one causes timeout on smaller runner, the root cause is unclear (T161064121)
"dl3": "linux.12xlarge",
"emformer_join": "linux.12xlarge",
Expand Down
7 changes: 5 additions & 2 deletions .ci/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ retry () {
install_executorch() {
which pip
# Install executorch, this assumes that Executorch is checked out in the
# current directory
pip install . --no-build-isolation -v
# current directory. The --extra-index-url options tell pip to look on the
# pytorch servers for nightly and pre-release versions of torch packages.
pip install . --no-build-isolation -v \
--extra-index-url https://download.pytorch.org/whl/test/cpu \
--extra-index-url https://download.pytorch.org/whl/nightly/cpu
# Just print out the list of packages for debugging
pip list
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
linux:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.3
strategy:
matrix:
include:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
pytest -n auto --cov=./ --cov-report=xml

macos:
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.3
strategy:
matrix:
include:
Expand Down
45 changes: 44 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
- .ci/docker/**
- .github/workflows/android.yml
- install_requirements.sh
- examples/demo-apps/**
- examples/demo-apps/android/**
- extension/android/**
- extension/module/**
workflow_dispatch:

Expand All @@ -33,6 +34,7 @@ jobs:
submodules: 'true'
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
timeout: 90
upload-artifact: android-apps
script: |
set -eux

Expand All @@ -45,3 +47,44 @@ jobs:
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
# Build Android demo app
bash build/test_android_ci.sh

mkdir -p artifacts-to-be-uploaded
mkdir -p artifacts-to-be-uploaded/arm64-v8a/
mkdir -p artifacts-to-be-uploaded/x86_64/
# Copy the jar to S3
cp extension/android/build/libs/executorch.jar artifacts-to-be-uploaded/
# Copy the app to S3
cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/debug/*.apk artifacts-to-be-uploaded/
# Also copy the libraries
cp cmake-out-android-arm64-v8a/lib/*.a artifacts-to-be-uploaded/arm64-v8a/
cp cmake-out-android-arm64-v8a/extension/android/*.so artifacts-to-be-uploaded/arm64-v8a/
cp cmake-out-android-x86_64/lib/*.a artifacts-to-be-uploaded/x86_64/
cp cmake-out-android-x86_64/extension/android/*.so artifacts-to-be-uploaded/x86_64/

# Upload the app and its test suite to S3 so that they can be downloaded by the test job
upload-artifacts:
needs: test-demo-android
runs-on: linux.2xlarge
steps:
- name: Download the artifacts
uses: actions/download-artifact@v3
with:
# The name here needs to match the name of the upload-artifact parameter
name: android-apps
path: ${{ runner.temp }}/artifacts/

- name: Verify the artifacts
shell: bash
working-directory: ${{ runner.temp }}/artifacts/
run: |
ls -lah ./

- name: Upload the artifacts to S3
uses: seemethere/upload-artifact-s3@v5
with:
s3-bucket: gha-artifacts
s3-prefix: |
${{ github.repository }}/${{ github.run_id }}/artifact
retention-days: 14
if-no-files-found: ignore
path: ${{ runner.temp }}/artifacts/
10 changes: 5 additions & 5 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ concurrency:
jobs:
test-demo-ios:
name: test-demo-ios
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.3
with:
runner: macos-latest-xlarge
python-version: '3.11'
Expand All @@ -52,7 +52,7 @@ jobs:

build-frameworks-ios:
name: build-frameworks-ios
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
uses: pytorch/test-infra/.github/workflows/macos_job.yml@release/2.3
with:
runner: macos-latest-xlarge
python-version: '3.11'
Expand All @@ -64,7 +64,7 @@ jobs:
WORKSPACE=$(pwd)
pushd "${WORKSPACE}/pytorch/executorch"
BUILD_TOOL=cmake
VERSION="0.1.0"
VERSION="0.2.0"
FRAMEWORKS=(
"executorch"
"coreml_backend"
Expand Down Expand Up @@ -137,8 +137,8 @@ jobs:
# NB: The name here needs to match the upload-artifact name from build-frameworks-ios job
name: executorch-frameworks-ios
path: ${{ runner.temp }}/frameworks-ios/
- name: Only push to S3 when running the workflow manually from main branch
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' }}
- name: Only push to S3 when running the workflow manually from release/0.2 branch
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/release/0.2' }}
shell: bash
run: |
set -eux
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/build-wheels-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ on:

jobs:
generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.3
with:
package-type: wheel
os: linux
test-infra-repository: pytorch/test-infra
test-infra-ref: main
test-infra-ref: release/2.3
with-cuda: disabled
with-rocm: disabled

Expand All @@ -43,13 +43,18 @@ jobs:
smoke-test-script: build/packaging/smoke_test.py
package-name: executorch
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.3
with:
repository: ${{ matrix.repository }}
ref: ""
test-infra-repository: pytorch/test-infra
test-infra-ref: main
test-infra-ref: release/2.3
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
# ExecuTorch only needs the first layer of submodules; override the
# "recursive" default to do less work, and to give the buck daemon fewer
# files to look at.
submodules: true
env-var-script: build/packaging/env_var_script_linux.sh
pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }}
package-name: ${{ matrix.package-name }}
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/build-wheels-m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ on:

jobs:
generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.3
with:
package-type: wheel
os: macos-arm64
test-infra-repository: pytorch/test-infra
test-infra-ref: main
test-infra-ref: release/2.3
with-cuda: disabled
with-rocm: disabled

Expand All @@ -43,13 +43,19 @@ jobs:
smoke-test-script: build/packaging/smoke_test.py
package-name: executorch
name: ${{ matrix.repository }}
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@release/2.3
with:
repository: ${{ matrix.repository }}
ref: ""
test-infra-repository: pytorch/test-infra
test-infra-ref: main
test-infra-ref: release/2.3
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
# ExecuTorch only needs the first layer of submodules; override the
# "recursive" default to do less work, and to give the buck daemon fewer
# files to look at.
submodules: true
delocate-wheel: false
env-var-script: build/packaging/env_var_script_m1.sh
pre-script: ${{ matrix.pre-script }}
post-script: ${{ matrix.post-script }}
package-name: ${{ matrix.package-name }}
Expand Down
61 changes: 22 additions & 39 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.3
strategy:
matrix:
include:
Expand Down Expand Up @@ -46,13 +46,9 @@ jobs:
# ET_VERSION_DOCS will be pulled during the doc build to add to the version dropdown
# on the website. See docs/source/conf.py for details

REF_TYPE=${{ github.ref_type }}
REF_NAME=${{ github.ref_name }}

echo "$REF_TYPE"
echo "$REF_NAME"

ET_VERSION_DOCS="${REF_NAME}"
GITHUB_REF=${{ github.ref }}
echo "$GITHUB_REF"
ET_VERSION_DOCS="${GITHUB_REF}"
echo "$ET_VERSION_DOCS"

set -eux
Expand All @@ -68,26 +64,24 @@ jobs:
make html
cd ..

# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
echo "GitHub Ref: ${GITHUB_REF}"
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
find docs/_build/html/ -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">';
fi

cp -rf docs/_build/html/* "${RUNNER_DOCS_DIR}"

mv docs/_build/html "${RUNNER_ARTIFACT_DIR}"

ls -R "${RUNNER_ARTIFACT_DIR}"/*/*.html

# Enable preview later. Previews are available publicly
#
# upload-preview:
# if: github.repository == 'pytorch/executorch' && github.event_name == 'push' &&
# (github.ref_type == 'branch' && github.ref_name == 'main')
# uses: pytorch/test-infra/.github/workflows/linux_job.yml@main

upload-gh-pages:
needs: build
if: github.repository == 'pytorch/executorch' && github.event_name == 'push' &&
((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag')
if: github.repository == 'pytorch/executorch' && github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
permissions:
contents: write
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.3
with:
repository: pytorch/executorch
download-artifact: docs
Expand All @@ -96,22 +90,17 @@ jobs:
script: |
set -euo pipefail

REF_TYPE=${{ github.ref_type }}
REF_NAME=${{ github.ref_name }}

# If building for a release tag, branch, set the branch/tag name
# as the target folder in the gh-pages branch. The artifacts created
# during the build will be copied over to the target dir in the
# gh-pages branch.
if [[ "${REF_TYPE}" == branch ]]; then
TARGET_FOLDER="${REF_NAME}"
elif [[ "${REF_TYPE}" == tag ]]; then
# Strip the leading "v" as well as the trailing patch version and "-rc" suffix.
# For example: 'v0.1.2' -> '0.1' and 'v0.1.2-rc1' -> 0.1.
TARGET_FOLDER=$(echo "${REF_NAME}" | sed 's/^v//i; s/-rc[0-9]*$//; s/\.[0-9]*$//')
# Get github.ref for the output doc folder. By default "main"
# If matches a tag like refs/tags/v1.12.0-rc3 or
# refs/tags/v1.12.0 convert to 1.12
GITHUB_REF=${{ github.ref }}

# Convert refs/tags/v1.12.0rc3 into 1.12.
# Adopted from https://github.com/pytorch/pytorch/blob/main/.github/workflows/_docs.yml#L150C11-L155C13
if [[ "${GITHUB_REF}" =~ ^refs/tags/v([0-9]+\\.[0-9]+)\\. ]]; then
TARGET_FOLDER="${BASH_REMATCH[1]}"
else
echo "ERROR: Invalid REF_TYPE: ${REF_TYPE}. Expected 'branch' or 'tag'."
exit 1
TARGET_FOLDER="main"
fi
echo "Target Folder: ${TARGET_FOLDER}"

Expand All @@ -122,12 +111,6 @@ jobs:
mv "${RUNNER_ARTIFACT_DIR}"/html/* "${TARGET_FOLDER}"
git add "${TARGET_FOLDER}" || true

# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
if [[ "${REF_NAME}" == 'main' ]]; then
find "${TARGET_FOLDER}" -type f -name "*.html" -exec sed -i '/<head>/a <meta name="robots" content="noindex">' {} \;
git add "${TARGET_FOLDER}"/**/*.html || true
fi

git config user.name 'pytorchbot'
git config user.email '[email protected]'
git commit -m "Auto-generating sphinx docs" || true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,25 @@ jobs:
mkdir "${GITHUB_WORKSPACE}"

- name: Setup SSH (Click me for login details)
uses: pytorch/test-infra/.github/actions/setup-ssh@main
uses: pytorch/test-infra/.github/actions/setup-ssh@release/2.3
with:
github-secret: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout Executorch
uses: actions/checkout@v3

- name: Setup Linux
uses: pytorch/test-infra/.github/actions/setup-linux@main
uses: pytorch/test-infra/.github/actions/setup-linux@release/2.3

- name: Build docker image
id: build-docker-image
uses: pytorch/test-infra/.github/actions/calculate-docker-image@main
uses: pytorch/test-infra/.github/actions/calculate-docker-image@release/2.3
with:
docker-image-name: ${{ matrix.docker-image-name }}
always-rebuild: true
push: true
force-push: true

- name: Teardown Linux
uses: pytorch/test-infra/.github/actions/teardown-linux@main
uses: pytorch/test-infra/.github/actions/teardown-linux@release/2.3
if: always()
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
lintrunner:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.3
with:
runner: linux.2xlarge
docker-image: executorch-ubuntu-22.04-linter
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
environment: ${{ (github.event_name == 'schedule') && 'update-commit-hash' || '' }}
steps:
- name: update-pytorch-commit-hash
uses: pytorch/test-infra/.github/actions/update-commit-hash@main
uses: pytorch/test-infra/.github/actions/update-commit-hash@release/2.3
if: ${{ github.event_name == 'schedule' }}
with:
repo-name: pytorch
branch: main
pin-folder: .ci/docker/ci_commit_pins
test-infra-ref: main
test-infra-ref: release/2.3
updatebot-token: ${{ secrets.UPDATEBOT_TOKEN }}
pytorchbot-token: ${{ secrets.GH_PYTORCHBOT_TOKEN }}
Loading