Skip to content

feat: add JAX as Computation Backend #1646

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

Merged
merged 26 commits into from
Jul 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3ea813e
fix: jax backend boilerplate setup
agaraman0 May 22, 2023
825daf5
feat: typing init
agaraman0 May 23, 2023
fd11322
feat: JaxArray refactoring
agaraman0 May 24, 2023
bc4a698
fix: _docarray_from_native function for jaxarray
agaraman0 Jun 4, 2023
cb64d4f
feat: JAX array implementation is complete
agaraman0 Jun 14, 2023
d57a656
feat: JAX array implementation is complete
agaraman0 Jun 14, 2023
49b3764
feat: JaxCompBackend tests complete till nested Retrieval class
agaraman0 Jun 16, 2023
23589d6
fix: isort format fix
agaraman0 Jun 20, 2023
8793822
feat: Jax Added as dependency
agaraman0 Jun 20, 2023
aff2ff6
feat: poetry lock added
agaraman0 Jun 20, 2023
3d6f45f
fix: jax_comp review comments resolved
agaraman0 Jun 23, 2023
3072cea
fix: squashed commits and bypassing jax test cases which fails
agaraman0 Jul 11, 2023
e0a7d89
fix: add jax pytest marker for missing testcase
agaraman0 Jul 11, 2023
3f9a399
feat: added integration test
agaraman0 Jul 14, 2023
b7b81d6
fix poetry lock update
agaraman0 Jul 14, 2023
963c1b3
fix: test_jax_integration changes
agaraman0 Jul 14, 2023
6f571e2
fix: init comments change
agaraman0 Jul 14, 2023
c03d37c
fix: inmemory changes included
agaraman0 Jul 17, 2023
b64b31f
fix: include jax tests
agaraman0 Jul 17, 2023
a8a3545
fix: include jax tests
agaraman0 Jul 17, 2023
4e2762a
fix: include jax tests round#2
agaraman0 Jul 17, 2023
67dce6d
fix: install jax and run jax tests
agaraman0 Jul 17, 2023
2b3cf04
fix: install jaxlib and check for jax workflow
agaraman0 Jul 17, 2023
0fe883e
fix: failed test cases fixes
agaraman0 Jul 17, 2023
b6d7fe4
fix: failed jax test cases fixes
agaraman0 Jul 17, 2023
06afa37
Merge branch 'main' into feat-comp-jax-backend
agaraman0 Jul 17, 2023
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
Prev Previous commit
Next Next commit
fix: install jax and run jax tests
Signed-off-by: agaraman0 <agaraman0@gmail.com>
  • Loading branch information
agaraman0 committed Jul 17, 2023
commit 67dce6dd399ca83db1f39a2098bd5ca61a2853e6
46 changes: 44 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Test
id: test
run: |
poetry run pytest -m "not (tensorflow or benchmark or index)" --cov=docarray --cov-report=xml ${{ matrix.test-path }} --ignore=tests/integrations/store/test_jac.py
poetry run pytest -m "not (tensorflow or benchmark or index or jax)" --cov=docarray --cov-report=xml ${{ matrix.test-path }} --ignore=tests/integrations/store/test_jac.py
echo "flag it as docarray for codeoverage"
echo "codecov_flag=docarray" >> $GITHUB_OUTPUT
timeout-minutes: 30
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
- name: Test
id: test
run: |
poetry run pytest -m "not (tensorflow or benchmark or index)" --cov=docarray --cov-report=xml tests/integrations/store/test_jac.py
poetry run pytest -m "not (tensorflow or benchmark or index or jax)" --cov=docarray --cov-report=xml tests/integrations/store/test_jac.py
echo "flag it as docarray for codeoverage"
echo "codecov_flag=docarray" >> $GITHUB_OUTPUT
timeout-minutes: 30
Expand Down Expand Up @@ -358,6 +358,48 @@ jobs:
flags: ${{ steps.test.outputs.codecov_flag }}
fail_ci_if_error: false

docarray-test-jax:
needs: [import-test]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2.5.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Prepare environment
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install --all-extras
poetry run pip install jax

- name: Test
id: test
run: |
poetry run pytest -m 'jax' --cov=docarray --cov-report=xml tests
echo "flag it as docarray for codeoverage"
echo "codecov_flag=docarray" >> $GITHUB_OUTPUT
timeout-minutes: 30
- name: Check codecov file
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/codecov-action@v3.1.1
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
with:
file: coverage.xml
name: benchmark-test-codecov
flags: ${{ steps.test.outputs.codecov_flag }}
fail_ci_if_error: false



docarray-test-benchmarks:
needs: [import-test]
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy