Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增流式读取数据集报错 #296

Closed
msn199959 opened this issue Aug 1, 2023 · 2 comments
Closed

新增流式读取数据集报错 #296

msn199959 opened this issue Aug 1, 2023 · 2 comments
Labels
solved This problem has been already solved

Comments

@msn199959
Copy link

Traceback (most recent call last):
File "src/train_bash.py", line 23, in
main()
File "src/train_bash.py", line 8, in main
run_pt(model_args, data_args, training_args, finetuning_args)
File "/cpfs01/shared/public/stream-llama/LLaMA-Efficient-Tuning/src/llmtuner/tuner/pt/workflow.py", line 28, in run_pt
dataset = preprocess_dataset(dataset, tokenizer, data_args, training_args, stage="pt")
File "/cpfs01/shared/public/stream-llama/LLaMA-Efficient-Tuning/src/llmtuner/dsets/preprocess.py", line 176, in preprocess_dataset
print_unsupervised_dataset_example(next(iter(dataset)))
File "/cpfs01/user/wkspace/envs/vicuna/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 1353, in iter
for key, example in ex_iterable:
File "/cpfs01/user/wkspace/envs/vicuna/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 956, in iter
for x in self.ex_iterable:
File "/cpfs01/user/wkspace/envs/vicuna/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 652, in iter
yield from self._iter()
File "/cpfs01/user/wkspace/envs/vicuna/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 704, in _iter
raise ValueError(
ValueError: Column lengths mismatch: columns ['input_ids', 'attention_mask', 'labels'] have length [10, 10, 10] while prompt has length 50.

@hiyouga
Copy link
Owner

hiyouga commented Aug 1, 2023

命令行参数发一下

@hiyouga hiyouga added the pending This problem is yet to be addressed label Aug 1, 2023
@hiyouga hiyouga closed this as completed in e3f8077 Aug 1, 2023
@hiyouga hiyouga reopened this Aug 1, 2023
@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Aug 11, 2023
@hiyouga hiyouga closed this as completed Aug 11, 2023
@yuanzhiyong1999
Copy link

最后怎么解决的呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

3 participants