Update modeling_minicpmo.py
Browse files- modeling_minicpmo.py +2 -2
modeling_minicpmo.py
CHANGED
@@ -960,7 +960,7 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
|
|
960 |
"top_k": 100,
|
961 |
"temperature": 0.7,
|
962 |
"do_sample": True,
|
963 |
-
"repetition_penalty": 1.
|
964 |
}
|
965 |
else:
|
966 |
generation_config = {
|
@@ -1163,7 +1163,7 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
|
|
1163 |
"top_k": 100,
|
1164 |
"temperature": 0.7,
|
1165 |
"do_sample": True,
|
1166 |
-
"repetition_penalty": 1.
|
1167 |
}
|
1168 |
else:
|
1169 |
generation_config = {
|
|
|
960 |
"top_k": 100,
|
961 |
"temperature": 0.7,
|
962 |
"do_sample": True,
|
963 |
+
"repetition_penalty": 1.05,
|
964 |
}
|
965 |
else:
|
966 |
generation_config = {
|
|
|
1163 |
"top_k": 100,
|
1164 |
"temperature": 0.7,
|
1165 |
"do_sample": True,
|
1166 |
+
"repetition_penalty": 1.05,
|
1167 |
}
|
1168 |
else:
|
1169 |
generation_config = {
|