GithubHelp home page GithubHelp logo

Comments (12)

guody5 avatar guody5 commented on May 12, 2024

The log is correct. When you don't have codebert-base model in local machine, the code will automatically download codebert-base model from the website.

If you successfully run the program, just ignoring the warning.

from codexglue.

shangqing-liu avatar shangqing-liu commented on May 12, 2024

The log is correct. When you don't have codebert-base model in local machine, the code will automatically download codebert-base model from the website.

If you successfully run the program, just ignoring the warning.

However, the program stopped after this log information and no model saved in the directory. So what is the problem?

from codexglue.

guody5 avatar guody5 commented on May 12, 2024

Can you share all log with me?

from codexglue.

shangqing-liu avatar shangqing-liu commented on May 12, 2024

Ok, here is the train.log
train.log

from codexglue.

guody5 avatar guody5 commented on May 12, 2024

CodeBERT-base model has been loaded. It looks your program is blocked [here] (

model=Model(model,config,tokenizer,args)
if args.local_rank == 0:
torch.distributed.barrier() # End of barrier to make sure only the first process in distributed training download model & vocab
). But I don't know why your program stop there, can you re-clone the repo and follow the command to run the pipeline?

from codexglue.

guody5 avatar guody5 commented on May 12, 2024

Ok, here is the train.log
train.log

Your program stop here

model = model_class.from_pretrained(args.model_name_or_path,
. Maybe there are something wrong in your transformers package, can you update your transformers using pip install --upgrade transformers

from codexglue.

shangqing-liu avatar shangqing-liu commented on May 12, 2024

CodeBERT-base model has been loaded. It looks your program is blocked [here] (

model=Model(model,config,tokenizer,args)
if args.local_rank == 0:
torch.distributed.barrier() # End of barrier to make sure only the first process in distributed training download model & vocab

). But I don't know why your program stop there, can you re-clone the repo and follow the command to run the pipeline?

I re-clone this repo and follow the instructions step by step, but it fails again with the same issue.

from codexglue.

guody5 avatar guody5 commented on May 12, 2024

CodeBERT-base model has been loaded. It looks your program is blocked [here] (

model=Model(model,config,tokenizer,args)
if args.local_rank == 0:
torch.distributed.barrier() # End of barrier to make sure only the first process in distributed training download model & vocab

). But I don't know why your program stop there, can you re-clone the repo and follow the command to run the pipeline?

I re-clone this repo and follow the instructions step by step, but it fails again with the same issue.

Can you update your transformers using pip install --upgrade transformers?

from codexglue.

shangqing-liu avatar shangqing-liu commented on May 12, 2024

CodeBERT-base model has been loaded. It looks your program is blocked [here] (

model=Model(model,config,tokenizer,args)
if args.local_rank == 0:
torch.distributed.barrier() # End of barrier to make sure only the first process in distributed training download model & vocab

). But I don't know why your program stop there, can you re-clone the repo and follow the command to run the pipeline?

I re-clone this repo and follow the instructions step by step, but it fails again with the same issue.

Can you update your transformers using pip install --upgrade transformers?

After upgrade transformers to the latest version, when I run the shell, it outputs nothing. The train.log is also nothing existed. Here is the run.sh
image

from codexglue.

guody5 avatar guody5 commented on May 12, 2024

CodeBERT-base model has been loaded. It looks your program is blocked [here] (

model=Model(model,config,tokenizer,args)
if args.local_rank == 0:
torch.distributed.barrier() # End of barrier to make sure only the first process in distributed training download model & vocab

). But I don't know why your program stop there, can you re-clone the repo and follow the command to run the pipeline?

I re-clone this repo and follow the instructions step by step, but it fails again with the same issue.

Can you update your transformers using pip install --upgrade transformers?

After upgrade transformers to the latest version, when I run the shell, it outputs nothing. The train.log is also nothing existed. Here is the run.sh
image

Can you try this to reload codebert-base?

from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("microsoft/codebert-base")
model = AutoModel.from_pretrained("microsoft/codebert-base")

from codexglue.

guody5 avatar guody5 commented on May 12, 2024

Another way to fix it is to download model from https://huggingface.co/microsoft/codebert-base#list-files to local folder code/micorsoft/codebert-base.

from codexglue.

shangqing-liu avatar shangqing-liu commented on May 12, 2024

Another way to fix it is to download model from https://huggingface.co/microsoft/codebert-base#list-files to local folder code/micorsoft/codebert-base.

Thanks for the help, I have found the problem. The torch version is not compatible with transformers.

from codexglue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.