masanorihirano
commited on
Merge branch 'main' of https://huggingface.co/spaces/izumi-lab/llama-13b-japanese-lora-v0-1ep
Browse files
app.py
CHANGED
@@ -194,7 +194,7 @@ def evaluate(
|
|
194 |
)
|
195 |
input_ids = inputs["input_ids"].to(device)
|
196 |
generation_config = GenerationConfig(
|
197 |
-
do_sample=
|
198 |
temperature=temperature,
|
199 |
top_p=top_p,
|
200 |
top_k=top_k,
|
@@ -288,7 +288,7 @@ with gr.Blocks(
|
|
288 |
maximum=1.0,
|
289 |
value=0.7,
|
290 |
step=0.05,
|
291 |
-
interactive=
|
292 |
label="Temperature",
|
293 |
)
|
294 |
max_tokens = gr.Slider(
|
|
|
194 |
)
|
195 |
input_ids = inputs["input_ids"].to(device)
|
196 |
generation_config = GenerationConfig(
|
197 |
+
do_sample=False,
|
198 |
temperature=temperature,
|
199 |
top_p=top_p,
|
200 |
top_k=top_k,
|
|
|
288 |
maximum=1.0,
|
289 |
value=0.7,
|
290 |
step=0.05,
|
291 |
+
interactive=False,
|
292 |
label="Temperature",
|
293 |
)
|
294 |
max_tokens = gr.Slider(
|