mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-29 10:10:35 +08:00
[data] optimize qwen3 loss computation (#7923)
This commit is contained in:
@@ -79,6 +79,7 @@ def create_chat_box(
|
||||
temperature = gr.Slider(minimum=0.01, maximum=1.5, value=0.95, step=0.01)
|
||||
skip_special_tokens = gr.Checkbox(value=True)
|
||||
escape_html = gr.Checkbox(value=True)
|
||||
enable_thinking = gr.Checkbox(value=True)
|
||||
clear_btn = gr.Button()
|
||||
|
||||
tools.input(check_json_schema, inputs=[tools, engine.manager.get_elem_by_id("top.lang")])
|
||||
@@ -103,6 +104,7 @@ def create_chat_box(
|
||||
temperature,
|
||||
skip_special_tokens,
|
||||
escape_html,
|
||||
enable_thinking,
|
||||
],
|
||||
[chatbot, messages],
|
||||
)
|
||||
@@ -127,6 +129,7 @@ def create_chat_box(
|
||||
temperature=temperature,
|
||||
skip_special_tokens=skip_special_tokens,
|
||||
escape_html=escape_html,
|
||||
enable_thinking=enable_thinking,
|
||||
clear_btn=clear_btn,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user