Skip to content

Commit eefed1e

Browse files
authored
Merge branch 'master' into stablelm
2 parents a43e52c + 625f510 commit eefed1e

File tree

243 files changed

+23684
-1152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+23684
-1152
lines changed

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Description of the change
2+
<!--- Describe your changes in detail. -->
3+
4+
5+
## Reference
6+
<!--- Link to the reference implementation, research paper, and GitHub issue. -->
7+
8+
## Colab Notebook
9+
<!-- If adding any new API, attach a colab showing the high-level usage. If adding a model, please also include numerics verification against a reference implementation.-->
10+
11+
## Checklist
12+
<!--- Please make sure all checkboxes are ticked before submitting this PR for review. -->
13+
14+
- [ ] I have added all the necessary unit tests for my change.
15+
- [ ] I have verified that my change does not break existing code and works with all backends (TensorFlow, JAX, and PyTorch).
16+
- [ ] My PR is based on the latest changes of the main branch (if unsure, rebase the code).
17+
- [ ] I have followed the Keras Hub [Model contribution guidelines](https://github.com/keras-team/keras-hub/blob/master/CONTRIBUTING_MODELS.md) in making these changes.
18+
- [ ] I have followed the Keras Hub [API design guidelines](https://github.com/keras-team/keras-hub/blob/master/API_DESIGN_GUIDE.md) in making these changes.
19+
- [ ] I have signed the [Contributor License Agreement](https://cla.developers.google.com/about).

.kokoro/github/ubuntu/gpu/build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ fi
1616
set -x
1717
cd "${KOKORO_ROOT}/"
1818

19-
PYTHON_BINARY="/usr/bin/python3.9"
19+
PYTHON_BINARY="/usr/bin/python3.10"
2020

2121
"${PYTHON_BINARY}" -m venv venv
2222
source venv/bin/activate
2323
# Check the python version
2424
python --version
2525
python3 --version
2626

27-
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:"
27+
# setting the LD_LIBRARY_PATH manually is causing segmentation fault
28+
# export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:"
2829
# Check cuda
2930
nvidia-smi
3031
nvcc --version
@@ -56,8 +57,8 @@ pip install huggingface_hub
5657
if [ "${RUN_XLARGE:-0}" == "1" ]
5758
then
5859
pytest keras_hub --check_gpu --run_large --run_extra_large \
59-
--cov=keras-hub
60+
--cov=keras_hub
6061
else
6162
pytest keras_hub --check_gpu --run_large \
62-
--cov=keras-hub
63+
--cov=keras_hub
6364
fi

.kokoro/github/ubuntu/gpu/jax/continuous.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/jax/presubmit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/tensorflow/continuous.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/tensorflow/presubmit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/torch/continuous.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout to 120 mins from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/torch/presubmit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

CONTRIBUTING.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ development.
99
Before contributing code, please review our [Style Guide](STYLE_GUIDE.md) and
1010
[API Design Guide](API_DESIGN_GUIDE.md).
1111

12-
Our [Roadmap](ROADMAP.md) contains an overview of the project goals and our
12+
Our [Roadmap](https://github.com/keras-team/keras-hub/issues/1836) contains an overview of the project goals and our
1313
current focus areas.
1414

1515
We follow
@@ -20,10 +20,10 @@ We follow
2020
The fastest way to contribute it to find open issues that need an assignee. We
2121
maintain two lists of github tags for contributors:
2222

23-
- [good first issue](https://github.com/keras-team/keras-hub/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22):
24-
a list of small, well defined issues for newcomers to the project.
25-
- [contributions welcome](https://github.com/keras-team/keras-hub/issues?q=is%3Aissue+is%3Aopen+label%3A%22contributions+welcome%22):
26-
a larger list of issues that may range in complexity.
23+
- [good first issue](https://github.com/keras-team/keras-hub/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22):
24+
a list of small, well defined issues for newcomers to the project.
25+
- [contributions welcome](https://github.com/keras-team/keras-hub/issues?q=is%3Aissue+is%3Aopen+label%3A%22contributions+welcome%22):
26+
a larger list of issues that may range in complexity.
2727

2828
If you would like propose a new symbol or feature, please first review our
2929
design guide and roadmap linked above, and open an issue to discuss. If you have
@@ -69,7 +69,7 @@ The agreement can be found at
6969

7070
### Step 5. Code review
7171

72-
CI tests will automatically be run directly on your pull request. Their
72+
CI tests will automatically be run directly on your pull request. Their
7373
status will be reported back via GitHub actions.
7474

7575
There may be several rounds of comments and code changes before the pull
@@ -97,7 +97,7 @@ recommend using `conda` to set up a base environment, and `pip` to install
9797
python packages from PyPI. The exact method will depend on your OS.
9898

9999
**Note**: Be careful not to use mix pre-packaged tensorflow and jax libraries in
100-
`conda` with PyPI packages from `pip`. We recommend pulling *all* KerasHub
100+
`conda` with PyPI packages from `pip`. We recommend pulling _all_ KerasHub
101101
dependencies via `pip` as described below.
102102

103103
### Linux (recommended)
@@ -226,4 +226,11 @@ git add .
226226
git commit -m "<message>" # This will not get logged as a duplicate commit.
227227
```
228228

229+
In case you want to run the above manually on all files, you can do the
230+
following:
231+
232+
```
233+
pre-commit run --all-files
234+
```
235+
229236
KerasHub uses [Ruff](https://docs.astral.sh/ruff/) to format the code.

RELEASE_PROCESS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Use the following steps to create an `X.Y.0` release.
4848
of the package. Development releases will have version numbers like
4949
`X.Y.0.dev0`, and critically will never be installed by default by `pip`.
5050

51-
On the relase branch, check the version in `src/version_utils.py`. If the
51+
On the relase branch, check the version in `src/version.py`. If the
5252
current version is not `X.Y.0.dev0`, make a PR following [this template](https://github.com/keras-team/keras-hub/pull/1638)
5353
to update the our version number fo look like `X.Y.0.dev0`. This PR should
5454
base off our new release branch instead of the master branch. You can use the
@@ -164,7 +164,7 @@ to push certain fixes out to our users.
164164
of the package. Development releases will have version numbers like
165165
`X.Y.Z.dev0`, and critically will never be installed by default by `pip`.
166166

167-
On the relase branch, check the version in `src/version_utils.py`. If the
167+
On the relase branch, check the version in `src/version.py`. If the
168168
current version is not `X.Y.Z.dev0`, make a PR following [this template](https://github.com/keras-team/keras-hub/pull/1638)
169169
to update the our version number fo look like `X.Y.Z.dev0`. This PR should
170170
base off our new release branch instead of the master branch. You can use the

0 commit comments

Comments
 (0)