Model: Fix TPU

This commit is contained in:
somebody
2023-03-01 19:40:52 -06:00
parent f2974d205e
commit 27b7635c95
8 changed files with 65 additions and 21 deletions

View File

@@ -29,6 +29,7 @@ class ColabInferenceModel(InferenceModel):
gen_settings: GenerationSettings,
single_line: bool = False,
batch_count: int = 1,
**kwargs
):
decoded_prompt = utils.decodenewlines(self.tokenizer.decode(prompt_tokens))