-
Notifications
You must be signed in to change notification settings - Fork 442
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
Increase reuse of ModelConfig
#1954
Merged
avishniakov
merged 44 commits into
develop
from
feature/OSS-2510-reduce-the-number-of-re-instantiations-of-objects-in-model-co
Oct 19, 2023
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
7e4171a
flatten `ModelConfig` code
avishniakov 82d69d3
revert config names for backward compatibility
avishniakov f9ba41c
revert utils change
avishniakov 8e6f82a
fix ExternalArtifact
avishniakov 6247d03
backward compatibility
avishniakov 90efe1b
`model_config_model` -> `model_config`
avishniakov 7056f96
cleanup after rename
avishniakov 33a0bc0
reuse model config in artifact config
avishniakov ab9d117
warm up all model configs on pipeline level
avishniakov 84c756f
avoid multi warning in ModelConfig
avishniakov ffcdc34
properly pass values to validator
avishniakov 7f00404
avoid instantiate in parse config file
avishniakov cc8cd01
avoid instantiate in parse config file
avishniakov 9e7fe6c
remove debug statements
avishniakov f5bbdc0
update misleading logging
avishniakov 019059f
improve logging of cached linking
avishniakov b177f4c
allow latest version in cli links listing
avishniakov 468c999
Update src/zenml/model/model_config.py
avishniakov 14b3ec4
Update src/zenml/model/model_config.py
avishniakov b469058
Update src/zenml/model/model_config.py
avishniakov ce5ee89
Update src/zenml/model/model_config.py
avishniakov 397766e
unique test file name
avishniakov eee1052
ethic->ethics
avishniakov 53f254d
update `step_run`
avishniakov b117128
update logging mock in tests
avishniakov fe8b5b5
extend test case to link from cache
avishniakov 7aeb144
fixing bugs from tests
avishniakov 42b7b4c
linting
avishniakov a6f53a1
fix bug
avishniakov 68cfd16
redesign model_config warnings logic
avishniakov ada9275
renaming
avishniakov 6fc148a
Merge branch 'develop' into feature/OSS-2510-reduce-the-number-of-re-…
avishniakov 76c39de
fix bug
avishniakov 287b80e
remove outdated test
avishniakov 6c88495
improve validator warnings
avishniakov 4f52d76
improve validator warnings
avishniakov 098207f
improve validator warnings
avishniakov 7e00231
improve validator warnings
avishniakov 42e103f
Merge branch 'develop' into feature/OSS-2510-reduce-the-number-of-re-…
avishniakov 66caf18
Merge branch 'develop' into feature/OSS-2510-reduce-the-number-of-re-…
avishniakov f0ac4bf
resolve alembic branches
avishniakov cc70643
remove excessive init
avishniakov 1a3fc4f
fix runs cli
avishniakov 6372de0
lint
avishniakov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This feels a bit weird, why can't we use
None
as default / latest value instead?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.
Cause it is strings - cli arguments and
-1
which I planned to use is treated as a parameter name, so 0 seemed a solid choice. Moreover - user will not specify it directly, it will be set by just skipping this arg.zenml model version artifacts my_model
-> will return artifacts for latest inmy_model
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.
I don't get it, why can't it be
Optional[str]
instead? I.e., why would this not work?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.
It is a click limitation, as I see this. If I set
default=None
it is treated as no default, making arg mandatory. Changes on the level of functions args are not effective at all -@click.argument
is the king here.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.
Ah, yes,
click.argument
means mandatory, for optional inputs you need to useclick.option
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.
Nah, the option would lead to the argument passing as
--model_version_name_or_number_or_id
and not justzenml some_command some_argument [some_skipped_optional_argument]
or I completely misuse click 🙂