Comments (9)
@connie-n
sorry. I found it is a question about the setting of seed. right?
my bad
from presumm.
In case of BertExt model, it works...but just trained one file and finished....
there is no any checkpoint file on model_path and only created event file.
could anyone hlep?
from presumm.
I have same problem,but I want to continue training the ext model,so I changed the code from "optim = checkpoint['optim'][0]" to "optim = checkpoint['optim']" and set the -train_from ../models/model_step_4000.pt。but it still training from the starting point
from presumm.
I cleared the issue.
the trained models have already trained until specific number of model-steps.
so I had to set the -train_step more than this number. In my case, I used the trained BertExt model, which is trained until 18,400steps. so I set the train_step 20,000 and then it worked.
In addition, if you want to train abs model, you should change the code to "optim = checkpoint['optims'][0].
If you want to train ext model, it should be changed to "optim = checkpoint['optim']"
from presumm.
I cleared the issue. the trained models have already trained until specific number of model-steps. so I had to set the -train_step more than this number. In my case, I used the trained BertExt model, which is trained until 18,400steps. so I set the train_step 20,000 and then it worked.
In addition, if you want to train abs model, you should change the code to "optim = checkpoint['optims'][0]. If you want to train ext model, it should be changed to "optim = checkpoint['optim']"
thank you for your reply.
And I still have a question:when I continued to train the ext model,I found that the model still trains from the first dataset and the order in which the datasets is used during training does not change.i e,123,91,39,6...
When I set the parameter -train_from,I found that if it is a dataset that has been trained before, xent will be effectively reduced. But once it reaches the dataset that has not been trained before, then xent will suddenly return to a very high value. Is this caused by the code? And this code runs once and only includes the training process for one epoch, right?
from presumm.
In case of BertExt model, it works...but just trained one file and finished.... there is no any checkpoint file on model_path and only created event file. could anyone hlep?
![]()
Hello , I am facing the same issue. Only event files are created but no checkpoint files. Can you please tell me how to fix this ?
from presumm.
Can you guys please share the trained BERTExt model along with their checkpoints ?
from presumm.
Hi,
In my case, It was caused due to the problem that the train_step set less than pre-trained model.
Can you try setting train_step with a very large number, for example, 180,000. Maybe it will work.
You can download BertExt trained model from README.md of this repository.
from presumm.
Related Issues (20)
- Key error HOT 1
- Additional position embedding increase parameters of transformer?
- having [Errno 21] Is a directory: while running train for BertExtAbs
- step 4 converting to simpler json returning asci error
- TypeError: __init__() got an unexpected keyword argument 'temp_dir'
- example_add_guidance.py
- Error when testing BertAbs model HOT 2
- Acc is very low and does not converge during training
- Cannot load model via torch.load HOT 1
- xsum数据集 HOT 1
- data preprocessing: empty 'tgt' text HOT 1
- issue for converting to bert_data HOT 2
- Getting the same sequence for all input candidate in generation
- How to do inference using pretrained bertsum models?
- Training the BERT large extractive model
- How can i know if i download BERT successfully
- bert-base-uncased HOT 2
- error in step 3 HOT 1
- 在运行test模式,BertAbs模型时,遇到了RuntimeError: "index_select_out_cuda_impl" not implemented for 'Float' HOT 1
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 presumm.