Skip to content

Commit

Permalink
Merge branch 'main' into mblaz/delayed-mmap-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ericharper committed Jun 21, 2023
2 parents ec66e24 + 24837af commit de9c66a
Show file tree
Hide file tree
Showing 240 changed files with 22,201 additions and 2,607 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: security-and-quality # security-extended,
config-file: ./.github/workflows/config/codeql.yml


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/config/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: "CodeQL config"

paths:
- nemo/
- tests/
- tools/
- scripts/
- examples/
- .github/
62 changes: 53 additions & 9 deletions .github/workflows/import-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,24 @@ on:
paths:
- "**"

# Check https://hub.docker.com/r/pytorch/pytorch/tags for latest tags
jobs:
ci-import-check:
runs-on: ubuntu-latest

# Check https://hub.docker.com/r/pytorch/pytorch/tags for latest tags
test-asr-imports:
runs-on: ubuntu-latest
container:
image: pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime

image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
steps:
- uses: actions/checkout@v2

- name: Checkout repo
uses: actions/checkout@v2
- name: Update base dependencies
run: |
apt-get update && apt-get install -y build-essential
apt-get install -y libsndfile1 make
- name: Install nemo dependencies
id: nemo-wheel
run: |
pip install Cython
# install test requirements
pip install -r requirements/requirements_test.txt
# Build nemo as a wheel
Expand All @@ -33,7 +32,6 @@ jobs:
# Preserve wheel location
DIST_FILE=$(find ./dist -name "*.whl" | head -n 1)
echo "::set-output name=DIST_FILE::${DIST_FILE}"
- name: Test ASR Domain Imports
run: |
# Install NeMo Domain
Expand All @@ -43,6 +41,29 @@ jobs:
# Uninstall NeMo
pip uninstall -y nemo_toolkit
test-tts-imports:
runs-on: ubuntu-latest
container:
image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Update base dependencies
run: |
apt-get update && apt-get install -y build-essential
apt-get install -y libsndfile1 make
- name: Install nemo dependencies
id: nemo-wheel
run: |
pip install Cython
# install test requirements
pip install -r requirements/requirements_test.txt
# Build nemo as a wheel
pip install build
python -m build --no-isolation --wheel
# Preserve wheel location
DIST_FILE=$(find ./dist -name "*.whl" | head -n 1)
echo "::set-output name=DIST_FILE::${DIST_FILE}"
- name: Test TTS Domain Imports
run: |
# Install NeMo Domain
Expand All @@ -52,6 +73,29 @@ jobs:
# Uninstall NeMo
pip uninstall -y nemo_toolkit
test-nlp-imports:
runs-on: ubuntu-latest
container:
image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Update base dependencies
run: |
apt-get update && apt-get install -y build-essential
apt-get install -y libsndfile1 make
- name: Install nemo dependencies
id: nemo-wheel
run: |
pip install Cython
# install test requirements
pip install -r requirements/requirements_test.txt
# Build nemo as a wheel
pip install build
python -m build --no-isolation --wheel
# Preserve wheel location
DIST_FILE=$(find ./dist -name "*.whl" | head -n 1)
echo "::set-output name=DIST_FILE::${DIST_FILE}"
- name: Test NLP Domain Imports
run: |
# Install NeMo Domain
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ WORKDIR /tmp/nemo
COPY requirements .
RUN for f in $(ls requirements*.txt); do pip3 install --disable-pip-version-check --no-cache-dir -r $f; done

# install flash attention dependencies
RUN pip install flash-attn
# pinned triton version for flash-attention https://github.com/HazyResearch/flash-attention/blob/main/flash_attn/flash_attn_triton.py#L3
RUN pip install triton==2.0.0.dev20221202

# install k2, skip if installation fails
COPY scripts /tmp/nemo/scripts/
RUN INSTALL_MSG=$(/bin/bash /tmp/nemo/scripts/speech_recognition/k2/setup.sh); INSTALL_CODE=$?; \
Expand Down
Loading

0 comments on commit de9c66a

Please sign in to comment.