retarfi commited on
Commit
f2582eb
ยท
1 Parent(s): 17b2f4f

change max_token and page texts

Browse files
Files changed (1) hide show
  1. app.py +17 -10
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 = """The official demo for **[izumi-lab/llama-13b-japanese-lora-v0-1ep](https://huggingface.co/izumi-lab/llama-13b-japanese-lora-v0-1ep)**. It is a 13B-parameter LLaMA model finetuned to follow instructions. It is trained on the [izumi-lab/llm-japanese-dataset](https://huggingface.co/datasets/izumi-lab/llm-japanese-dataset) dataset. For more information, please visit [the project's website](https://llm.msuzuki.me)."""
249
- with gr.Blocks(
 
 
 
 
 
 
 
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=3, label="Instruction", placeholder="ใ“ใ‚“ใซใกใฏ"
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=256,
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")