[Question] 安装验证时报错 AttributeError: 'Dataset' object has no attribute '_hf_ds'
执行adaseq train -c demo.yaml
报错:Traceback (most recent call last):
File "/home/ibest/anaconda3/envs/Ada/bin/adaseq", line 8, in
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
- [x] I agree to follow this project's Code of Conduct
adaseq 0.6.6 modelscope 1.26.0 datasets 3.2.0
i have the same question too. wait for response. thanks full.
1. Install datasets==2.16.0
2. Environment Code Changes
Reference Path: /anaconda3/envs/adaseq/lib/python3.10/site-packages/modelscope/utils/checkpoint.py
checkpoint.py, line 124, after modification:
checkpoint = torch.load(filename, map_location='cpu', weights_only=False)
Reference Path: /anaconda3/envs/adaseq/lib/python3.10/site-packages/adaseq/data/dataset_manager.py
dataset_manager.py, line 193, after modification:
datasets = {k: getattr(v, '_hf_ds', v) for k, v in msdataset.items()}