Skip to content

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

Open

Description

@Don-Joey

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

Activity

  1. ecust-sl commented on Nov 20, 2023

    @ecust-sl

    i have the same problem

  2. wutong4012 commented on Feb 22, 2024

    @wutong4012
    Collaborator

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

  3. hwaseem04 commented on Mar 11, 2024

    @hwaseem04

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions