Crystalcareai
commited on
Update modeling_quiet.py
Browse files- modeling_quiet.py +0 -10
modeling_quiet.py
CHANGED
@@ -1455,16 +1455,6 @@ class QuietForCausalLM(QuietPreTrainedModel):
|
|
1455 |
>>> tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
|
1456 |
"Hey, are you conscious? Can you talk to me?\nI'm not conscious, but I can talk to you."
|
1457 |
```"""
|
1458 |
-
log_dict = self.log_dict if self.training else self.eval_log_dict
|
1459 |
-
|
1460 |
-
if self.training and self.kill_after is not None and self.training_steps // self.gradient_accumulation_steps > self.kill_after:
|
1461 |
-
raise ValueError("Killed after")
|
1462 |
-
|
1463 |
-
if not self.training:
|
1464 |
-
n_ahead_talk_to_restore = self.n_ahead_talk
|
1465 |
-
n_passes_to_restore = self.n_passes
|
1466 |
-
self.n_ahead_talk = 1
|
1467 |
-
self.n_passes = 1
|
1468 |
|
1469 |
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
1470 |
output_hidden_states = (
|
|
|
1455 |
>>> tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
|
1456 |
"Hey, are you conscious? Can you talk to me?\nI'm not conscious, but I can talk to you."
|
1457 |
```"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1458 |
|
1459 |
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
1460 |
output_hidden_states = (
|