Skip to content

Commit

Permalink
TgisAutoFinder: Don't require instance_name in finder constructor
Browse files Browse the repository at this point in the history
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
1 parent ca43fc7 commit 459a375
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 459a375

Please sign in to comment.