microsoft / microsoft/Graphormer

DIsable to predict properties by fairseq-generate

Open
#154 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.5k
Forks
374
PR merge metrics
No merged PRs in 30d

Description

After training on pcqm4mv2, I wanted to use checkpoint to predict properties. So I used
fairseq-generate $data_binarization --task graph_prediction --path ckpts/checkpoint_best.pt --num-classes 1
The bug was shown as:
Using backend: pytorch Traceback (most recent call last): File "/home/nv3090x2/下载/ENTER/envs/graphormer/bin/fairseq-generate", line 8, in <module> sys.exit(cli_main()) File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq_cli/generate.py", line 413, in cli_main main(args) File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq_cli/generate.py", line 50, in main return _main(cfg, sys.stdout) File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq_cli/generate.py", line 83, in _main task = tasks.setup_task(cfg.task) File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq/tasks/__init__.py", line 46, in setup_task return task.setup_task(cfg, **kwargs) File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq/tasks/graph_prediction.py", line 179, in setup_task return cls(cfg) File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq/tasks/graph_prediction.py", line 155, in __init__ self.dm = GraphormerDataset( File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq/data/dataset.py", line 84, in __init__ self.dataset = PYGDatasetLookupTable.GetPYGDataset(dataset_spec, seed=seed) File "/home/nv3090x2/下载/ENTER/lib/python3.9/site-packages/fairseq/data/pyg_datasets/pyg_dataset_lookup_table.py", line 102, in GetPYGDataset raise ValueError(f"Unknown dataset name {name} for pyg source.") ValueError: Unknown dataset name pcqm4m for pyg source.
I really hope you can help me with the bug. Thank you very much.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported fairseq-generate command and traceback first. Trace setup through fairseq_cli/generate.py, fairseq/tasks/graph_prediction.py, and fairseq/data/pyg_datasets/pyg_dataset_lookup_table.py, focusing on why pcqm4m is rejected. Done means the documented prediction command no longer raises this dataset-name error and property prediction can proceed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.