{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/fairseq/issues/1476","repository_url":"https://api.github.com/repos/pytorch/fairseq","labels_url":"https://api.github.com/repos/pytorch/fairseq/issues/1476/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/fairseq/issues/1476/comments","events_url":"https://api.github.com/repos/pytorch/fairseq/issues/1476/events","html_url":"https://github.com/pytorch/fairseq/issues/1476","id":534783345,"node_id":"MDU6SXNzdWU1MzQ3ODMzNDU=","number":1476,"title":"[BART on CNN/DM] issue on load checkpoint","user":{"login":"Liatwilight","id":17587133,"node_id":"MDQ6VXNlcjE3NTg3MTMz","avatar_url":"https://avatars3.githubusercontent.com/u/17587133?v=4","gravatar_id":"","url":"https://api.github.com/users/Liatwilight","html_url":"https://github.com/Liatwilight","followers_url":"https://api.github.com/users/Liatwilight/followers","following_url":"https://api.github.com/users/Liatwilight/following{/other_user}","gists_url":"https://api.github.com/users/Liatwilight/gists{/gist_id}","starred_url":"https://api.github.com/users/Liatwilight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liatwilight/subscriptions","organizations_url":"https://api.github.com/users/Liatwilight/orgs","repos_url":"https://api.github.com/users/Liatwilight/repos","events_url":"https://api.github.com/users/Liatwilight/events{/privacy}","received_events_url":"https://api.github.com/users/Liatwilight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-12-09T08:59:55Z","updated_at":"2019-12-16T17:55:55Z","closed_at":"2019-12-16T17:55:54Z","author_association":"NONE","body":"When I try to finetune the model following the README (https://github.com/pytorch/fairseq/blob/master/examples/bart/README.cnn.md), I met some problems:\r\n```plaintext\r\nTraceback (most recent call last):\r\n  File \"train.py\", line 337, in <module>\r\n    cli_main()\r\n  File \"train.py\", line 329, in cli_main\r\n    nprocs=args.distributed_world_size,\r\n  File \"/home/guimin.gm/miniconda3/envs/pt/lib/python3.6/site-packages/torch/multiprocessing/spawn.py\", line 171, in spawn\r\n    while not spawn_context.join():\r\n  File \"/home/guimin.gm/miniconda3/envs/pt/lib/python3.6/site-packages/torch/multiprocessing/spawn.py\", line 118, in join\r\n    raise Exception(msg)\r\nException:\r\n\r\n-- Process 3 terminated with the following error:\r\nTraceback (most recent call last):\r\n  File \"/home/guimin.gm/miniconda3/envs/pt/lib/python3.6/site-packages/torch/multiprocessing/spawn.py\", line 19, in _wrap\r\n    fn(i, *args)\r\n  File \"/gruntdata/guimin.gm/bart/fairseq-master/train.py\", line 296, in distributed_main\r\n    main(args, init_distributed=True)\r\n  File \"/gruntdata/guimin.gm/bart/fairseq-master/train.py\", line 70, in main\r\n    extra_state, epoch_itr = checkpoint_utils.load_checkpoint(args, trainer)\r\n  File \"/gruntdata/guimin.gm/bart/fairseq-master/fairseq/checkpoint_utils.py\", line 115, in load_checkpoint\r\n    reset_meters=args.reset_meters,\r\n  File \"/gruntdata/guimin.gm/bart/fairseq-master/fairseq/trainer.py\", line 186, in load_checkpoint\r\n    state = checkpoint_utils.load_checkpoint_to_cpu(filename)\r\n  File \"/gruntdata/guimin.gm/bart/fairseq-master/fairseq/checkpoint_utils.py\", line 146, in load_checkpoint_to_cpu\r\n    with PathManager.open(path, \"rb\") as f:\r\n  File \"/gruntdata/guimin.gm/bart/fairseq-master/fairseq/file_io.py\", line 51, in open\r\n    newline=newline,\r\nTypeError: Required argument 'file' (pos 1) not found\r\n```\r\nI print the value of the parameter \"path\" here, it equals to \"/gruntdata/guimin.gm/bart/fairseq-master/bart-pt/bart.large.cnn/model.pt\", where has saved the official pretrained bart model.\r\n\r\nI am checking this on\r\n```\r\nPython 3.6.8\r\npytorch '1.2.0+cu92'\r\n```\r\n\r\nWould you share any thoughts on the matter? It would help me a lot.\r\nThank you very much!\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/fairseq/issues/comments/566170903","html_url":"https://github.com/pytorch/fairseq/issues/1476#issuecomment-566170903","issue_url":"https://api.github.com/repos/pytorch/fairseq/issues/1476","id":566170903,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NjE3MDkwMw==","user":{"login":"myleott","id":231798,"node_id":"MDQ6VXNlcjIzMTc5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/231798?v=4","gravatar_id":"","url":"https://api.github.com/users/myleott","html_url":"https://github.com/myleott","followers_url":"https://api.github.com/users/myleott/followers","following_url":"https://api.github.com/users/myleott/following{/other_user}","gists_url":"https://api.github.com/users/myleott/gists{/gist_id}","starred_url":"https://api.github.com/users/myleott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myleott/subscriptions","organizations_url":"https://api.github.com/users/myleott/orgs","repos_url":"https://api.github.com/users/myleott/repos","events_url":"https://api.github.com/users/myleott/events{/privacy}","received_events_url":"https://api.github.com/users/myleott/received_events","type":"User","site_admin":false},"created_at":"2019-12-16T17:55:54Z","updated_at":"2019-12-16T17:55:54Z","author_association":"CONTRIBUTOR","body":"This was fixed in af3050285d646125e7c76a245188b23a0b043185 last week."}}
{"actor":{"display_login":"myleott"}}