Comments (12)
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.
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.
Can you share all log with me?
from codexglue.
Ok, here is the train.log
train.log
from codexglue.
CodeBERT-base model has been loaded. It looks your program is blocked [here] (
CodeXGLUE/Code-Code/Defect-detection/code/run.py
Lines 519 to 523 in 6e4d5f7
from codexglue.
Ok, here is the train.log
train.log
Your program stop here
. Maybe there are something wrong in your transformers package, can you update your transformers usingpip install --upgrade transformers
from codexglue.
CodeBERT-base model has been loaded. It looks your program is blocked [here] (
CodeXGLUE/Code-Code/Defect-detection/code/run.py
Lines 519 to 523 in 6e4d5f7
). 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.
CodeBERT-base model has been loaded. It looks your program is blocked [here] (
CodeXGLUE/Code-Code/Defect-detection/code/run.py
Lines 519 to 523 in 6e4d5f7
). 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.
CodeBERT-base model has been loaded. It looks your program is blocked [here] (
CodeXGLUE/Code-Code/Defect-detection/code/run.py
Lines 519 to 523 in 6e4d5f7
). 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
from codexglue.
CodeBERT-base model has been loaded. It looks your program is blocked [here] (
CodeXGLUE/Code-Code/Defect-detection/code/run.py
Lines 519 to 523 in 6e4d5f7
). 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
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.
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.
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)
- Randomness in CodeBLEU computation HOT 3
- How to complete in real time by CodeCompletion?
- Is there a python library to use code BLEU? HOT 1
- 403 Forbidden error for Code-To-Text data files HOT 6
- Question related to fine tuning pretrained models for Defect-Detection task
- clone detection reproduction,CodeBert pipeline MAP@R only 76.64
- The CodeBlue evaluation script about code-to-code translation
- About CodeBLEU
- not a mach-o file when run code bleu
- javascript keys for CodeBLEU HOT 1
- [Code Completion - Token level] About eval_acc function
- [codecompletion-token] split function in code/dataset.py
- Missing data in ConCode HOT 2
- this line is wrong HOT 2
- The mlm and mlm_probability arguments in the run.py are not effective.
- Save_total_limit argument not used in run.py
- When resuming from a saved checkpoint, the train_dataloader doesn't resume from the same saved step.
- idx_file.txt is not effectively updated with the current epoch.
- Convert gradient accumulation with Accelerate
- no test file of webquery_predictions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codexglue.