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

Register connection if connection_config is included ModuleConfig #362

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mynhardtburger
Copy link
Contributor

No description provided.

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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?
Copy link
Contributor Author

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.
Copy link
Contributor Author

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: 

@mynhardtburger
Copy link
Contributor Author

@gabe-l-hart FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant