Skip to content

[Question] 安装验证时报错 AttributeError: 'Dataset' object has no attribute '_hf_ds' #52

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

Open
1 task done
shewenkan opened this issue May 19, 2025 · 1 comment
Labels
question Further information is requested

Comments

@shewenkan
Copy link

shewenkan commented May 19, 2025

执行adaseq train -c demo.yaml
报错:Traceback (most recent call last):
File "/home/ibest/anaconda3/envs/Ada/bin/adaseq", line 8, in
sys.exit(run())
File "/home/ibest/anaconda3/envs/Ada/lib/python3.10/site-packages/adaseq/main.py", line 13, in run
main(prog='adaseq')
File "/home/ibest/anaconda3/envs/Ada/lib/python3.10/site-packages/adaseq/commands/init.py", line 29, in main
args.func(args)
File "/home/ibest/anaconda3/envs/Ada/lib/python3.10/site-packages/adaseq/commands/train.py", line 84, in train_model_from_args
train_model(
File "/home/ibest/anaconda3/envs/Ada/lib/python3.10/site-packages/adaseq/commands/train.py", line 156, in train_model
trainer = build_trainer_from_partial_objects(
File "/home/ibest/anaconda3/envs/Ada/lib/python3.10/site-packages/adaseq/commands/train.py", line 185, in build_trainer_from_partial_objects
dm = DatasetManager.from_config(task=config.task, **config.dataset)
File "/home/ibest/anaconda3/envs/Ada/lib/python3.10/site-packages/adaseq/data/dataset_manager.py", line 193, in from_config
datasets = {k: v._hf_ds for k, v in msdataset.items()}
File "/home/ibest/anaconda3/envs/Ada/lib/python3.10/site-packages/adaseq/data/dataset_manager.py", line 193, in
datasets = {k: v._hf_ds for k, v in msdataset.items()}
AttributeError: 'Dataset' object has no attribute '_hf_ds'
并没有返回MSdataset对象

What have you tried?

No response

Code (if necessary)

No response

What's your environment?

  • AdaSeq Version (e.g., 1.0 or master):
  • ModelScope Version (e.g., 1.0 or master):
  • PyTorch Version (e.g., 1.12.1):
  • OS (e.g., Ubuntu 20.04):
  • Python version:
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information:

Code of Conduct

  • I agree to follow this project's Code of Conduct
@shewenkan shewenkan added the question Further information is requested label May 19, 2025
@shewenkan
Copy link
Author

adaseq 0.6.6
modelscope 1.26.0
datasets 3.2.0

@shewenkan shewenkan changed the title [Question] [Question] 安装验证时报错 AttributeError: 'Dataset' object has no attribute '_hf_ds' May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant