mtzig commited on
Commit
04e9040
·
1 Parent(s): d5da4e4

max new token

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- pipe = pipeline("text-generation", model="tpzeng/prm800k_llama_joint_checkpoint1000", bad_words_ids=[[128254],[128255]], device='cuda:0')
5
 
6
  gr.Interface.from_pipeline(pipe).launch()
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ pipe = pipeline("text-generation", model="tpzeng/prm800k_llama_joint_checkpoint1000", bad_words_ids=[[128254],[128255]], max_new_tokens = 1024)
5
 
6
  gr.Interface.from_pipeline(pipe).launch()