Crystalcareai commited on
Commit
67b00f4
·
verified ·
1 Parent(s): 1e2fc7d

Update modeling_quiet.py

Browse files
Files changed (1) hide show
  1. 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