Spaces:
Running
Running
Husnain
commited on
Commit
•
006ffdb
1
Parent(s):
b1ed819
♻️ [Refactor] Rename gemma-7b-1.1 to gemma-1.1-7b
Browse files
messagers/message_composer.py
CHANGED
@@ -126,7 +126,7 @@ class MessageComposer:
|
|
126 |
self.merged_str_list.append(f"GPT4 Correct Assistant:\n")
|
127 |
self.merged_str = "\n".join(self.merged_str_list)
|
128 |
# https://huggingface.co/google/gemma-1.1-7b-it#chat-template
|
129 |
-
elif self.model in ["gemma-7b"]:
|
130 |
self.messages = self.concat_messages_by_role(messages)
|
131 |
self.merged_str_list = []
|
132 |
self.end_of_turn = "<end_of_turn>"
|
@@ -163,7 +163,7 @@ class MessageComposer:
|
|
163 |
if __name__ == "__main__":
|
164 |
# model = "mixtral-8x7b"
|
165 |
# model = "nous-mixtral-8x7b"
|
166 |
-
# model = "gemma-7b"
|
167 |
model = "openchat-3.5"
|
168 |
composer = MessageComposer(model)
|
169 |
messages = [
|
|
|
126 |
self.merged_str_list.append(f"GPT4 Correct Assistant:\n")
|
127 |
self.merged_str = "\n".join(self.merged_str_list)
|
128 |
# https://huggingface.co/google/gemma-1.1-7b-it#chat-template
|
129 |
+
elif self.model in ["gemma-1.1-7b"]:
|
130 |
self.messages = self.concat_messages_by_role(messages)
|
131 |
self.merged_str_list = []
|
132 |
self.end_of_turn = "<end_of_turn>"
|
|
|
163 |
if __name__ == "__main__":
|
164 |
# model = "mixtral-8x7b"
|
165 |
# model = "nous-mixtral-8x7b"
|
166 |
+
# model = "gemma-1.1-7b"
|
167 |
model = "openchat-3.5"
|
168 |
composer = MessageComposer(model)
|
169 |
messages = [
|