Code Monkey home page Code Monkey logo

Comments (7)

salman1993 avatar salman1993 commented on May 25, 2024

Have you checked the directory - trained_models/lightning_logs/version_[VERSION_NUM]/checkpoints/epoch=[X].ckpt ?

from transformersum.

moyid avatar moyid commented on May 25, 2024

there's nothing in trained_models.

from transformersum.

moyid avatar moyid commented on May 25, 2024

I think this had worked in the past with a different model, but it is not working anymore

from transformersum.

salman1993 avatar salman1993 commented on May 25, 2024

Yeah I can't see the directory now either but I see this trained_models.ckpt file in the directory I ran it from.

It contains the model saved state and other config stuff, although I used this flag --use_custom_checkpoint_callback during training so that might be the case as well

In [3]: t = torch.load("trained_models.ckpt")

In [4]: t.keys()
Out[4]: dict_keys(['epoch', 'global_step', 'pytorch-lightning_version', 'callbacks', 'optimizer_states', 'lr_schedulers', 'state_dict', 'hparams_name', 'hyper_parameters'])

In [5]: t['epoch']
Out[5]: 1

from transformersum.

moyid avatar moyid commented on May 25, 2024

ok let me try again with that flag

from transformersum.

moyid avatar moyid commented on May 25, 2024

I have made this work by setting use_logger tensorboard -- otherwise the checkpoint is saved in the wandb folder -- even though there doesn't appear to be tensorboard logging support. Also, I needed to set --use_custom_checkpoint_callback to get a checkpoint at the end of every epoch -- otherwise it only saves 1 checkpoint, and based on the label it is epoch0 -- if there's only 1 checkpoint I'd rather it be the last epoch.

from transformersum.

HHousen avatar HHousen commented on May 25, 2024

@moyid Try setting --no_wandb_logger_log_model and not setting the --weights_save_path.

from transformersum.

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.