Code Monkey home page Code Monkey logo

Comments (9)

SabrinaZhuangxx avatar SabrinaZhuangxx commented on July 17, 2024 1

@connie-n
sorry. I found it is a question about the setting of seed. right?
my bad

from presumm.

connie-n avatar connie-n commented on July 17, 2024

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?

스크린샷 2022-07-07 오후 3 06 42

from presumm.

SabrinaZhuangxx avatar SabrinaZhuangxx commented on July 17, 2024

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.

connie-n avatar connie-n commented on July 17, 2024

@SabrinaZhuangxx

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.

SabrinaZhuangxx avatar SabrinaZhuangxx commented on July 17, 2024

@SabrinaZhuangxx

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...
QQ图片20220713114124

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?
X1QRIDG~I8FJUN6)L)PFG)U

from presumm.

keerthilogesh avatar keerthilogesh commented on July 17, 2024

@connie-n

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?

스크린샷 2022-07-07 오후 3 06 42

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.

keerthilogesh avatar keerthilogesh commented on July 17, 2024

@SabrinaZhuangxx @connie-n

Can you guys please share the trained BERTExt model along with their checkpoints ?

from presumm.

connie-n avatar connie-n commented on July 17, 2024

@keerthilogesh

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)

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.