jhangmez commited on
Commit
cc7222a
·
1 Parent(s): d1bdf83

Se quito min_p

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -14,7 +14,6 @@ def respond(
14
  max_tokens,
15
  temperature,
16
  top_p,
17
- min_p,
18
  ):
19
  conversations = [
20
  {"from": "system", "value": system_message}
@@ -45,8 +44,7 @@ def respond(
45
  max_tokens=max_tokens,
46
  stream=True,
47
  temperature=temperature,
48
- top_p=top_p,
49
- min_p=min_p
50
  ):
51
  token = message.choices[0].delta.content
52
 
@@ -69,13 +67,6 @@ demo = gr.ChatInterface(
69
  step=0.05,
70
  label="Top-p (nucleus sampling)",
71
  ),
72
- gr.Slider(
73
- minimum=0.1,
74
- maximum=1.0,
75
- value=0.1,
76
- step=0.05,
77
- label="min-p",
78
- ),
79
  ],
80
  )
81
 
 
14
  max_tokens,
15
  temperature,
16
  top_p,
 
17
  ):
18
  conversations = [
19
  {"from": "system", "value": system_message}
 
44
  max_tokens=max_tokens,
45
  stream=True,
46
  temperature=temperature,
47
+ top_p=top_p
 
48
  ):
49
  token = message.choices[0].delta.content
50
 
 
67
  step=0.05,
68
  label="Top-p (nucleus sampling)",
69
  ),
 
 
 
 
 
 
 
70
  ],
71
  )
72