Skip to content

torch.load() throws Segmentation fault (core dumped) #17

@BaiGeiQiShi

Description

@BaiGeiQiShi

Dear author,
When I use python generator.py to generate patches, I got the Segmentation fault (core dumped). I found it was caused by torch.load().

def generate_gpt_fconv(vocab_file, model_file, input_file, identifier_txt_file, identifier_token_file, output_file, beam_size):
    dictionary = Dictionary(vocab_file, min_cnt=0)
    print(len(dictionary))
    loaded = torch.load(
            model_file, map_location="cpu"
    )

I tried map_location="cpu", map_location="cuda:0". My GPU is A5000, cuda==10.1, pytorch==1.4.0, python==3.8. The models I used are your pre-traned model.

Could you help me? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions