Hi, when I try to finetuning with command:llamafactory-cli train examples/train_full/qwen2vl_full_sft.yaml , I encountered this error:
from transformers.trainer import TRAINER_STATE_NAME File "/home/tiger/.local/lib/python3.11/site-packages/transformers/trainer.py", line 188, in <module> from apex import amp File "/usr/local/lib/python3.11/dist-packages/apex/__init__.py", line 7, in <module> from . import amp File "/usr/local/lib/python3.11/dist-packages/apex/amp/__init__.py", line 1, in <module> from .amp import init, half_function, float_function, promote_function,\ File "/usr/local/lib/python3.11/dist-packages/apex/amp/amp.py", line 5, in <module> from .frontend import * File "/usr/local/lib/python3.11/dist-packages/apex/amp/frontend.py", line 2, in <module> from ._initialize import _initialize File "/usr/local/lib/python3.11/dist-packages/apex/amp/_initialize.py", line 2, in <module> from torch._six import string_classes ModuleNotFoundError: No module named 'torch._six'
Hi, when I try to finetuning with command:
llamafactory-cli train examples/train_full/qwen2vl_full_sft.yaml
, I encountered this error:from transformers.trainer import TRAINER_STATE_NAME File "/home/tiger/.local/lib/python3.11/site-packages/transformers/trainer.py", line 188, in <module> from apex import amp File "/usr/local/lib/python3.11/dist-packages/apex/__init__.py", line 7, in <module> from . import amp File "/usr/local/lib/python3.11/dist-packages/apex/amp/__init__.py", line 1, in <module> from .amp import init, half_function, float_function, promote_function,\ File "/usr/local/lib/python3.11/dist-packages/apex/amp/amp.py", line 5, in <module> from .frontend import * File "/usr/local/lib/python3.11/dist-packages/apex/amp/frontend.py", line 2, in <module> from ._initialize import _initialize File "/usr/local/lib/python3.11/dist-packages/apex/amp/_initialize.py", line 2, in <module> from torch._six import string_classes ModuleNotFoundError: No module named 'torch._six'