-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jetstream Pt): make Jetstream Pt install more reliable
I was previously referencing a given git revision and install from github, but since the Jetstream Pytorch package install its dependencies from its git submodels, these are installed in temporary directories, that can disappear afterwards. This happened on CI, making the installation fail. To work around that, a dedicated install script has been added, and it is now used to install that.
- Loading branch information
1 parent
4b48358
commit a8cad0a
Showing
4 changed files
with
19 additions
and
3 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 |
---|---|---|
|
@@ -133,4 +133,6 @@ dmypy.json | |
*.pt | ||
|
||
.vscode | ||
.idea/ | ||
.idea/ | ||
|
||
jetstream-pt-deps |
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
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,13 @@ | ||
#!/bin/bash | ||
deps_dir=deps | ||
rm -rf $deps_dir | ||
mkdir -p $deps_dir | ||
cd $deps_dir | ||
pwd | ||
git clone https://github.com/google/jetstream-pytorch.git | ||
cd jetstream-pytorch | ||
git checkout ec4ac8f6b180ade059a2284b8b7d843b3cab0921 | ||
git submodule update --init --recursive | ||
# We cannot install in a temporary directory because the directory should not be deleted after the script finishes, | ||
# because it will install its dependendencies from that directory. | ||
pip install -e . |
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