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
Please check that this issue hasn't been reported before.
I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
Going without any errors.
Current behaviour
Using Dockerfile image like
ARG AXOLOTL_IMG_VER=main-20241027-py3.11-cu121-2.3.1
FROM winglian/axolotl:$AXOLOTL_IMG_VER
# タイムゾーンの設定ENV TZ=Asia/Tokyo
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
WORKDIR /workspace/axolotl
RUN pip3 install packaging ninja mlflow \
&& pip3 install -e '.[flash-attn,deepspeed]'
WARNING: BNB_CUDA_VERSION=121 environment variable detected; loading libbitsandbytes_cuda121.so.
This can be used to load a bitsandbytes version that is different from the PyTorch CUDA version.
If this was unintended set the BNB_CUDA_VERSION variable to an empty string: export BNB_CUDA_VERSION=
If you use the manual override make sure the right libcudart.so is in your LD_LIBRARY_PATH
For example by adding the following to your .bashrc: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_cuda_dir/lib64
[2024-12-11 01:25:17,497] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
df: /root/.triton/autotune: No such file or directory
[2024-12-11 01:25:17,842] [INFO] [root.spawn:60] [PID:30] gcc -pthread -B /root/miniconda3/envs/py3.11/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/py3.11/include -fPIC -O2 -isystem /root/miniconda3/envs/py3.11/include -fPIC -c /tmp/tmp_dru9906/test.c -o /tmp/tmp_dru9906/test.o
[2024-12-11 01:25:17,911] [INFO] [root.spawn:60] [PID:30] gcc -pthread -B /root/miniconda3/envs/py3.11/compiler_compat /tmp/tmp_dru9906/test.o -laio -o /tmp/tmp_dru9906/a.out
[WARNING] Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH
[WARNING] sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.3
[WARNING] using untested triton version (2.3.1), only 1.0.0 is known to be compatible
/root/miniconda3/envs/py3.11/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "model_kwargs" has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
#@@ #@@ @@# @@#
@@ @@ @@ @@ =@@# @@ #@ =@@#.
@@ #@@@@@@@@@ @@ #@#@= @@ #@ .=@@#@@@@@@@@@@@@@@@@@ =@# @# ##= ## =####=+ @@ =#####+ =#@@###. @@
@@@@@@@@@@/ +@@/ +@@ #@ =@= #@= @@ =@#+ +#@# @@ =@#+ +#@# #@. @@
@@@@@@@@@@ ##@@ ##@@ =@# @# =@# @# @@ @@ @@ @@ #@ #@ @@
@@@@@@@@@@@@@@@@@@@@ #@=+++#@= =@@# @@ @@ @@ @@ #@ #@ @@
=@#=====@@ =@# @# @@ @@ @@ @@ #@ #@ @@
@@@@@@@@@@@@@@@@ @@@@ #@ #@= #@= +@@ #@# =@# @@. =@# =@# #@. @@
=@# @# #@= #@ =#@@@@#= +#@@= +#@@@@#= .##@@+ @@
@@@@ @@@@@@@@@@@@@@@@
[2024-12-11 01:25:19,388] [DEBUG] [axolotl.normalize_config:83] [PID:30] [RANK:0] bf16 support detected, enabling for this configuration.�[39m
[2024-12-11 01:25:19,456] [INFO] [axolotl.normalize_config:207] [PID:30] [RANK:0] GPU memory usage baseline: 0.000GB (+0.493GB misc)�[39m
[2024-12-11 01:25:20,056] [INFO] [axolotl.cli.preprocess.do_cli:49] [PID:30] [RANK:0] ChatML set. Adding default system message: あなたは、誠実で優秀なアシスタントです。�[39m
�[33m[2024-12-11 01:25:20,056] [WARNING] [axolotl.cli.preprocess.do_cli:71] [PID:30] [RANK:0] �[31mpreprocess CLI called without dataset_prepared_path set, using default path: last_run_prepared�[39m�[39m
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/workspace/axolotl/src/axolotl/cli/preprocess.py", line 105, in<module>
fire.Fire(do_cli)
File "/root/miniconda3/envs/py3.11/lib/python3.11/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/py3.11/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/py3.11/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/axolotl/src/axolotl/cli/preprocess.py", line 76, in do_cli
load_rl_datasets(cfg=parsed_cfg, cli_args=parsed_cli_args)
File "/workspace/axolotl/src/axolotl/cli/__init__.py", line 500, in load_rl_datasets
train_dataset, eval_dataset = load_prepare_dpo_datasets(cfg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/axolotl/src/axolotl/utils/data/rl.py", line 132, in load_prepare_dpo_datasets
train_dataset = load_split(cfg.datasets, cfg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/axolotl/src/axolotl/utils/data/rl.py", line 81, in load_split
fordata_filein ds_cfg["data_files"]:
TypeError: 'NoneType' object is not iterable
Steps to reproduce
Set the jsonl on data/general/aya-ja-nemotron-dpo-masked_train_10.jsonl as below
Start the preprocess using CUDA_VISIBLE_DEVICES=0,1,2,3 python -m axolotl.cli.preprocess ${YAML_PATH} 2>&1
Please check that this issue hasn't been reported before.
Expected Behavior
Going without any errors.
Current behaviour
Using Dockerfile image like
Steps to reproduce
data/general/aya-ja-nemotron-dpo-masked_train_10.jsonl
as belowCUDA_VISIBLE_DEVICES=0,1,2,3 python -m axolotl.cli.preprocess ${YAML_PATH} 2>&1
Config yaml
Possible solution
I found the issues occures at
src/axolotl/utils/data/rl.py
, line 81, in load_split withTypeError: 'NoneType' object is not iterable
.But if comes after
if ds_cfg["ds_type"] == "json"
, so that ds_cfg exist.And this ds_cfg comes from
cfg.datasets
.This cfg comes from where
load_prepare_dpo_datasets
is called;src/axolotl/cli/__init__.py
,And finally, this
load_rl_datasets
is called fromsrc/axolotl/cli/preprocess.py
I found that this
cfg
directly comes fromconfig.yaml
But there are no option of
data_files
on config and coudn't find on any src.Could anyone fix this issues?
Which Operating Systems are you using?
Python Version
3.10.15
axolotl branch-commit
main
Acknowledgements
The text was updated successfully, but these errors were encountered: