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
[2024-04-17 18:33:08,604] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-04-17 18:33:08,725] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Traceback (most recent call last):
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 346, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: ':'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/train_bash.py", line 1, in
from llmtuner import run_exp
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/init.py", line 7, in
from .webui import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/init.py", line 1, in
from .interface import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/interface.py", line 1, in
import gradio as gr
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio._simple_templates
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in
from gradio.components.base import FormComponent
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in
from gradio import processing_utils, utils
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/processing_utils.py", line 30, in
async_client = httpx.AsyncClient()
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1442, in init
self._mounts: dict[URLPattern, AsyncBaseTransport | None] = {
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1443, in
URLPattern(key): None
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_utils.py", line 370, in init
url = URL(pattern)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urls.py", line 115, in init
self._uri_reference = urlparse(url, **kwargs)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 248, in urlparse
parsed_port: int | None = normalize_port(port, scheme)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 348, in normalize_port
raise InvalidURL(f"Invalid port: {port!r}")
httpx.InvalidURL: Invalid port: ':'
Traceback (most recent call last):
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 346, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: ':'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/train_bash.py", line 1, in
from llmtuner import run_exp
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/init.py", line 7, in
from .webui import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/init.py", line 1, in
from .interface import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/interface.py", line 1, in
import gradio as gr
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio._simple_templates
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in
from gradio.components.base import FormComponent
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in
from gradio import processing_utils, utils
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/processing_utils.py", line 30, in
async_client = httpx.AsyncClient()
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1442, in init
self._mounts: dict[URLPattern, AsyncBaseTransport | None] = {
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1443, in
URLPattern(key): None
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_utils.py", line 370, in init
url = URL(pattern)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urls.py", line 115, in init
self._uri_reference = urlparse(url, **kwargs)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 248, in urlparse
parsed_port: int | None = normalize_port(port, scheme)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 348, in normalize_port
raise InvalidURL(f"Invalid port: {port!r}")
httpx.InvalidURL: Invalid port: ':'
[2024-04-17 18:33:11,418] [INFO] [launch.py:316:sigkill_handler] Killing subprocess 20087
[2024-04-17 18:33:11,419] [INFO] [launch.py:316:sigkill_handler] Killing subprocess 20088
Expected behavior
No response
System Info
No response
Others
建议命令行运行时llmtuner不用导入webui模块
The text was updated successfully, but these errors were encountered:
you can also change "/usr/local/lib/python3.9/dist-packages/httpx/_urlparse.py"
Line360: if port is None or port == "":
to following if port is None or port == "" or port[1:] is None or port[1:] == "":
For me ,it works.
Reminder
Reproduction
[2024-04-17 18:33:08,604] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
[2024-04-17 18:33:08,725] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Traceback (most recent call last):
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 346, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: ':'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/train_bash.py", line 1, in
from llmtuner import run_exp
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/init.py", line 7, in
from .webui import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/init.py", line 1, in
from .interface import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/interface.py", line 1, in
import gradio as gr
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio._simple_templates
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in
from gradio.components.base import FormComponent
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in
from gradio import processing_utils, utils
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/processing_utils.py", line 30, in
async_client = httpx.AsyncClient()
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1442, in init
self._mounts: dict[URLPattern, AsyncBaseTransport | None] = {
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1443, in
URLPattern(key): None
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_utils.py", line 370, in init
url = URL(pattern)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urls.py", line 115, in init
self._uri_reference = urlparse(url, **kwargs)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 248, in urlparse
parsed_port: int | None = normalize_port(port, scheme)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 348, in normalize_port
raise InvalidURL(f"Invalid port: {port!r}")
httpx.InvalidURL: Invalid port: ':'
Traceback (most recent call last):
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 346, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: ':'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/train_bash.py", line 1, in
from llmtuner import run_exp
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/init.py", line 7, in
from .webui import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/init.py", line 1, in
from .interface import create_ui, create_web_demo
File "/mlx/users/chenkuang.1/repo/2633/train_llm/lib/LLaMA-Factory/src/llmtuner/webui/interface.py", line 1, in
import gradio as gr
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/init.py", line 3, in
import gradio._simple_templates
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in
from .simpledropdown import SimpleDropdown
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in
from gradio.components.base import FormComponent
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in
from gradio import processing_utils, utils
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/gradio/processing_utils.py", line 30, in
async_client = httpx.AsyncClient()
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1442, in init
self._mounts: dict[URLPattern, AsyncBaseTransport | None] = {
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_client.py", line 1443, in
URLPattern(key): None
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_utils.py", line 370, in init
url = URL(pattern)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urls.py", line 115, in init
self._uri_reference = urlparse(url, **kwargs)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 248, in urlparse
parsed_port: int | None = normalize_port(port, scheme)
File "/home/tiger/.pyenv/versions/3.10.14/envs/train_llm/lib/python3.10/site-packages/httpx/_urlparse.py", line 348, in normalize_port
raise InvalidURL(f"Invalid port: {port!r}")
httpx.InvalidURL: Invalid port: ':'
[2024-04-17 18:33:11,418] [INFO] [launch.py:316:sigkill_handler] Killing subprocess 20087
[2024-04-17 18:33:11,419] [INFO] [launch.py:316:sigkill_handler] Killing subprocess 20088
Expected behavior
No response
System Info
No response
Others
建议命令行运行时llmtuner不用导入webui模块
The text was updated successfully, but these errors were encountered: