Lines Matching full:prompt
141 prompt: str,
147 Perform text completion for a prompt using the language model.
150 prompt (str): Text prompt for completion.
153 …echo (bool, optional): Flag indicating whether to include prompt tokens in the generated output. D…
159 …This method generates text completion for the provided prompt, employing nucleus sampling to intro…
162 prompt_tokens=self.tokenizer.encode(prompt, bos=True, eos=False),
178 prompt (str): Text prompt for completion.
181 …echo (bool, optional): Flag indicating whether to include prompt tokens in the generated output. D…
187 …This method generates text completion for the provided prompt, employing nucleus sampling to intro…
191 prompt = input("Me: ")
192 while prompt and prompt != exit_prompt:
196 self._format_prompt(prompt), bos=True, eos=False
205 prompt = input("Me: ")
208 def _format_prompt(self, prompt: str) -> str:
213 {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>"""