You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"llama": "[INST] <<SYS>>\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.\n<</SYS>>\n{input_text}[/INST]",
28
+
"vicuna": "USER: {input_text}\n\nASSISTANT: ",
29
+
}
30
+
31
+
26
32
@dataclass
27
33
classInferenceConfig:
28
34
"""The inference configuration.
@@ -44,6 +50,7 @@ class InferenceConfig:
44
50
pad_input: Whether to pad all inputs to the max length.
45
51
quant_mode (Optional[str]): Quantization mode.
46
52
revision (Optional[str]): The specific version(a branch, name, a commit id, or a tag name) of model to use.
53
+
prompt_template (Optional[str]): The prompt template for formatting the input text. Some built-in templates include 'llama' and 'vicuna'. Otherwise, the template should contain '{input_text}' for formatting the input text.
0 commit comments