Uh oh!
There was an error while loading. Please reload this page.
Update installation instruction for JAX and add some dependencies. - #117
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ksivaman
commented
Mar 27, 2023
421bea6 to
c3e02edComparenouiz
commented
Mar 28, 2023
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nouiz
commented
Mar 29, 2023
@timmoon10@ptrendx I did all the requested changes. |
ksivaman
commented
Mar 30, 2023
Signed-off-by: Frederic Bastien <fbastien@nvidia.com>
nouiz
commented
Mar 30, 2023
I rebased, squashed all the commits and signed it. I didn't make cmake a pip dependency for all frameworks, but I think we should do that in a follow up PR while testing it for all FW. This will simplify the installation instruction. |
Uh oh!
There was an error while loading. Please reload this page.
ptrendx
commented
Mar 31, 2023
/te-ci |
Signed-off-by: Frederic Bastien <fbastien@nvidia.com>
nouiz
commented
Mar 31, 2023
/te-ci |
| extras_require={ | ||
| 'test': ['pytest', | ||
| 'tensorflow_datasets'],}, |
There was a problem hiding this comment.
Note: onnxruntime is needed for the PyTorch tests.
There was a problem hiding this comment.
I'm not sure how to handle this.
I think adding it for all FW isn't great.
I'm creating a "test_pytorch" extra.
Uh oh!
There was an error while loading. Please reload this page.
| pip install pybind11 | ||
| Clone the repository and inside it type: | ||
| Then, you can install this optional dependency: |
There was a problem hiding this comment.
| Then, you can install this optional dependency: | |
| Then, the following optional dependencies can be installed: |
There was a problem hiding this comment.
Stating the purpose of these dependencies would be useful, since they are 'optional'.
There was a problem hiding this comment.
Agreed. I wanted to do that. But it isn't clear to me what ninja bring.
I was told it could be faster in some cases, but I don't know which case and I didn't test it.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| # Trigger a better error when pybind11 isn't present. | ||
| # Sadly, if pybind11 was installed with `apt -y install pybind11-dev` | ||
| # This doesn't install a python packages. So the line bellow is too strict. | ||
| # When it fail, we need to detect if cmake will find pybind11. | ||
| # import pybind11 |
There was a problem hiding this comment.
This is not clear, what is the goal of this comment?
There was a problem hiding this comment.
Is it to answer the question, "Why we're getting pybind11 via cmake?"
There was a problem hiding this comment.
If pybind11 isn't installed, the error message is ugly and hard to read.
So I wanted to generate a better error by doing "import pybind11".
This work when we install pybind11 via pip, but it doesn't work when installed via apt-get.
Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> Signed-off-by: Frédéric Bastien <frederic.bastien@gmail.com>
Signed-off-by: Frederic Bastien <fbastien@nvidia.com>
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Frederic Bastien <fbastien@nvidia.com>
Signed-off-by: Frederic Bastien <fbastien@nvidia.com>
Signed-off-by: Frederic Bastien <fbastien@nvidia.com>
Signed-off-by: Frederic Bastien <fbastien@nvidia.com>
ksivaman
commented
Apr 4, 2023
/te-ci |
Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> Signed-off-by: Frédéric Bastien <frederic.bastien@gmail.com>
nouiz
commented
Apr 5, 2023
@ptrendx I accepted the suggested modification. But I don't see it anymore, so I can't comment on it. |
) * Update installation instructio for JAX and add some depenencies. Signed-off-by: Frederic Bastien <fbastien@nvidia.com> * Bring back support for none pip installed pybind11. Signed-off-by: Frederic Bastien <fbastien@nvidia.com> * Apply suggestions from code review Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> Signed-off-by: Frédéric Bastien <frederic.bastien@gmail.com> * Changes following review. Signed-off-by: Frederic Bastien <fbastien@nvidia.com> * Change order to make it more clear. Signed-off-by: Frederic Bastien <fbastien@nvidia.com> * Add other reviers suggestion. Signed-off-by: Frederic Bastien <fbastien@nvidia.com> * pybind11 is needed for all FW. Signed-off-by: Frederic Bastien <fbastien@nvidia.com> * Add flax as a dep Signed-off-by: Frederic Bastien <fbastien@nvidia.com> * Update README.rst Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> Signed-off-by: Frédéric Bastien <frederic.bastien@gmail.com> --------- Signed-off-by: Frederic Bastien <fbastien@nvidia.com> Signed-off-by: Frédéric Bastien <frederic.bastien@gmail.com> Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
No description provided.