to(cuda)
Browse files
lora.py
CHANGED
@@ -70,9 +70,9 @@ def submit_to_model():
|
|
70 |
content = ""
|
71 |
for text in text_streamer:
|
72 |
print(text)
|
73 |
-
if text.endswith("<|eot_id|>"):
|
74 |
-
text = text.replace("<|eot_id|>", "")
|
75 |
content += text
|
|
|
|
|
76 |
yield content
|
77 |
|
78 |
|
|
|
70 |
content = ""
|
71 |
for text in text_streamer:
|
72 |
print(text)
|
|
|
|
|
73 |
content += text
|
74 |
+
if content.endswith("<|eot_id|>"):
|
75 |
+
content = content.replace("<|eot_id|>", "")
|
76 |
yield content
|
77 |
|
78 |
|