mirror of https://github.com/InternLM/InternLM
add repetition_penalty in GenerationConfig in web_demo.py (#48)
Co-authored-by: YWMditto <862779238@qq.com>pull/23/head^2
parent
be50c02949
commit
fda99947ad
|
@ -147,7 +147,8 @@ class GenerationConfig:
|
|||
top_p: Optional[float] = None
|
||||
temperature: Optional[float] = None
|
||||
do_sample: Optional[bool] = True
|
||||
|
||||
repetition_penalty: Optional[float] = 1.1
|
||||
|
||||
|
||||
@st.cache_resource
|
||||
def load_model():
|
||||
|
|
Loading…
Reference in New Issue