-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update mlflow version to support newer version of protobuf (#465)
<!-- Thanks for sending a pull request! Here are some tips for you: 1. Run unit tests and ensure that they are passing 2. If your change introduces any API changes, make sure to update the e2e tests 3. Make sure documentation is updated for your PR! --> **What this PR does / why we need it**: <!-- Explain here the context and why you're making the change. What is the problem you're trying to solve. ---> * Mlflow 1.26.1 or above is required in order to be compatible with newer version of protobuf. * This PR also drops the support for Python 3.7 from the real-time and batch predictor servers (continuing from #464). Docs and examples are updated accordingly. **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes # **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required. Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". For more information about release notes, see kubernetes' guide here: http://git.k8s.io/community/contributors/guide/release-notes.md --> ```release-note Upgrade MlFlow client version; drop Python 3.7 support ``` **Checklist** - [ ] Added unit test, integration, and/or e2e tests - [ ] Tested locally - [x] Updated documentation - [ ] Update Swagger spec if the PR introduce API changes - [ ] Regenerated Golang and Python client if the PR introduce API changes --------- Co-authored-by: Krithika Sundararajan <[email protected]>
- Loading branch information
1 parent
36993fc
commit 32ba4d6
Showing
31 changed files
with
52 additions
and
77 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
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn>=1.1.2 | ||
xgboost==1.6.2 | ||
merlin-sdk |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn>=1.1.2 | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn>=1.1.2 | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn>=1.1.2 | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn>=1.1.2 | ||
merlin-sdk | ||
joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version | ||
cloudpickle==2.0.0 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
scikit-learn>=1.1.2 | ||
xgboost==1.6.2 | ||
merlin-sdk | ||
cloudpickle==2.0.0 |
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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
findspark | ||
pyspark==3.0.1 | ||
mlflow>=1.2.0,<=1.23.0 | ||
mlflow>=1.26.1,<2.0.0 | ||
cloudpickle==2.0.0 | ||
pyarrow>=0.14.1,<=9.0.0 | ||
protobuf>=3.0,<4.0.0 | ||
#TODO: Update merlin-sdk dep to: file:${SDK_PATH}#egg=merlin-sdk | ||
merlin-sdk==0.33.0 # Pin to the version that supports Python 3.7. | ||
protobuf>=3.0,<5.0.0 | ||
file:${SDK_PATH}#egg=merlin-sdk |
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 |
---|---|---|
|
@@ -21,20 +21,19 @@ | |
with open('requirements.txt') as f: | ||
REQUIRE = f.read().splitlines() | ||
|
||
# TODO: Uncomment below lines after Pyfunc server stops supporting Python 3.7 | ||
# merlin_path = os.path.join(os.getcwd(), "../sdk") | ||
# merlin_sdk_package = "merlin-sdk" | ||
# for index, item in enumerate(REQUIRE): | ||
# if merlin_sdk_package in item: | ||
# REQUIRE[index] = f"{merlin_sdk_package} @ file://localhost/{merlin_path}#egg={merlin_sdk_package}" | ||
merlin_path = os.path.join(os.getcwd(), "../sdk") | ||
merlin_sdk_package = "merlin-sdk" | ||
for index, item in enumerate(REQUIRE): | ||
if merlin_sdk_package in item: | ||
REQUIRE[index] = f"{merlin_sdk_package} @ file://localhost/{merlin_path}#egg={merlin_sdk_package}" | ||
|
||
setup( | ||
name='merlin-pyspark-app', | ||
version='0.2.0', | ||
author_email='[email protected]', | ||
description='Base pyspark application for running merlin prediction job', | ||
long_description=open('README.md').read(), | ||
python_requires='>=3.7,<3.11', | ||
python_requires='>=3.8,<3.11', | ||
packages=find_packages("merlinpyspark"), | ||
install_requires=REQUIRE, | ||
tests_require=TEST_REQUIRE, | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dependencies: | ||
- pip: | ||
- scikit-learn==1.0.2 #TODO: >=1.1.2 upon python 3.7 deprecation | ||
- scikit-learn>=1.1.2 | ||
- joblib>=0.13.0,<1.2.0 # >=1.2.0 upon upgrade of kserve's version |
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
This file was deleted.
Oops, something went wrong.
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
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
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