Model: Small cleanup

This commit is contained in:
somebody
2023-03-04 17:51:37 -06:00
parent 27b7635c95
commit 70cddc46e2
2 changed files with 1 additions and 3 deletions

View File

@@ -176,8 +176,6 @@ class InferenceModel:
global current_model
current_model = self
print(self.raw_generate("Hi guys,", 20).__dict__)
def _post_load(self) -> None:
"""Post load hook. Called after `_load()`."""

View File

@@ -266,7 +266,7 @@ class HFMTJInferenceModel(HFInferenceModel):
soft_tokens = self.get_soft_tokens()
dynamic_inference = kwargs.get("tpu_dynamic_inference", False)
print(f"DYNAMIC_INFERENCE={dynamic_inference} KWARGS={kwargs}")
logger.info(f"dynamic_inference={dynamic_inference}")
if not dynamic_inference:
genout = tpool.execute(