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

“load_fairseq” not found in "AR-Diffusion/data_utils" #71

Open
Don-Joey opened this issue Nov 15, 2023 · 3 comments
Open

“load_fairseq” not found in "AR-Diffusion/data_utils" #71

Don-Joey opened this issue Nov 15, 2023 · 3 comments

Comments

@Don-Joey
Copy link

When I implement AR-Diffusion, ImportError: cannot import name 'load_fairseq' from data_utils.fairseq_dataset.

@ecust-sl
Copy link

i have the same problem

@wutong4012
Copy link
Collaborator

Just comment out the relevant code. It will not affect the final result. This is just debugging code.

@hwaseem04
Copy link

hwaseem04 commented Mar 11, 2024

Just comment out the relevant code. It will not affect the final result. This is just debugging code.

Yes, this works.

Do the following in AR-diffusion/data_utils/s2s_dataset.py

  • You can comment line number 16
  • Add this line config.fairseq.use_fairseq = False as a first statement in load_jsonl_data() function

Also another change has to be made if you are using 'xsum'.

  • In s2s_dataset.py set dev_data = load_jsonl_data(config, attri='test') instead of attri='dev'
  • Again in generate.py set dev_data = load_jsonl_data(config, 'test')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants