retarfi
commited on
Commit
ยท
f2582eb
1
Parent(s):
17b2f4f
change max_token and page texts
Browse files
app.py
CHANGED
@@ -245,8 +245,15 @@ def no_interactive() -> Tuple[gr.Request, gr.Request]:
|
|
245 |
title = """<h1 align="center">LLaMA-13B Japanese LoRA</h1>"""
|
246 |
|
247 |
theme = gr.themes.Default(primary_hue="green")
|
248 |
-
description =
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
css="""#col_container { margin-left: auto; margin-right: auto;}""",
|
251 |
theme=theme,
|
252 |
) as demo:
|
@@ -256,7 +263,7 @@ with gr.Blocks(
|
|
256 |
with gr.Row():
|
257 |
with gr.Column():
|
258 |
instruction = gr.Textbox(
|
259 |
-
lines=
|
260 |
)
|
261 |
inputs = gr.Textbox(lines=1, label="Input", placeholder="none")
|
262 |
with gr.Row():
|
@@ -278,7 +285,7 @@ with gr.Blocks(
|
|
278 |
)
|
279 |
max_tokens = gr.Slider(
|
280 |
minimum=20,
|
281 |
-
maximum=
|
282 |
value=128,
|
283 |
step=1,
|
284 |
interactive=True,
|
@@ -300,14 +307,14 @@ with gr.Blocks(
|
|
300 |
By continuing to use our app, you provide your explicit consent to the collection, use, and potential sharing of your data as described above. If you do not agree with our data collection, use, and sharing practices, please do not use our app.
|
301 |
|
302 |
## ใใผใฟๅ้ใๅฉ็จใๅ
ฑๆใซ้ขใใใฆใผใถใผใฎๅๆ๏ผ
|
303 |
-
|
304 |
|
305 |
-
- **ๅ้**:
|
306 |
-
- **ๅฉ็จ**:
|
307 |
-
- **ๅ
ฑๆใใใณๅ
ฌ้**:
|
308 |
-
- **ใใผใฟไฟๆ**:
|
309 |
|
310 |
-
|
311 |
"""
|
312 |
)
|
313 |
accept_button = gr.Button("I Agree")
|
|
|
245 |
title = """<h1 align="center">LLaMA-13B Japanese LoRA</h1>"""
|
246 |
|
247 |
theme = gr.themes.Default(primary_hue="green")
|
248 |
+
description = (
|
249 |
+
"The official demo for **[izumi-lab/llama-13b-japanese-lora-v0-1ep](https://huggingface.co/izumi-lab/llama-13b-japanese-lora-v0-1ep)**. "
|
250 |
+
"It is a 13B-parameter LLaMA model finetuned to follow instructions. "
|
251 |
+
"It is trained on the [izumi-lab/llm-japanese-dataset](https://huggingface.co/datasets/izumi-lab/llm-japanese-dataset) dataset. "
|
252 |
+
"For more information, please visit [the project's website](https://llm.msuzuki.me). "
|
253 |
+
"This model can output up to 256 tokens, but the maximum number of tokens is 227 due to the GPU memory limit of HuggingFace Space. "
|
254 |
+
"It takes about **1 minute** to output. When access is concentrated, the operation may become slow."
|
255 |
+
)
|
256 |
+
with gr.Blocks()
|
257 |
css="""#col_container { margin-left: auto; margin-right: auto;}""",
|
258 |
theme=theme,
|
259 |
) as demo:
|
|
|
263 |
with gr.Row():
|
264 |
with gr.Column():
|
265 |
instruction = gr.Textbox(
|
266 |
+
lines=2, label="Instruction", placeholder="ใใใซใกใฏ"
|
267 |
)
|
268 |
inputs = gr.Textbox(lines=1, label="Input", placeholder="none")
|
269 |
with gr.Row():
|
|
|
285 |
)
|
286 |
max_tokens = gr.Slider(
|
287 |
minimum=20,
|
288 |
+
maximum=227,
|
289 |
value=128,
|
290 |
step=1,
|
291 |
interactive=True,
|
|
|
307 |
By continuing to use our app, you provide your explicit consent to the collection, use, and potential sharing of your data as described above. If you do not agree with our data collection, use, and sharing practices, please do not use our app.
|
308 |
|
309 |
## ใใผใฟๅ้ใๅฉ็จใๅ
ฑๆใซ้ขใใใฆใผใถใผใฎๅๆ๏ผ
|
310 |
+
ๆฌใขใใชใไฝฟ็จใใใใจใซใใใๆไพใใใใผใฟใซ้ขใใไปฅไธใฎๆกไปถใซๅๆใใใใฎใจใใพใ๏ผ
|
311 |
|
312 |
+
- **ๅ้**: ๆฌใขใใชใซๅ
ฅๅใใใใใญในใใใผใฟใฏๅ้ใใใๅ ดๅใใใใพใใ
|
313 |
+
- **ๅฉ็จ**: ๅ้ใใใใใผใฟใฏใ็ ็ฉถใใๅ็จใขใใชใฑใผใทใงใณใๅซใใตใผใในใฎ้็บใซไฝฟ็จใใใๅ ดๅใใใใพใใ
|
314 |
+
- **ๅ
ฑๆใใใณๅ
ฌ้**: ๅ
ฅๅใใผใฟใฏ็ฌฌไธ่
ใจๅ
ฑๆใใใใใๅๆใๅ
ฌ้ใฎ็ฎ็ใงไฝฟ็จใใใๅ ดๅใใใใพใใ
|
315 |
+
- **ใใผใฟไฟๆ**: ๅ
ฅๅใใผใฟใฏๅฟ
่ฆ้ใไฟๆใใใพใใ
|
316 |
|
317 |
+
ๆฌใขใใชใๅผใ็ถใไฝฟ็จใใใใจใซใใใไธ่จใฎใใใซใใผใฟใฎๅ้ใปๅฉ็จใปๅ
ฑๆใซใคใใฆๅๆใใพใใใใผใฟใฎๅฉ็จๆนๆณใซๅๆใใชใๅ ดๅใฏใๆฌใขใใชใไฝฟ็จใใชใใงใใ ใใใ
|
318 |
"""
|
319 |
)
|
320 |
accept_button = gr.Button("I Agree")
|