reduce repetition penalty

This commit is contained in:
hiyouga 2023-06-03 21:57:39 +08:00
parent 0f69a0c19e
commit 926291940d
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ def main():
"temperature": 0.95,
"num_beams": 1,
"max_new_tokens": 256,
"repetition_penalty": 1.5,
"repetition_penalty": 1.0,
"logits_processor": get_logits_processor()
}
with torch.no_grad():

View File

@ -105,7 +105,7 @@ def predict(input, chatbot, max_length, top_p, temperature, history):
"temperature": temperature,
"num_beams": 1,
"max_length": max_length,
"repetition_penalty": 1.5,
"repetition_penalty": 1.0,
"logits_processor": get_logits_processor()
}
with torch.no_grad():