-
Notifications
You must be signed in to change notification settings - Fork 23
mlflow 2.0 compatibility #97
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
Conversation
Signed-off-by: Shrinath Suresh <[email protected]>
Signed-off-by: Shrinath Suresh <[email protected]>
Signed-off-by: Shrinath Suresh <[email protected]>
…into mlflow-2.0-compatibility Signed-off-by: Shrinath Suresh <[email protected]>
Signed-off-by: Shrinath Suresh <[email protected]>
Signed-off-by: Shrinath Suresh <[email protected]>
Signed-off-by: Shrinath Suresh <[email protected]>
| self.train_acc = Accuracy() | ||
| self.val_acc = Accuracy() | ||
| self.test_acc = Accuracy() | ||
| self.train_acc = Accuracy(task="multiclass", num_classes=3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest torchmetrics expects task and num_classes to be passed while using Accuracy - https://torchmetrics.readthedocs.io/en/stable/classification/accuracy.html
| _DEFAULT_TORCHSERVE_LOCAL_MANAGEMENT_PORT = "8081" | ||
|
|
||
|
|
||
| class CustomPredictionsResponse(PredictionsResponse): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Do we want to call this TorchServePredictionsResponse?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbczumar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @shrinath-suresh !
|
Hi, are you still considering this PR? |
|
@chauhang Can you please review and approve the PR so that we can merge ? |
Signed-off-by: Shrinath Suresh [email protected]
What changes are proposed in this pull request?
MLflow 2.0 compatibility with latest PT and PTL
How is this patch tested?
Titanic
titanic_training.txt
Iris Classification
iris_training.txt



iris_training_gpu.txt
IrisClassification - Torchscripted
iris_torchscript_training.txt



MNIST
mnist_training.txt


mnist_training_gpu.txt
CIFAR
cifar_training.txt


cifar_training_gpu.txt
Release Notes
Is this a user-facing change?
(Details in 1-2 sentences. You can just refer to another PR with a description if this PR is part of a larger change.)
What component(s) does this PR affect?
Components
area/deploy: Main deployment plugin logicarea/build: Build and test infrastructure for MLflow TorchServe Deployment Pluginarea/docs: MLflow TorchServe Deployment Plugin documentation pagesarea/examples: Example codeHow should the PR be classified in the release notes? Choose one:
rn/breaking-change- The PR will be mentioned in the "Breaking Changes" sectionrn/none- No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" sectionrn/feature- A new user-facing feature worth mentioning in the release notesrn/bug-fix- A user-facing bug fix worth mentioning in the release notesrn/documentation- A user-facing documentation change worth mentioning in the release notes