x54-729
commited on
Commit
•
e338c92
1
Parent(s):
0e5ca87
small
Browse files- modeling_internlm2.py +1 -1
modeling_internlm2.py
CHANGED
@@ -1215,7 +1215,7 @@ class InternLM2ForCausalLM(InternLM2PreTrainedModel):
|
|
1215 |
self.query = query
|
1216 |
self.history = history
|
1217 |
self.response = ""
|
1218 |
-
self.
|
1219 |
self.received_inputs = False
|
1220 |
self.queue.put((self.response, history + [(self.query, self.response)]))
|
1221 |
|
|
|
1215 |
self.query = query
|
1216 |
self.history = history
|
1217 |
self.response = ""
|
1218 |
+
self.cache = []
|
1219 |
self.received_inputs = False
|
1220 |
self.queue.put((self.response, history + [(self.query, self.response)]))
|
1221 |
|