-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
603 changed files
with
1,821 additions
and
79,446 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,39 @@ | ||
*.jsonl filter=lfs diff=lfs merge=lfs -text | ||
/.github/CODEOWNERS filter=lfs diff=lfs merge=lfs -text | ||
*.md filter=lfs diff=lfs merge=lfs -text | ||
*.yaml filter=lfs diff=lfs merge=lfs -text | ||
*.gitignore filter=lfs diff=lfs merge=lfs -text | ||
*.gitmodules filter=lfs diff=lfs merge=lfs -text | ||
/LICENSE filter=lfs diff=lfs merge=lfs -text | ||
/VERSION filter=lfs diff=lfs merge=lfs -text | ||
*.bib filter=lfs diff=lfs merge=lfs -text | ||
*.sh filter=lfs diff=lfs merge=lfs -text | ||
*.cpu filter=lfs diff=lfs merge=lfs -text | ||
*.cu116 filter=lfs diff=lfs merge=lfs -text | ||
*.cu117 filter=lfs diff=lfs merge=lfs -text | ||
*.cu118 filter=lfs diff=lfs merge=lfs -text | ||
*.cu121 filter=lfs diff=lfs merge=lfs -text | ||
*.json filter=lfs diff=lfs merge=lfs -text | ||
*.py filter=lfs diff=lfs merge=lfs -text | ||
/doc/Makefile filter=lfs diff=lfs merge=lfs -text | ||
*.rst filter=lfs diff=lfs merge=lfs -text | ||
*.txt filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.svg filter=lfs diff=lfs merge=lfs -text | ||
*.html filter=lfs diff=lfs merge=lfs -text | ||
*.clang-format filter=lfs diff=lfs merge=lfs -text | ||
*.clang-tidy filter=lfs diff=lfs merge=lfs -text | ||
*.supp filter=lfs diff=lfs merge=lfs -text | ||
*.cmake filter=lfs diff=lfs merge=lfs -text | ||
*.cc filter=lfs diff=lfs merge=lfs -text | ||
*.h filter=lfs diff=lfs merge=lfs -text | ||
*.in filter=lfs diff=lfs merge=lfs -text | ||
*.typed filter=lfs diff=lfs merge=lfs -text | ||
*.cu filter=lfs diff=lfs merge=lfs -text | ||
*.patch filter=lfs diff=lfs merge=lfs -text | ||
*.c filter=lfs diff=lfs merge=lfs -text | ||
*.toml filter=lfs diff=lfs merge=lfs -text | ||
*.pt filter=lfs diff=lfs merge=lfs -text | ||
*.ogg filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.spm filter=lfs diff=lfs merge=lfs -text |
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
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 |
---|---|---|
@@ -1,79 +1,3 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
torch: | ||
type: string | ||
default: '2.4.0' | ||
py: | ||
type: string | ||
default: '3.12' | ||
version_override: | ||
type: string | ||
default: '' | ||
|
||
env: | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: | ||
labels: 4-core-ubuntu | ||
container: | ||
image: ghcr.io/facebookresearch/fairseq2-ci-manylinux_x86_64:2-cpu | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Check-out the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Create the Python virtual environment | ||
run: | | ||
python${{ inputs.py }} -m venv ~/venv | ||
echo ~/venv/bin >> "$GITHUB_PATH" | ||
- name: Install PyTorch | ||
run: | | ||
pip install --extra-index-url https://download.pytorch.org/whl/cpu\ | ||
torch==${{ inputs.torch }} | ||
- name: Install requirements | ||
run: | | ||
pip install --requirement native/python/requirements-build.txt | ||
- name: Install Sphinx | ||
run: | | ||
pip install --requirement doc/requirements.txt | ||
- name: Override project version | ||
if: inputs.version_override | ||
run: | | ||
tools/set-project-version.sh ${{ inputs.version_override }} | ||
- name: Configure fairseq2n | ||
working-directory: native | ||
run: | | ||
cmake -GNinja -B build | ||
- name: Install fairseq2n | ||
run: | | ||
pip install --editable native/python | ||
- name: Install fairseq2 | ||
run: | | ||
pip install --editable . | ||
- name: Generate documentation | ||
working-directory: doc | ||
run: | | ||
make html SPHINXOPTS="-W" | ||
- name: Copy VERSION into the documentation | ||
run: | | ||
cp VERSION doc/build/html | ||
- name: Upload documentation to staging | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: doc | ||
path: doc/build/html/ | ||
retention-days: 1 | ||
version https://git-lfs.github.com/spec/v1 | ||
oid sha256:756491687041f198aea8ebacbc9b231d0e67ea6917503672ff336f25890abc45 | ||
size 2211 |
Oops, something went wrong.