Crystalcareai
commited on
Update modeling_quiet.py
Browse files- modeling_quiet.py +0 -9
modeling_quiet.py
CHANGED
@@ -2117,15 +2117,6 @@ class QuietForCausalLM(QuietPreTrainedModel, GenerationMixin):
|
|
2117 |
del end_embedding
|
2118 |
torch.cuda.empty_cache()
|
2119 |
|
2120 |
-
if streamer is not None:
|
2121 |
-
streamer.put(
|
2122 |
-
input_ids=input_ids[:, -1:],
|
2123 |
-
past_key_values=outputs.past_key_values,
|
2124 |
-
hidden_states=outputs.hidden_states,
|
2125 |
-
attentions=outputs.attentions,
|
2126 |
-
)
|
2127 |
-
|
2128 |
-
|
2129 |
return CausalLMOutputWithPast(
|
2130 |
loss=loss if loss is not None else None,
|
2131 |
logits=(rm_logits if self.n_ahead > 1 else logits) if not self.output_logits_at_the_end else logits,
|
|
|
2117 |
del end_embedding
|
2118 |
torch.cuda.empty_cache()
|
2119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2120 |
return CausalLMOutputWithPast(
|
2121 |
loss=loss if loss is not None else None,
|
2122 |
logits=(rm_logits if self.n_ahead > 1 else logits) if not self.output_logits_at_the_end else logits,
|