mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 16:18:10 +08:00
reduce repetition penalty
Former-commit-id: 0381d93fc10ea5346724fe6295caa565a8eb4f61
This commit is contained in:
parent
c68f9ec3a9
commit
7d6542115c
@ -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():
|
||||
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user