Commit 28201c5
[Feat] Support MLflow Model Format Through ModelBuilder (#4564)
* Initial commit for mlflow support in ModelBuilder
Fix some formating issues
Fix style issues and typo
Fix s3 downloading for mlflow
Fix logging in inference script for torchserve
Add validation for mlflow
fix unused param in s3 downloader
* Add mlflow tensorflow flavor load in inference script
[Fix] enhance error handling for mlflow model support
* Add unit tests for utils
fix black format
* mlflow integration integ tests initial commit
Fix schema builder and constant import
Fix typo
Add integ tests for mlflow xgboost flavor
fix style issues for integ tests
adding ut
fix import
fix import
add missed mock
add mock for path.isfile
add mock for open
try another way of patching
test patching
fix patching
fix patching
fix patching
fix patching
fix patching
fix patching
fix patching
fix patching
add ut for s3 input
add negative test case
fix indent
increase test coverage
fix patching module
fix session patch
fix test input
debug
remov debug messages
fix ut
prepare for initial pr
fix doc8
fix ut name collision
fix integ tests naming
fix ut run in PR
Add ignore path to doc8
* Move mlflow inputs under model_metadata instead
fix ut failure
fix assertion
* Fix local path input for mlflow
fix ut
fix ut
normalize path befor copying over
fix for ut
fix black format
* mark local container integ test as flaky as they all bind to the same host
* marg mlflow xgboost integ local container test as flaky
* skip copying files if src and dst are the same
* resolve pr comments
* keep resolving pr comments
* update docstrings so that mlflow support is mark as beta
* fix pylint failures
---------
Co-authored-by: Jacky Lee <drjacky@amazon.com>1 parent a72dc6d commit 28201c5
File tree
24 files changed
+1897
-7
lines changed- src/sagemaker/serve
- builder
- model_format/mlflow
- model_server/torchserve
- tests
- data/serve_resources/mlflow
- pytorch
- data
- xgboost
- integ/sagemaker/serve
- unit/sagemaker/serve
- builder
- model_format/mlflow
24 files changed
+1897
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
40 | 58 | | |
41 | 59 | | |
42 | 60 | | |
| |||
145 | 163 | | |
146 | 164 | | |
147 | 165 | | |
148 | | - | |
149 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
150 | 171 | | |
151 | 172 | | |
152 | 173 | | |
| |||
245 | 266 | | |
246 | 267 | | |
247 | 268 | | |
248 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
249 | 273 | | |
250 | 274 | | |
251 | 275 | | |
| |||
297 | 321 | | |
298 | 322 | | |
299 | 323 | | |
| 324 | + | |
| 325 | + | |
300 | 326 | | |
301 | 327 | | |
302 | 328 | | |
| |||
577 | 603 | | |
578 | 604 | | |
579 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
580 | 676 | | |
581 | 677 | | |
582 | 678 | | |
| |||
620 | 716 | | |
621 | 717 | | |
622 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
623 | 727 | | |
624 | 728 | | |
625 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments