-
Notifications
You must be signed in to change notification settings - Fork 48
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
Register connection if connection_config is included ModuleConfig #362
base: main
Are you sure you want to change the base?
Register connection if connection_config is included ModuleConfig #362
Conversation
Signed-off-by: Mynhardt Burger <[email protected]>
@@ -178,6 +190,7 @@ def save(self, model_path: str): | |||
"prompt_cache_id": self._prompt_cache_id, | |||
"eos_token": self.eos_token, | |||
"verbalizer": self.verbalizer, | |||
# TODO: Add connection_config |
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.
Should the save()
method not also save the existing connection_config for future use?
@@ -203,6 +217,7 @@ def save(self, model_path: str): | |||
"sep_token": self._sep_token, | |||
"eos_token": self._eos_token, | |||
"pad_token": self._pad_token, | |||
# TODO: Add connection_config |
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.
Should the save()
method not also save the existing connection_config for future use?
@@ -141,6 +147,7 @@ def bootstrap(cls, model_path: str, load_backend: Union[BackendBase, None] = Non | |||
eos_token=eos_token, | |||
pad_token=pad_token, | |||
tgis_backend=load_backend, | |||
# TODO: Add connection_config? |
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.
When bootstrapping should the connection_config also be populated?
@@ -142,6 +149,10 @@ def load(cls, model_path: str, load_backend: BackendBase) -> "PeftPromptTuningTG | |||
log.debug("Prompt ID: %s", prompt_cache_id) | |||
log.debug("TGIS model ID: %s", base_model_name) | |||
|
|||
# connection_config is a dict with all the necessary fields to successfully create | |||
# a TGISConnection using the .from_config() method. |
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.
The connection config will roughly look like this:
connection_config:
hostname:
model_id:
namespace:
ca_cert_file:
client_cert_file:
client_key_file:
prompt_dir:
grpc_lb_policy_name:
grpc_lb_poll_interval_s:
hostname_override:
@gabe-l-hart FYI |
No description provided.