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

config.py not set up to run with single GPU #11

Open
pfps opened this issue Aug 4, 2021 · 0 comments
Open

config.py not set up to run with single GPU #11

pfps opened this issue Aug 4, 2021 · 0 comments

Comments

@pfps
Copy link

pfps commented Aug 4, 2021

When I process run_tree_transformer.py I get an error:

Traceback (most recent call last):
  File "run_tree_transformer.py", line 236, in <module>
    main()
  File "run_tree_transformer.py", line 212, in main
    , args.device, criterion, max_len_trg, train_flag=True)
  File "/data/pfps/nbref/baseline_model/data_utils/train_tree_encoder.py", line 246, in train_eval_tree
    model = model.module
  File "/tilde/pfps/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 594, in __getattr__
    type(self).__name__, name))
AttributeError: 'Transformer' object has no attribute 'module'
(nbref) pfps@heaviside:~/nbref/baseline_model$ git status

I think that this is due to config.py having the wrong default for one or two arguments

        parser.add_argument('--parallel_gpu', action='store_true', default=True)
        parser.add_argument('--dist_gpu', action='store_true', default=True)

doesn't make sense because it is impossible to turn these options off. I changed the default to False which allows further progression.

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

1 participant