microsoft / CodeBERT

CodeBERT
MIT License
2.15k stars 442 forks source link

cannot load two pretrained models #230

Open poojitharamachandra opened 1 year ago

poojitharamachandra commented 1 year ago

OSError: Can't load config for '/Unixcoder/model/changesets_model'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure '/Unixcoder/model/changesets_model' is the correct path to a directory containing a config.json file

I am trying to load a second model during the course of training the first model. I am able to load the model for the first time, but not for the second time(even though all the config files are present) I am trying to load the model downloaded from https://huggingface.co/microsoft/unixcoder-base/tree/main

guoday commented 1 year ago

It seems that the path is wrong. The path should be "./Unixcoder/model/changesets_model"?