You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the README and searched the existing issues.
Reproduction
报错信息如下
Traceback (most recent call last):
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/queueing.py", line 566, in process_events
response = await route_utils.call_process_api(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/route_utils.py", line 270, in call_process_api
output = await app.get_blocks().process_api(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/blocks.py", line 1887, in process_api
result = await self.call_function(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/blocks.py", line 1484, in call_function
prediction = await utils.async_iteration(iterator)
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 632, in async_iteration
return await iterator.anext()
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 625, in anext
return await anyio.to_thread.run_sync(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 608, in run_sync_iterator_async
return next(iterator)
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 791, in gen_wrapper
response = next(iterator)
File "/opt/LLaMA-Factory/src/llmtuner/webui/runner.py", line 275, in run_train
yield from self._launch(data, do_train=True)
File "/opt/LLaMA-Factory/src/llmtuner/webui/runner.py", line 266, in _launch
yield from self.monitor()
File "/opt/LLaMA-Factory/src/llmtuner/webui/runner.py", line 302, in monitor
running_log, running_progress, running_loss = get_trainer_info(output_path, self.do_train)
File "/opt/LLaMA-Factory/src/llmtuner/webui/utils.py", line 95, in get_trainer_info
running_loss = gr.Plot(gen_loss_plot(trainer_log))
File "/opt/LLaMA-Factory/src/llmtuner/extras/ploting.py", line 46, in gen_loss_plot
ax.plot(steps, smooth(losses), color="#1f77b4", label="smoothed")
File "/opt/LLaMA-Factory/src/llmtuner/extras/ploting.py", line 24, in smooth
last = scalars[0]
IndexError: list index out of range
Expected behavior
No response
System Info
No response
Others
No response
The text was updated successfully, but these errors were encountered:
Reminder
Reproduction
报错信息如下
Traceback (most recent call last):
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/queueing.py", line 566, in process_events
response = await route_utils.call_process_api(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/route_utils.py", line 270, in call_process_api
output = await app.get_blocks().process_api(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/blocks.py", line 1887, in process_api
result = await self.call_function(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/blocks.py", line 1484, in call_function
prediction = await utils.async_iteration(iterator)
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 632, in async_iteration
return await iterator.anext()
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 625, in anext
return await anyio.to_thread.run_sync(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 608, in run_sync_iterator_async
return next(iterator)
File "/root/miniconda3/envs/train/lib/python3.10/site-packages/gradio/utils.py", line 791, in gen_wrapper
response = next(iterator)
File "/opt/LLaMA-Factory/src/llmtuner/webui/runner.py", line 275, in run_train
yield from self._launch(data, do_train=True)
File "/opt/LLaMA-Factory/src/llmtuner/webui/runner.py", line 266, in _launch
yield from self.monitor()
File "/opt/LLaMA-Factory/src/llmtuner/webui/runner.py", line 302, in monitor
running_log, running_progress, running_loss = get_trainer_info(output_path, self.do_train)
File "/opt/LLaMA-Factory/src/llmtuner/webui/utils.py", line 95, in get_trainer_info
running_loss = gr.Plot(gen_loss_plot(trainer_log))
File "/opt/LLaMA-Factory/src/llmtuner/extras/ploting.py", line 46, in gen_loss_plot
ax.plot(steps, smooth(losses), color="#1f77b4", label="smoothed")
File "/opt/LLaMA-Factory/src/llmtuner/extras/ploting.py", line 24, in smooth
last = scalars[0]
IndexError: list index out of range
Expected behavior
No response
System Info
No response
Others
No response
The text was updated successfully, but these errors were encountered: