Crystalcareai
commited on
Update modeling_quiet.py
Browse files- modeling_quiet.py +1 -1
modeling_quiet.py
CHANGED
@@ -1325,7 +1325,7 @@ class QuietForCausalLM(QuietPreTrainedModel, GenerationMixin):
|
|
1325 |
nn.init.xavier_uniform_(module.weight)
|
1326 |
|
1327 |
@torch.no_grad()
|
1328 |
-
def generate(self, input_ids, attention_mask=None, **kwargs):
|
1329 |
if attention_mask is None:
|
1330 |
attention_mask = torch.ones_like(input_ids)
|
1331 |
|
|
|
1325 |
nn.init.xavier_uniform_(module.weight)
|
1326 |
|
1327 |
@torch.no_grad()
|
1328 |
+
def generate(self, input_ids, attention_mask=None, streamer=None, **kwargs):
|
1329 |
if attention_mask is None:
|
1330 |
attention_mask = torch.ones_like(input_ids)
|
1331 |
|