Skip to content
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

Tgis auto finder #123

Merged
merged 13 commits into from
Aug 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TgisAutoFinder: Don't require instance_name in finder constructor
This is there to meet the factory abstract interface, but it's not used so
if someone ever did want to create an instance manually (which is a valid
usecase when using `caikit.load` directly), we don't want to require it.

Signed-off-by: Gabe Goodhart <[email protected]>
  • Loading branch information
gabe-l-hart committed Aug 9, 2023
commit 459a3750b99566c2367bb4622922c7072103787e
2 changes: 1 addition & 1 deletion caikit_nlp/model_management/tgis_auto_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TGISAutoFinder(ModelFinderBase):
_LOCAL_INITIALIZER_NAME_KEY = "local_initializer_name"
_TGIS_BACKEND_PRIORITY_KEY = "tgis_backend_priority"

def __init__(self, config: aconfig.Config, instance_name: str):
def __init__(self, config: aconfig.Config, instance_name: str = ""):
"""Initialize from the model finder factory config

Config schema:
Expand Down