Skip to content
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

Add optional jax group to enforce compatible jaxlib version. #235

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

carschno
Copy link
Collaborator

Description

Inseq does not work with older jaxlib versions.
This adds an optional jax group that specified the jax and jaxlib dependencies.

Related Issue

Closes #234

Type of Change

  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)

Checklist

  • I've read the CODE_OF_CONDUCT.md document.
  • I've read the CONTRIBUTING.md guide.
  • I've successfully run the style checks using make fix-style.
  • [ ] I've written tests for all new methods and classes that I created and successfully ran make test.
  • [ ] I've written the docstring in Google format for all the methods and classes that I used.

@carschno carschno requested a review from gsarti November 13, 2023 13:24
README.md Outdated
@@ -47,6 +47,8 @@ pip install git+https://github.com/inseq-team/inseq.git

Install extras for visualization in Jupyter Notebooks and 🤗 datasets attribution as `pip install inseq[notebook,datasets]`.

Install [Jax](https://github.com/google/jax) (optional) with ```poetry install --with jax```.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provided that we do not use jax in the library but we only care for it to not crash our jaxtyping, we do not want to ask users to add it here, even if optionally. I think we should remove this.

@carschno carschno merged commit 9d3f5c7 into main Nov 15, 2023
3 checks passed
@carschno carschno deleted the bug/jaxlib branch November 15, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Module 'jax' has no attribute 'typing'
2 participants